Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2014 19:32:59 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367685 - head/www/ismail
Message-ID:  <201409081932.s88JWxLl050642@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Sep  8 19:32:59 2014
New Revision: 367685
URL: http://svnweb.freebsd.org/changeset/ports/367685
QAT: https://qat.redports.org/buildarchive/r367685/

Log:
  Allow staging as a regular user

Modified:
  head/www/ismail/Makefile
  head/www/ismail/pkg-plist

Modified: head/www/ismail/Makefile
==============================================================================
--- head/www/ismail/Makefile	Mon Sep  8 19:28:30 2014	(r367684)
+++ head/www/ismail/Makefile	Mon Sep  8 19:32:59 2014	(r367685)
@@ -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}

Modified: head/www/ismail/pkg-plist
==============================================================================
--- head/www/ismail/pkg-plist	Mon Sep  8 19:28:30 2014	(r367684)
+++ head/www/ismail/pkg-plist	Mon Sep  8 19:32:59 2014	(r367685)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409081932.s88JWxLl050642>