mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Do not copy ports cookies etc. to stagedir
- Make packaging as a regular user work
This commit is contained in:
parent
8fbb04a969
commit
7f288c0d6a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356711
@ -19,7 +19,7 @@ NO_BUILD= yes
|
||||
DALBUM_DIR?= www/photo
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR}
|
||||
PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
||||
SUB_LIST+= DALBUM_DIR=${DALBUM_DIR}
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
@ -29,8 +29,8 @@ post-patch:
|
||||
|
||||
do-install:
|
||||
@${MKDIR} -m 0775 ${STAGEDIR}${PREFIX}/${DALBUM_DIR}
|
||||
@cd ${WRKSRC} && ${FIND} . -print | \
|
||||
${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} \
|
||||
@cd ${WRKSRC} && ${FIND} .htaccess .private config images include pictures *.css *.js *.php *.txt -print | \
|
||||
${CPIO} --quiet -pdum \
|
||||
${STAGEDIR}${PREFIX}/${DALBUM_DIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
@owner %%WWWOWN%%
|
||||
@group %%WWWGRP%%
|
||||
%%DALBUM_DIR%%/.htaccess
|
||||
%%DALBUM_DIR%%/.private/.htaccess
|
||||
%%DALBUM_DIR%%/.private/.htpasswd
|
||||
@ -90,3 +92,5 @@
|
||||
@dirrm %%DALBUM_DIR%%/config
|
||||
@dirrmtry %%DALBUM_DIR%%/.private
|
||||
@dirrm %%DALBUM_DIR%%
|
||||
@owner root
|
||||
@group wheel
|
||||
|
Loading…
Reference in New Issue
Block a user