ports/89832: [PATCH] mail/exim - create user/group when EXIM_USER/EXIM_GROUP are used
Artis Caune
Artis.Caune at latnet.lv
Fri Dec 2 08:50:03 UTC 2005
>Number: 89832
>Category: ports
>Synopsis: [PATCH] mail/exim - create user/group when EXIM_USER/EXIM_GROUP are used
>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: Fri Dec 02 08:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Artis Caune
>Release: 6.0
>Organization:
>Environment:
>Description:
'make EXIM_USER=exim EXIM_GROUP=exim install clean' don't work
port requires user/group to be added before 'make install'
>How-To-Repeat:
>Fix:
*** Makefile.origThu Dec 1 18:33:53 2005
--- MakefileThu Dec 1 18:48:31 2005
***************
*** 618,623 ****
--- 618,627 ----
.if !defined(EXIMON_ONLY)
pre-install:
+ if ! pw groupshow ${EXIM_GROUP}; then pw groupadd ${EXIM_GROUP} -g 125; fi
+ if ! pw usershow ${EXIM_USER}; then pw useradd ${EXIM_USER} -g ${EXIM_GROUP} -u 125 \
+ -h - -d /var/spool/exim -s /nonexistent -c "Exim User"; fi
+
@[ -d "${DESTDIR}/etc" ] || ${MKDIR} "${DESTDIR}/etc"
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list