Date: Tue, 30 Sep 2014 15:04:03 +0000 (UTC) From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369614 - in head: . mail/maildrop Message-ID: <201409301504.s8UF43HZ040784@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: madpilot Date: Tue Sep 30 15:04:03 2014 New Revision: 369614 URL: http://svnweb.freebsd.org/changeset/ports/369614 QAT: https://qat.redports.org/buildarchive/r369614/ Log: - Modify comment and add UPDATING entry to explain that MAILDROP_SUID and MAILDROP_SGID now need to be existing usernames on the destination system. numeric UIDs and GIDs, or non existent usernames, will cause a broken installation since pkgng will skip on the entries of files owned by unknown users. [1] - Fix MGID and MUID PLIST_SUB variables not being set when only one of the two above variables is deifined, again generating a broken package. [2] - While here, remove dirrm. Reported by: Lukas Maly <Iam@LukasMaly.NET> [1] Reported by: itetcu@ [1] [2] Modified: head/UPDATING head/mail/maildrop/Makefile head/mail/maildrop/pkg-plist Modified: head/UPDATING ============================================================================== --- head/UPDATING Tue Sep 30 14:51:12 2014 (r369613) +++ head/UPDATING Tue Sep 30 15:04:03 2014 (r369614) @@ -6,6 +6,21 @@ You should get into the habit of checkin you update your ports collection, before attempting any port upgrades. 20140930: + AFFECTS: users of mail/maildrop + AUTHOR: madpilot@FreeBSD.org + + Due to the way pkg works please note that the configuration + variables MAILDROP_SUID and MAILDROP_SGID, despite keeping their + old names, are now required to contain a valid username and + groupname existing on the system in which the package will be + installed, while in the past numeric uids and gids worked fine. + + Wrong values will cause pkg to skip installing the setuid binaries + on the system. + + Please check your configuration. + +20140930: AFFECTS: users of finance/gnucash AUTHOR: madpilot@FreeBSD.org Modified: head/mail/maildrop/Makefile ============================================================================== --- head/mail/maildrop/Makefile Tue Sep 30 14:51:12 2014 (r369613) +++ head/mail/maildrop/Makefile Tue Sep 30 15:04:03 2014 (r369614) @@ -3,14 +3,20 @@ # You can define the following to enable further compile time # customizations: -# MAILDROP_SUID=<uid>, -# MAILDROP_SGID=<gid> Maildrop will be installed with suid permissions for -# MAILDROP_SUID, and sgid permissions for MAILDROP_SGID. +# MAILDROP_SUID=<username>, +# MAILDROP_SGID=<groupname> Maildrop will be installed with suid +# permissions for MAILDROP_SUID, and sgid +# permissions for MAILDROP_SGID. +# NOTE: must be a valid username/groupname +# at installation time, numeric uids/gids +# and non existing users will cause the +# installed package to miss files. # MAILDROP_TRUSTED_USERS=<user> Specify users allowed to use the -d option # MAILDROP_LOG_COLUMNS lenght of 'File:' line in log - 8; default: 72 PORTNAME= maildrop PORTVERSION= 2.7.2 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= SF/courier/${PORTNAME}/${PORTVERSION} @@ -78,10 +84,10 @@ CONFIGURE_ARGS+= --enable-maildrop-uid=" PLIST_SUB+= MMODE='6755' MUID='${MAILDROP_SUID}' MGID='${MAILDROP_SGID}' .elif defined(MAILDROP_SUID) CONFIGURE_ARGS+= --enable-maildrop-uid="${MAILDROP_SUID}" -PLIST_SUB+= MMODE='4755' MUID='${MAILDROP_SUID}' +PLIST_SUB+= MMODE='4755' MUID='${MAILDROP_SUID}' MGID='mail' .elif defined(MAILDROP_SGID) CONFIGURE_ARGS+= --enable-maildrop-gid="${MAILDROP_SGID}" -PLIST_SUB+= MMODE='2755' MGID='${MAILDROP_SGID}' +PLIST_SUB+= MMODE='2755' MGID='${MAILDROP_SGID}' MUID='root' .else PLIST_SUB+= MMODE='' MUID='root' MGID='mail' .endif Modified: head/mail/maildrop/pkg-plist ============================================================================== --- head/mail/maildrop/pkg-plist Tue Sep 30 14:51:12 2014 (r369613) +++ head/mail/maildrop/pkg-plist Tue Sep 30 15:04:03 2014 (r369614) @@ -63,4 +63,3 @@ man/man8/maildrop-deliverquota.8.gz %%PORTDOCS%%%%DOCSDIR%%/reformime.html %%PORTDOCS%%%%DOCSDIR%%/rfc2045.html %%PORTDOCS%%%%DOCSDIR%%/rfc822.html -%%PORTDOCS%%@dirrm %%DOCSDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409301504.s8UF43HZ040784>