aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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