aboutsummaryrefslogtreecommitdiff
path: root/www/dalbum
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-06-05 21:22:29 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-06-05 21:22:29 +0000
commit7f288c0d6a0ec759b049337a9ef7d5f18c0503c9 (patch)
tree9206949f942f1751c450701b260d51b7b331fda7 /www/dalbum
parent8fbb04a96981fd8111e4d63d895830ba3d949a1a (diff)
downloadports-7f288c0d6a0ec759b049337a9ef7d5f18c0503c9.tar.gz
ports-7f288c0d6a0ec759b049337a9ef7d5f18c0503c9.zip
Notes
Diffstat (limited to 'www/dalbum')
-rw-r--r--www/dalbum/Makefile6
-rw-r--r--www/dalbum/pkg-plist4
2 files changed, 7 insertions, 3 deletions
diff --git a/www/dalbum/Makefile b/www/dalbum/Makefile
index afaa761a10ac..3d6df3e791a2 100644
--- a/www/dalbum/Makefile
+++ b/www/dalbum/Makefile
@@ -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>
diff --git a/www/dalbum/pkg-plist b/www/dalbum/pkg-plist
index d4b433b99246..273d969b1bc7 100644
--- a/www/dalbum/pkg-plist
+++ b/www/dalbum/pkg-plist
@@ -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