diff options
author | fluffy <fluffy@FreeBSD.org> | 2014-01-07 19:15:59 +0800 |
---|---|---|
committer | fluffy <fluffy@FreeBSD.org> | 2014-01-07 19:15:59 +0800 |
commit | 1294b10ff5a251e2bd33ee24e4463b1e4918a7ee (patch) | |
tree | ac16261f77fdda306e503f915247d2349e04f672 /www | |
parent | 11511aecd5dfb6555f3da566fdf0523bc369d4e9 (diff) | |
download | freebsd-ports-gnome-1294b10ff5a251e2bd33ee24e4463b1e4918a7ee.tar.gz freebsd-ports-gnome-1294b10ff5a251e2bd33ee24e4463b1e4918a7ee.tar.zst freebsd-ports-gnome-1294b10ff5a251e2bd33ee24e4463b1e4918a7ee.zip |
- Allow packaging as user with staging
Pointyhat to: myself
Noticed by: bapt@
Diffstat (limited to 'www')
-rw-r--r-- | www/lightsquid/Makefile | 6 | ||||
-rw-r--r-- | www/lightsquid/pkg-plist | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/www/lightsquid/Makefile b/www/lightsquid/Makefile index 4dc7fcf753c0..307e3da93ead 100644 --- a/www/lightsquid/Makefile +++ b/www/lightsquid/Makefile @@ -18,6 +18,10 @@ USES= perl5 USE_PERL5= run NO_BUILD= yes +PLIST_SUB+= WWWOWN="${WWWOWN}" \ + WWWGRP="${WWWGRP}" \ + CHOWN="${CHOWN}" + .include <bsd.port.options.mk> CONFIGS= lightsquid.cfg realname.cfg skipuser.cfg group.cfg @@ -74,7 +78,7 @@ do-install: ${FIND} -E . -maxdepth 1 -regex '.*\.(cgi|pl)' -exec \ ${INSTALL_SCRIPT} "{}" "${STAGEDIR}/${WWWDIR}/{}" \; && \ ${INSTALL_DATA} .htaccess ${STAGEDIR}/${WWWDIR}/ - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/${WWWDIR} +# @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/${WWWDIR} .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}/${DOCSDIR} .for i in ${PORTDOCS} diff --git a/www/lightsquid/pkg-plist b/www/lightsquid/pkg-plist index aa1fe49844a7..4a1e653e171d 100644 --- a/www/lightsquid/pkg-plist +++ b/www/lightsquid/pkg-plist @@ -32,6 +32,8 @@ libexec/lightsquid/ip2name.squidlist2 %%DATADIR%%/lang/ru.lng %%DATADIR%%/lang/sp.lng %%DATADIR%%/lang/ua.lng +@owner %%WWWOWN%% +@group %%WWWGRP%% %%WWWDIR%%/tpl/base/bigfiles.html %%WWWDIR%%/tpl/base/day_detail.html %%WWWDIR%%/tpl/base/graph.html @@ -72,13 +74,16 @@ libexec/lightsquid/ip2name.squidlist2 %%WWWDIR%%/check-setup.pl %%WWWDIR%%/common.pl %%WWWDIR%%/lightparser.pl -@dirrmtry %%ETCDIR%% -@dirrmtry libexec/lightsquid -@dirrmtry %%DATADIR%%/lang -@dirrmtry %%DATADIR%% +@exec %%CHOWN%% -R %%WWWOWN%%:%%WWWGRP%% %%WWWDIR%% @dirrmtry %%WWWDIR%%/tpl/base/images @dirrmtry %%WWWDIR%%/tpl/base @dirrmtry %%WWWDIR%%/tpl/text @dirrmtry %%WWWDIR%%/tpl @dirrmtry %%WWWDIR%%/report @dirrmtry %%WWWDIR%% +@group +@owner +@dirrmtry %%DATADIR%%/lang +@dirrmtry %%DATADIR%% +@dirrmtry libexec/lightsquid +@dirrmtry %%ETCDIR%% |