aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/asterisk-stat/Makefile6
-rw-r--r--www/asterisk-stat/pkg-plist23
2 files changed, 16 insertions, 13 deletions
diff --git a/www/asterisk-stat/Makefile b/www/asterisk-stat/Makefile
index 7be700aa8674..9b492397a306 100644
--- a/www/asterisk-stat/Makefile
+++ b/www/asterisk-stat/Makefile
@@ -3,7 +3,7 @@
PORTNAME= asterisk-stat
PORTVERSION= 2.0.1
-PORTREVISION= 14
+PORTREVISION= 15
CATEGORIES= www
MASTER_SITES= http://ftp.iij.ad.jp/pub/FreeBSD/distfiles/
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}
@@ -38,7 +38,8 @@ USE_PHP+= ${ASTERISKSTATDB}
EXTRA_PATCHES+= ${FILESDIR}/${ASTERISKSTATDB}__patch-cdr.php \
${FILESDIR}/${ASTERISKSTATDB}__patch-defines.php
PLIST_SUB+= ASTERISKDIR=${ASTERISKDIR:S,^${PREFIX}/,,} \
- ASTERISKSTATDB=${ASTERISKSTATDB}
+ ASTERISKSTATDB=${ASTERISKSTATDB} \
+ WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
post-patch:
@${MV} ${WRKSRC}/images/print.css ${WRKSRC}/css
@@ -55,6 +56,5 @@ do-install:
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${ASTERISKDIR})
${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
${INSTALL_DATA} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${STAGEDIR}${PREFIX}/etc/asterisk
- ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${ASTERISKDIR}
.include <bsd.port.mk>
diff --git a/www/asterisk-stat/pkg-plist b/www/asterisk-stat/pkg-plist
index 0ae3aad3b05c..6f668adc02a6 100644
--- a/www/asterisk-stat/pkg-plist
+++ b/www/asterisk-stat/pkg-plist
@@ -1,4 +1,6 @@
etc/asterisk/cdr_%%ASTERISKSTATDB%%.tbl
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
%%ASTERISKDIR%%/CHANGELOG.txt
%%ASTERISKDIR%%/call-comp.php
%%ASTERISKDIR%%/call-daily-load.php
@@ -121,13 +123,14 @@ etc/asterisk/cdr_%%ASTERISKSTATDB%%.tbl
%%ASTERISKDIR%%/lib/fpdf.php
%%ASTERISKDIR%%/lib/iam_csvdump.php
%%ASTERISKDIR%%/wiki.html
-@dirrmtry etc/asterisk
-@dirrm %%ASTERISKDIR%%/lib/font/makefont
-@dirrm %%ASTERISKDIR%%/lib/font
-@dirrm %%ASTERISKDIR%%/lib/DB-modules
-@dirrm %%ASTERISKDIR%%/lib
-@dirrm %%ASTERISKDIR%%/jpgraph_lib
-@dirrm %%ASTERISKDIR%%/images
-@dirrm %%ASTERISKDIR%%/css/images
-@dirrm %%ASTERISKDIR%%/css
-@dirrm %%ASTERISKDIR%%
+@dir %%ASTERISKDIR%%/lib/font/makefont
+@dir %%ASTERISKDIR%%/lib/font
+@dir %%ASTERISKDIR%%/lib/DB-modules
+@dir %%ASTERISKDIR%%/lib
+@dir %%ASTERISKDIR%%/jpgraph_lib
+@dir %%ASTERISKDIR%%/images
+@dir %%ASTERISKDIR%%/css/images
+@dir %%ASTERISKDIR%%/css
+@dir %%ASTERISKDIR%%
+@owner
+@group