svn commit: r328105 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Tue Sep 24 10:08:00 UTC 2013


Author: bapt
Date: Tue Sep 24 10:07:59 2013
New Revision: 328105
URL: http://svnweb.freebsd.org/changeset/ports/328105

Log:
  In case the port is supporting staging, initialize the PLIST with
  @owner root
  @group wheel
  to force all the content to in the end being installed with root owner even if packaged with
  a non root credential

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Tue Sep 24 10:04:22 2013	(r328104)
+++ head/Mk/bsd.port.mk	Tue Sep 24 10:07:59 2013	(r328105)
@@ -5717,7 +5717,11 @@ generate-plist:
 	@${ECHO_MSG} "===>   Generating temporary packing list"
 	@${MKDIR} `${DIRNAME} ${TMPPLIST}`
 	@if [ ! -f ${DESCR} ]; then ${ECHO_MSG} "** Missing pkg-descr for ${PKGNAME}."; exit 1; fi
+.if defined(NO_STAGE)
 	@>${TMPPLIST}
+.else
+	@${ECHO_CMD} -e "@owner root\n at group wheel" >${TMPPLIST}
+.fi
 	@for file in ${PLIST_FILES}; do \
 		${ECHO_CMD} $${file} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} >> ${TMPPLIST}; \
 	done


More information about the svn-ports-all mailing list