diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-31 07:54:51 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-31 07:54:51 +0800 |
commit | df7f15be47ecb58a5a6729edbca105bea45a71dc (patch) | |
tree | 34d9cde3607dbb45bff695c99bbb38551ba4acb8 /mail | |
parent | 590720feb45c3b4752a6453a6231d3cc3303789c (diff) | |
download | freebsd-ports-gnome-df7f15be47ecb58a5a6729edbca105bea45a71dc.tar.gz freebsd-ports-gnome-df7f15be47ecb58a5a6729edbca105bea45a71dc.tar.zst freebsd-ports-gnome-df7f15be47ecb58a5a6729edbca105bea45a71dc.zip |
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
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sendmail/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index df1356494232..9bbde99815dc 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -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 |