aboutsummaryrefslogtreecommitdiffstats
path: root/www/mysar
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-10-11 05:47:56 +0800
committerantoine <antoine@FreeBSD.org>2014-10-11 05:47:56 +0800
commit03b4f8979f3a4a5287b2974816b3478dc4341a73 (patch)
treee66a2617a490c4ff768d04b2ab36aece1cb9208d /www/mysar
parentf771e22fc3de0139cb886bdf618dab0b5debdf01 (diff)
downloadfreebsd-ports-gnome-03b4f8979f3a4a5287b2974816b3478dc4341a73.tar.gz
freebsd-ports-gnome-03b4f8979f3a4a5287b2974816b3478dc4341a73.tar.zst
freebsd-ports-gnome-03b4f8979f3a4a5287b2974816b3478dc4341a73.zip
- Allow staging as a regular user
- Bump portrevision as some files were not packaged with intended owner
Diffstat (limited to 'www/mysar')
-rw-r--r--www/mysar/Makefile6
-rw-r--r--www/mysar/pkg-plist20
2 files changed, 6 insertions, 20 deletions
diff --git a/www/mysar/Makefile b/www/mysar/Makefile
index 75366906d98f..b7dc42bcab4f 100644
--- a/www/mysar/Makefile
+++ b/www/mysar/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mySAR
PORTVERSION= 2.1.4
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= SF
DISTNAME= ${PORTNAME:tl}-${PORTVERSION}
@@ -24,7 +24,7 @@ CONFIGURE_ARGS= --with-mysql-lib=${LOCALBASE}
MYSARPREFIX= mysar
MYSARDIR?= ${PREFIX}/${MYSARPREFIX}
-PLIST_SUB= MYSAR=${MYSARPREFIX}
+PLIST_SUB= MYSAR=${MYSARPREFIX} WWWOWN="${WWWOWN}"
SUB_FILES= pkg-message
SUB_LIST= MYSARDIR=${MYSARDIR}
@@ -58,7 +58,5 @@ do-install:
${CP} -R `find ${WRKROOT} -mindepth 1 -maxdepth 1 ! -name mysar-binary-importer` ${STAGEDIR}${MYSARDIR}
${INSTALL_PROGRAM} ${WRKROOT}/mysar-binary-importer/src/mysar ${STAGEDIR}${MYSARDIR}/bin
${INSTALL_DATA} ${WRKROOT}/mysar-binary-importer/mysar.conf ${STAGEDIR}${MYSARDIR}/etc
- ${CHOWN} -R ${WWWOWN} ${STAGEDIR}${MYSARDIR}/www-templates
- ${CHOWN} -R ${WWWOWN} ${STAGEDIR}${MYSARDIR}/smarty-tmp
.include <bsd.port.mk>
diff --git a/www/mysar/pkg-plist b/www/mysar/pkg-plist
index 0c91614e7744..c716e82cfc4d 100644
--- a/www/mysar/pkg-plist
+++ b/www/mysar/pkg-plist
@@ -86,6 +86,7 @@
%%MYSAR%%/inc/smarty/plugins/shared.escape_special_chars.php
%%MYSAR%%/inc/smarty/plugins/shared.make_timestamp.php
%%MYSAR%%/log/.keep
+@owner %%WWWOWN%%
%%MYSAR%%/www-templates/IPSitesSummary.tpl
%%MYSAR%%/www-templates/IPSummary.tpl
%%MYSAR%%/www-templates/administration.tpl
@@ -95,6 +96,7 @@
%%MYSAR%%/www-templates/header.tpl
%%MYSAR%%/www-templates/index.tpl
%%MYSAR%%/www-templates/siteusers.tpl
+@owner
%%MYSAR%%/www-templates.fr_FR/header.tpl
%%MYSAR%%/www-templates.fr_FR/IPSummary.tpl
%%MYSAR%%/www-templates.fr_FR/details.tpl
@@ -128,19 +130,5 @@
%%MYSAR%%/www/images/up-arrow.gif
%%MYSAR%%/www/index.php
%%MYSAR%%/www/install/index.php
-@dirrmtry %%MYSAR%%/bin
-@dirrmtry %%MYSAR%%/etc
-@dirrmtry %%MYSAR%%/inc/smarty/internals
-@dirrmtry %%MYSAR%%/inc/smarty/plugins
-@dirrmtry %%MYSAR%%/inc/smarty
-@dirrmtry %%MYSAR%%/inc
-@dirrmtry %%MYSAR%%/smarty-tmp
-@dirrmtry %%MYSAR%%/log
-@dirrmtry %%MYSAR%%/www-templates.ru_RU
-@dirrmtry %%MYSAR%%/www-templates.fr_FR
-@dirrmtry %%MYSAR%%/www-templates.pt_BR
-@dirrmtry %%MYSAR%%/www-templates
-@dirrmtry %%MYSAR%%/www/images
-@dirrmtry %%MYSAR%%/www/install
-@dirrmtry %%MYSAR%%/www
-@dirrmtry %%MYSAR%%
+@dir(%%WWWOWN%%,,) %%MYSAR%%/smarty-tmp
+@dir(%%WWWOWN%%,,) %%MYSAR%%/www-templates