Date: Sat, 30 May 2015 23:54:51 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r388045 - head/mail/sendmail Message-ID: <201505302354.t4UNspIF017886@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sat May 30 23:54:51 2015 New Revision: 388045 URL: https://svnweb.freebsd.org/changeset/ports/388045 Log: Allow packaging as regular user Add USES=uidfix to get the definition of GID Overwrite via MAKE_ARGS the owner and groups enforced by upstream Makefile Ownership remains unchanged in the final package given the ownership is now set by plist Change modes when installing to allow stripping in post-install as a regular user Replace INSTALL_SCRIPT by INSTALL_LIB which takes care of stripping the binaries when installing Modified: head/mail/sendmail/Makefile Modified: head/mail/sendmail/Makefile ============================================================================== --- head/mail/sendmail/Makefile Sat May 30 23:23:10 2015 (r388044) +++ head/mail/sendmail/Makefile Sat May 30 23:54:51 2015 (r388045) @@ -12,12 +12,18 @@ MAINTAINER= dinoex@FreeBSD.org COMMENT= Reliable, highly configurable mail transfer agent with utilities CONFLICTS?= courier-0.* postfix-1.* postfix-2.* smail-3.* zmailer-2.* opensmtpd-* -NEED_ROOT= yes USERS= smmsp GROUPS= smmsp -USES= cpe +MAKE_ARGS= UBINOWN=${UID} UBINGRP=${GID} \ + SBINOWN=${UID} SBINGRP=${GID} \ + GBINOWN=${UID} GBINGRP=${GID} \ + MANOWN=${UID} MANGRP=${GID} \ + LIBMODE=0644 UBINMODE=0755 \ + GBINMODE=2755 + +USES= cpe uidfix WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} DOCS= KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \ sendmail/TRACEFLAGS sendmail/SECURITY sendmail/TUNING @@ -242,7 +248,7 @@ post-install: ${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libmilter/libmilter.a \ ${STAGEDIR}${PREFIX}/lib/ .if ${PORT_OPTIONS:MMILTER_SHARED} - ${INSTALL_SCRIPT} \ + ${INSTALL_LIB} \ ${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsharedmilter/libmilter.so \ ${STAGEDIR}${PREFIX}/lib/libmilter.so.${MILTER_SOVER} ${LN} -sf libmilter.so.${MILTER_SOVER} \ @@ -275,7 +281,6 @@ post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR}/libmilter ${TAR} -C ${WRKSRC}/libmilter/docs -cf - . | \ ${TAR} -C ${STAGEDIR}${DOCSDIR}/libmilter -xf - - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmilter.so.${MILTER_SOVER} .endif .if ${PORT_OPTIONS:MCYRUSLOOKUP} ${INSTALL_DATA} ${FILESDIR}/CYRUS_LOOKUP ${STAGEDIR}${DOCSDIR}/CYRUS_LOOKUP
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505302354.t4UNspIF017886>