From owner-svn-ports-all@FreeBSD.ORG Sat May 30 23:54:52 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C30EDF9; Sat, 30 May 2015 23:54:52 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4B881BE7; Sat, 30 May 2015 23:54:51 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4UNspEm017887; Sat, 30 May 2015 23:54:51 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4UNspIF017886; Sat, 30 May 2015 23:54:51 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201505302354.t4UNspIF017886@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 30 May 2015 23:54:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r388045 - head/mail/sendmail X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2015 23:54:52 -0000 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