aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-10-08 21:19:42 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-10-08 21:19:42 +0800
commit7cd4aa08671eef7f18985af24ff27ccf07b9ea69 (patch)
tree63e503093ac704864df24976ce2ea0e022fdba68 /security
parent545d2f425eac89409a10f3e39f22053721f2acfc (diff)
downloadfreebsd-ports-gnome-7cd4aa08671eef7f18985af24ff27ccf07b9ea69.tar.gz
freebsd-ports-gnome-7cd4aa08671eef7f18985af24ff27ccf07b9ea69.tar.zst
freebsd-ports-gnome-7cd4aa08671eef7f18985af24ff27ccf07b9ea69.zip
- Move file owner handling to plist, fix stage as non-root
PR: 203287 Submitted by: amdmi3 Approved by: maintainer timeout (ek@purplehat.org, 2 weeks)
Diffstat (limited to 'security')
-rw-r--r--security/maia/Makefile4
-rw-r--r--security/maia/pkg-plist60
2 files changed, 53 insertions, 11 deletions
diff --git a/security/maia/Makefile b/security/maia/Makefile
index 6c28674f291b..51e0c911930c 100644
--- a/security/maia/Makefile
+++ b/security/maia/Makefile
@@ -338,7 +338,6 @@ post-patch:
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
- ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/
${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty
${MKDIR} -p ${STAGEDIR}${DATADIR}
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts
@@ -350,11 +349,10 @@ do-install:
${INSTALL} -m 640 ${WRKSRC}/maiad.conf.dist ${STAGEDIR}${ETCDIR}/maiad.conf.dist
${INSTALL} -m 640 ${WRKSRC}/maia.conf.dist ${STAGEDIR}${ETCDIR}/maia.conf.dist
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.post.mk>
diff --git a/security/maia/pkg-plist b/security/maia/pkg-plist
index 1f759ec6c114..2f580b2e6140 100644
--- a/security/maia/pkg-plist
+++ b/security/maia/pkg-plist
@@ -40,6 +40,8 @@ sbin/maiad
%%DATADIR%%/scripts/send-quarantine-reminders.pl
%%DATADIR%%/scripts/stats-snapshot.pl
@mode
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
%%WWWDIR%%/admin/configtest.php
%%WWWDIR%%/admin/dblib.php
%%WWWDIR%%/admin/internal-init.php
@@ -59,11 +61,7 @@ sbin/maiad
%%WWWDIR%%/chart_rules.php
%%WWWDIR%%/chart_stats.php
%%WWWDIR%%/chart_virus.php
-@mode 640
-@group %%WWWGRP%%
-%%WWWDIR%%/config.php.dist
-@group
-@mode
+@(%%WWWOWN%%,%%WWWGRP%%,640) %%WWWDIR%%/config.php.dist
%%WWWDIR%%/confirm.php
%%WWWDIR%%/constants.php
%%WWWDIR%%/core.php
@@ -909,7 +907,53 @@ sbin/maiad
%%WWWDIR%%/ximpersonate.php
%%WWWDIR%%/xlogin.php
%%WWWDIR%%/xsettings.php
-@dir %%WWWDIR%%/themes/desert_sand/compiled
-@dir %%WWWDIR%%/themes/dgm/compiled
-@dir %%WWWDIR%%/themes/ocean_surf/compiled
@dir %%WWWDIR%%/web
+@dir %%WWWDIR%%/themes/ocean_surf/templates/settings
+@dir %%WWWDIR%%/themes/ocean_surf/templates
+@dir %%WWWDIR%%/themes/ocean_surf/javascript
+@dir %%WWWDIR%%/themes/ocean_surf/images
+@dir %%WWWDIR%%/themes/ocean_surf/css/images
+@dir %%WWWDIR%%/themes/ocean_surf/css
+@dir %%WWWDIR%%/themes/ocean_surf/compiled
+@dir %%WWWDIR%%/themes/ocean_surf/code
+@dir %%WWWDIR%%/themes/ocean_surf
+@dir %%WWWDIR%%/themes/dgm/templates
+@dir %%WWWDIR%%/themes/dgm/images
+@dir %%WWWDIR%%/themes/dgm/css
+@dir %%WWWDIR%%/themes/dgm/compiled
+@dir %%WWWDIR%%/themes/dgm/code
+@dir %%WWWDIR%%/themes/dgm
+@dir %%WWWDIR%%/themes/desert_sand/templates/welcome
+@dir %%WWWDIR%%/themes/desert_sand/templates/settings
+@dir %%WWWDIR%%/themes/desert_sand/templates
+@dir %%WWWDIR%%/themes/desert_sand/javascript
+@dir %%WWWDIR%%/themes/desert_sand/images
+@dir %%WWWDIR%%/themes/desert_sand/css/images
+@dir %%WWWDIR%%/themes/desert_sand/css
+@dir %%WWWDIR%%/themes/desert_sand/compiled
+@dir %%WWWDIR%%/themes/desert_sand/code
+@dir %%WWWDIR%%/themes/desert_sand
+@dir %%WWWDIR%%/themes
+@dir %%WWWDIR%%/overlib/mini
+@dir %%WWWDIR%%/overlib
+@dir %%WWWDIR%%/maia_db
+@dir %%WWWDIR%%/locale/sv
+@dir %%WWWDIR%%/locale/ru
+@dir %%WWWDIR%%/locale/pt
+@dir %%WWWDIR%%/locale/no
+@dir %%WWWDIR%%/locale/nl
+@dir %%WWWDIR%%/locale/it
+@dir %%WWWDIR%%/locale/hu
+@dir %%WWWDIR%%/locale/fr
+@dir %%WWWDIR%%/locale/en
+@dir %%WWWDIR%%/locale/de
+@dir %%WWWDIR%%/locale/da
+@dir %%WWWDIR%%/locale/cs
+@dir %%WWWDIR%%/libs/jquery/images
+@dir %%WWWDIR%%/libs/jquery
+@dir %%WWWDIR%%/libs
+@dir %%WWWDIR%%/images
+@dir %%WWWDIR%%/admin
+@dir %%WWWDIR%%
+@owner
+@group