aboutsummaryrefslogtreecommitdiffstats
path: root/www/dokuwiki/Makefile
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2005-04-18 21:08:02 +0800
committervanilla <vanilla@FreeBSD.org>2005-04-18 21:08:02 +0800
commit300112a7083c09e0b643fa4c61b303555fc12dd4 (patch)
treeb0cb965f42bef7b4a45f04464e5fb1d35f499b1c /www/dokuwiki/Makefile
parent17167ce4f1e9993b6c4ebcc20ac9257046d22e77 (diff)
downloadfreebsd-ports-gnome-300112a7083c09e0b643fa4c61b303555fc12dd4.tar.gz
freebsd-ports-gnome-300112a7083c09e0b643fa4c61b303555fc12dd4.tar.zst
freebsd-ports-gnome-300112a7083c09e0b643fa4c61b303555fc12dd4.zip
- fix insufficient check on conf['uploadtypes']
- fix pkg-message Submitted by: Stephane Lentz <stephane.lentz@gmail.com> & chinsan <chinsan@mail2000.com.tw>
Diffstat (limited to 'www/dokuwiki/Makefile')
-rw-r--r--www/dokuwiki/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/www/dokuwiki/Makefile b/www/dokuwiki/Makefile
index ccc305d029a2..3ed6e66e1d7f 100644
--- a/www/dokuwiki/Makefile
+++ b/www/dokuwiki/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dokuwiki
PORTVERSION= 20050218
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.splitbrain.org/Programming/PHP/DokuWiki/
DISTNAME= dokuwiki-2005-02-18
@@ -19,7 +20,12 @@ USE_PHP= pcre session
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
-DOKUWIKIDIR?= www/data-dist/dokuwiki
+
+WWWDOCROOT?= www/data-dist
+DOKUWIKIURL?= dokuwiki
+WWWOWN?= www
+WWWGRP?= www
+DOKUWIKIDIR?= ${WWWDOCROOT}/${DOKUWIKIURL}
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
@@ -35,17 +41,19 @@ pre-install:
do-install:
# Data files
-${MKDIR} ${PREFIX}/${DOKUWIKIDIR}
- @${CHOWN} www:www ${PREFIX}/${DOKUWIKIDIR}
+ @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKIDIR}
@${CHMOD} 755 ${PREFIX}/${DOKUWIKIDIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${DOKUWIKIDIR}
# Setup the correct permissions
@${TOUCH} ${PREFIX}/${DOKUWIKIDIR}/changes.log
- @${CHOWN} -R www:www ${PREFIX}/${DOKUWIKIDIR}/changes.log
- @${CHOWN} -R www:www ${PREFIX}/${DOKUWIKIDIR}/data
- @${CHOWN} -R www:www ${PREFIX}/${DOKUWIKIDIR}/media
- @${CHOWN} -R www:www ${PREFIX}/${DOKUWIKIDIR}/attic
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKIDIR}/changes.log
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKIDIR}/data
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKIDIR}/media
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKIDIR}/attic
post-install:
- @${SED} -e 's|%%DOKUWIKIDIR%%|${PREFIX}/${DOKUWIKIDIR}|' ${PKGMESSAGE}
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
+ -e 's|%%WWWDOCROOT%%|${WWWDOCROOT}|' \
+ -e 's|%%DOKUWIKIURL%%|${DOKUWIKIURL}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>