ports/133790: [PATCH] mail/postfix fails to install as non-root
John Baldwin
jhb at FreeBSD.org
Thu Apr 16 20:20:05 UTC 2009
>Number: 133790
>Category: ports
>Synopsis: [PATCH] mail/postfix fails to install as non-root
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 16 20:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: John Baldwin
>Release:
>Organization:
>Environment:
>Description:
During a 'make install' as non-root, certain make targets are performed after using su to switch to root. Currently, the postfix port attempts to add users before the 'su' occurs which fails.
>How-To-Repeat:
Run 'make install' as a non-root user (who is in wheel).
>Fix:
Use 'pre-su-install' instead of 'pre-install'.
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/mail/postfix/Makefile,v
retrieving revision 1.142
diff -u -r1.142 Makefile
--- Makefile 26 Jan 2009 19:52:05 -0000 1.142
+++ Makefile 21 Mar 2009 16:59:27 -0000
@@ -253,7 +253,7 @@
CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \
${ECHO} "all: default" >> Makefile)
-pre-install:
+pre-su-install:
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list