Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2014 19:58:43 +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: r367970 - head/www/elgg
Message-ID:  <201409111958.s8BJwhoi021503@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Sep 11 19:58:43 2014
New Revision: 367970
URL: http://svnweb.freebsd.org/changeset/ports/367970
QAT: https://qat.redports.org/buildarchive/r367970/

Log:
  - Allow staging as a regular user
  - Bump portrevision as @exec/@unexec were not setting owner on the right files

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

Modified: head/www/elgg/Makefile
==============================================================================
--- head/www/elgg/Makefile	Thu Sep 11 19:52:47 2014	(r367969)
+++ head/www/elgg/Makefile	Thu Sep 11 19:58:43 2014	(r367970)
@@ -3,6 +3,7 @@
 
 PORTNAME=	elgg
 PORTVERSION=	1.8.0.1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://elgg.org/download/
 
@@ -15,25 +16,15 @@ USE_PHP=	mysql gd json soap dom xml
 USES=		gettext zip
 
 NO_BUILD=	yes
+PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 SUB_FILES=	pkg-message
 ELGGDATADIR=	${WWWDIR}data
 
-.include <bsd.port.pre.mk>
 do-install:
 	${MKDIR} ${STAGEDIR}${WWWDIR}
 	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
 	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
-
-post-install:
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
-		>> ${TMPPLIST}
-	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' \
-		>> ${TMPPLIST}
-
 	@${INSTALL} -d ${STAGEDIR}${ELGGDATADIR}
 	@${CHMOD} 777 ${STAGEDIR}${ELGGDATADIR}
-	@${ECHO_CMD} '@exec ${CHMOD} 777 ${STAGEDIR}${ELGGDATADIR}' \
-		>> ${TMPPLIST}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/www/elgg/pkg-plist
==============================================================================
--- head/www/elgg/pkg-plist	Thu Sep 11 19:52:47 2014	(r367969)
+++ head/www/elgg/pkg-plist	Thu Sep 11 19:58:43 2014	(r367970)
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
 %%WWWDIR%%/CHANGES.txt
 %%WWWDIR%%/CODING.txt
 %%WWWDIR%%/CONTRIBUTORS.txt
@@ -2593,3 +2595,5 @@
 @dirrm %%WWWDIR%%/views
 @dirrm %%WWWDIR%%data
 @dirrm %%WWWDIR%%
+@owner root
+@group wheel



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