Date: Sat, 14 Apr 2012 19:20:12 GMT From: Darren Pilgrim <ports.maintainer@evilphi.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/166943: ports/mail/postgrey package install fails Message-ID: <201204141920.q3EJKCoa010000@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/166943; it has been noted by GNATS. From: Darren Pilgrim <ports.maintainer@evilphi.com> To: bug-followup@FreeBSD.org, phk@critter.freebsd.dk Cc: Subject: Re: ports/166943: ports/mail/postgrey package install fails Date: Sat, 14 Apr 2012 12:12:24 -0700 This is a multi-part message in MIME format. --------------040205010703020009030000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit It looks like the step that creates the database directory happens before the user and group creation step when installing from package. The attached patch moves that step to the post-install stage. --------------040205010703020009030000 Content-Type: text/plain; name="postgrey.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="postgrey.patch.txt" --- Makefile.orig 2012-04-14 12:03:25.660286674 -0700 +++ Makefile 2012-04-14 12:10:17.551270305 -0700 @@ -7,7 +7,7 @@ PORTNAME= postgrey PORTVERSION= 1.34 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ http://postgrey.schweikert.ch/pub/old/ --- files/pkg-install.in.orig 2012-04-14 12:02:53.165074294 -0700 +++ files/pkg-install.in 2012-04-14 12:04:42.509609144 -0700 @@ -15,6 +15,10 @@ echo "ERROR: A required pragma was empty" exit 1 fi + ;; + +POST-INSTALL) + echo "---> Starting post-install script:" # Create home directory if required if [ -d "%%POSTGREYDIR%%" ]; then @@ -27,10 +31,6 @@ /usr/sbin/chown -R "%%USER%%:%%GROUP%%" "%%POSTGREYDIR%%" || exit 1 /bin/chmod g+s "%%POSTGREYDIR%%" || exit 1 fi - ;; - -POST-INSTALL) - echo "---> Starting post-install script:" for i in %%ETCFILES%%; do if [ ! -f "%%PREFIX%%/etc/postfix/postgrey_${i}" ]; then --------------040205010703020009030000--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204141920.q3EJKCoa010000>