From 3d00141e41572069684e60a2745014883f354f69 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Mon, 8 Sep 2014 19:32:59 +0000 Subject: [PATCH] Allow staging as a regular user --- www/ismail/Makefile | 2 +- www/ismail/pkg-plist | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/www/ismail/Makefile b/www/ismail/Makefile index a95527dde9d3..9094079033f8 100644 --- a/www/ismail/Makefile +++ b/www/ismail/Makefile @@ -17,6 +17,7 @@ USES= tar:bzip2 USE_PHP= imap WANT_PHP_WEB= yes +PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS @@ -49,7 +50,6 @@ pre-install: do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} ${TAR} --exclude '*~' -C ${WRKSRC}/${PORTNAME} -cf - . | ${TAR} -C ${STAGEDIR}${WWWDIR} -xf - - @${CHOWN} -R www:www ${STAGEDIR}${WWWDIR} .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs.html ${STAGEDIR}${DOCSDIR} diff --git a/www/ismail/pkg-plist b/www/ismail/pkg-plist index 0e793e9c7c61..f87d566709f1 100644 --- a/www/ismail/pkg-plist +++ b/www/ismail/pkg-plist @@ -1,3 +1,5 @@ +@owner %%WWWOWN%% +@group %%WWWGRP%% %%WWWDIR%%/addressbook.php %%WWWDIR%%/addressbookdecrypt.php %%WWWDIR%%/addressbookentry.php @@ -138,7 +140,6 @@ %%WWWDIR%%/viewmailheader.php %%WWWDIR%%/xtree/xtree-css.php %%WWWDIR%%/xtree/xtree.php -%%PORTDOCS%%%%DOCSDIR%%/docs.html @dirrm %%WWWDIR%%/include/datastores @dirrm %%WWWDIR%%/include @dirrm %%WWWDIR%%/locale/cs_CZ/LC_MESSAGES @@ -158,4 +159,7 @@ @dirrm %%WWWDIR%%/themes @dirrm %%WWWDIR%%/xtree @dirrm %%WWWDIR%% +@owner root +@group wheel +%%PORTDOCS%%%%DOCSDIR%%/docs.html %%PORTDOCS%%@dirrm %%DOCSDIR%%