aboutsummaryrefslogtreecommitdiff
path: root/finance/myphpmoney
diff options
context:
space:
mode:
Diffstat (limited to 'finance/myphpmoney')
-rw-r--r--finance/myphpmoney/Makefile42
-rw-r--r--finance/myphpmoney/pkg-plist4
2 files changed, 24 insertions, 22 deletions
diff --git a/finance/myphpmoney/Makefile b/finance/myphpmoney/Makefile
index 4f3754a37d61..829995ef28c0 100644
--- a/finance/myphpmoney/Makefile
+++ b/finance/myphpmoney/Makefile
@@ -1,34 +1,32 @@
# Created by: courou <courou@users.sourceforge.net>
# $FreeBSD$
-PORTNAME= myphpmoney
-PORTVERSION= 1.3.r3
-PORTEPOCH= 1
-CATEGORIES= finance www
-MASTER_SITES= SF/${PORTNAME}/MyPhpMoney/1.3RC3
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/RC/}
+PORTNAME= myphpmoney
+PORTVERSION= 1.3.r3
+PORTEPOCH= 1
+CATEGORIES= finance www
+MASTER_SITES= SF/${PORTNAME}/MyPhpMoney/1.3RC3
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/RC/}
MAINTAINER= ports@FreeBSD.org
-COMMENT= PHP script for managing your accounts
+COMMENT= PHP script for managing your accounts
-WEBOWN?= www
-WEBGRP?= www
-APACHEDIR= ${PREFIX}/www/data
-INSTALLDIR= ${APACHEDIR}/myphpmoney
+WEBOWN?= www
+WEBGRP?= www
+APACHEDIR= ${PREFIX}/www/data
+INSTALLDIR= ${APACHEDIR}/myphpmoney
USES= tar:bzip2
-USE_PHP= yes
-WANT_PHP_WEB= yes
-NO_BUILD= yes
+USE_PHP= yes
+WANT_PHP_WEB= yes
+NO_BUILD= yes
-PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
+PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,} WWWOWN="${WEBOWN}" WWWGRP="${WEBGRP}"
-NO_STAGE= yes
do-install:
- ${MKDIR} ${INSTALLDIR}
- cd ${WRKSRC}; ${FIND} . \
- | ${CPIO} -pdm -R ${WEBOWN}:${WEBGRP} ${INSTALLDIR}
- ${CHMOD} -R ${BINMODE} ${INSTALLDIR}
- ${CHMOD} 777 ${INSTALLDIR}/public_html/dump
- ${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
+ ${MKDIR} ${STAGEDIR}${INSTALLDIR}
+ cd ${WRKSRC}; ${FIND} . | ${CPIO} -pdm ${STAGEDIR}${INSTALLDIR}
+ ${CHMOD} -R ${BINMODE} ${STAGEDIR}${INSTALLDIR}
+ ${CHMOD} 777 ${STAGEDIR}${INSTALLDIR}/public_html/dump
+ ${FIND} ${STAGEDIR}${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
.include <bsd.port.mk>
diff --git a/finance/myphpmoney/pkg-plist b/finance/myphpmoney/pkg-plist
index c5ca6a54a7e7..9ee8771e07f1 100644
--- a/finance/myphpmoney/pkg-plist
+++ b/finance/myphpmoney/pkg-plist
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
%%INSTALLDIR%%/CHANGELOG
%%INSTALLDIR%%/CHANGES/CHANGELOG-2002-FR
%%INSTALLDIR%%/CHANGES/CHANGELOG-2003-FR
@@ -448,6 +450,8 @@
%%INSTALLDIR%%/sql/example.sql
%%INSTALLDIR%%/sql/migrate1.2.2.4-1.2.3.1.sql
%%INSTALLDIR%%/sql/myportfolio.sql
+@group
+@owner
@dirrm %%INSTALLDIR%%/sql
@dirrm %%INSTALLDIR%%/public_html/templates
@dirrm %%INSTALLDIR%%/public_html/tables