This port uses pkg-install to create new users instead of using USERS= and GROUPS= Fix: - Use USERS and GROUPS Submitted by: Chris Rees (utisoft@gmail.com) Please bear in mind that pkg-install has been removed -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.--9jDnGq8rUzzulQ3twb9Gec3Cu5Wqg7WGMFjQBUeO2dH3nbFC Content-Type: text/plain; name="mail-fetchmail.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mail-fetchmail.patch" Index: Makefile =================================================================== RCS file: /exports/cvsroot-freebsd/ports/mail/fetchmail/Makefile,v retrieving revision 1.214 diff -u -r1.214 Makefile --- Makefile 11 Dec 2010 22:27:06 -0000 1.214 +++ Makefile 4 Jun 2011 12:40:36 -0000 @@ -25,6 +25,9 @@ RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss +USERS= ${PORTNAME} +GROUPS= ${USERS} + USE_RC_SUBR= fetchmail FETCHMAILRC= ${PREFIX}/etc/fetchmailrc SUB_FILES= pkg-message @@ -113,9 +116,6 @@ post-build: @cd ${WRKSRC} && ${MAKE} check -pre-su-install: - @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: .if !defined(NOPORTDOCS) ${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR} Index: pkg-install =================================================================== RCS file: pkg-install diff -N pkg-install --- pkg-install 15 May 2006 21:18:39 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,46 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/mail/fetchmail/pkg-install,v 1.2 2006/05/15 21:18:39 barner Exp $ -# - -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - -if [ -x /usr/sbin/nologin ]; then - NOLOGIN=/usr/sbin/nologin -else - NOLOGIN=/sbin/nologin -fi - -if [ x"$2" = xPRE-INSTALL ]; then - USER=fetchmail - UID=124 - GROUP=fetchmail - GID=124 - - if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if /usr/sbin/pw groupadd ${GROUP} -g ${GID} - then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - echo "Please create it, and try again." - exit 1 - fi - fi - - if /usr/sbin/pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -d /var/run/fetchmail -s ${NOLOGIN} -c "Fetchmail mail-retrieval daemon"; then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - echo "Please create it, and try again." - exit 1 - fi - fi -fi - -/usr/bin/install -d -m 755 -o fetchmail -g fetchmail /var/run/fetchmail Index: pkg-plist =================================================================== RCS file: /exports/cvsroot-freebsd/ports/mail/fetchmail/pkg-plist,v retrieving revision 1.29 diff -u -r1.29 pkg-plist --- pkg-plist 4 Nov 2009 10:47:33 -0000 1.29 +++ pkg-plist 4 Jun 2011 12:39:09 -0000 @@ -36,6 +36,7 @@ %%NLS%%share/locale/tr/LC_MESSAGES/fetchmail.mo %%NLS%%share/locale/vi/LC_MESSAGES/fetchmail.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/fetchmail.mo +@exec /usr/bin/install -d -m 755 -o fetchmail -g fetchmail /var/run/fetchmail @unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f %D/etc/fetchmailrc; fi etc/fetchmailrc.sample @exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
Responsible Changed From-To: freebsd-ports-bugs->pgollucci pgollucci@ wants his PRs (via the GNATS Auto Assign Tool)
Maintainer of mail/fetchmail, Please note that PR ports/157668 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/157668 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Responsible Changed From-To: pgollucci->crees Invalid autoassignment
Responsible Changed From-To: crees->freebsd-ports-bugs To pool to correct assign message
Responsible Changed From-To: freebsd-ports-bugs->crees Invalid autoassignment to pgollucci
State Changed From-To: feedback->closed Oops.. duplicate of ports/157613. Sorry!