1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Properly set credentials via plist

This commit is contained in:
Baptiste Daroussin 2014-09-03 06:28:16 +00:00
parent ab80421ecf
commit b7bc971e9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367164
2 changed files with 23 additions and 28 deletions

View File

@ -21,19 +21,10 @@ USE_PHP= bcmath curl json mysql pcre xml
SUB_LIST+= PKGNAME=${PKGNAME}
SUB_FILES+= pkg-message
.include <bsd.port.pre.mk>
PLIST_SUB= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
@owner %%WWWOWN%%
@group %%WWWGRP%%
%%WWWDIR%%/admin/admin-ajax.php
%%WWWDIR%%/admin/index.php
%%WWWDIR%%/admin/install.php
@ -365,23 +367,25 @@
%%WWWDIR%%/yourls-go.php
%%WWWDIR%%/yourls-infos.php
%%WWWDIR%%/yourls-loader.php
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/js
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/img
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/css
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar
@dirrm %%WWWDIR%%/user/plugins/sample-plugin
@dirrm %%WWWDIR%%/user/plugins/sample-page
@dirrm %%WWWDIR%%/user/plugins/random-bg/img
@dirrm %%WWWDIR%%/user/plugins/random-bg
@dirrm %%WWWDIR%%/user/plugins/hyphens-in-urls
@dirrm %%WWWDIR%%/user/plugins
@dirrm %%WWWDIR%%/user
@dirrm %%WWWDIR%%/pages
@dirrm %%WWWDIR%%/js
@dirrm %%WWWDIR%%/admin
@dirrm %%WWWDIR%%/css
@dirrm %%WWWDIR%%/images
@dirrm %%WWWDIR%%/includes/geo/flags
@dirrm %%WWWDIR%%/includes/geo
@dirrm %%WWWDIR%%/includes
@dirrm %%WWWDIR%%/images
@dirrm %%WWWDIR%%/css
@dirrm %%WWWDIR%%/admin
@dirrm %%WWWDIR%%/js
@dirrm %%WWWDIR%%/pages
@dirrm %%WWWDIR%%/user/plugins/hyphens-in-urls
@dirrm %%WWWDIR%%/user/plugins/random-bg/img
@dirrm %%WWWDIR%%/user/plugins/random-bg
@dirrm %%WWWDIR%%/user/plugins/sample-page
@dirrm %%WWWDIR%%/user/plugins/sample-plugin
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/css
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/img
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar/js
@dirrm %%WWWDIR%%/user/plugins/sample-toolbar
@dirrm %%WWWDIR%%/user/plugins
@dirrm %%WWWDIR%%/user
@dirrm %%WWWDIR%%
@owner root
@group wheel