diff options
author | Foxfair Hu <foxfair@FreeBSD.org> | 2005-03-06 08:36:45 +0000 |
---|---|---|
committer | Foxfair Hu <foxfair@FreeBSD.org> | 2005-03-06 08:36:45 +0000 |
commit | 411fc753fee63281b5b8709de32737b67031270a (patch) | |
tree | 2b8c4005b35b33b9253bd104396d173b53ff22a9 | |
parent | 9bba2ebdaebe9afe70961fd05f933f230f8dddb7 (diff) | |
download | ports-411fc753fee63281b5b8709de32737b67031270a.tar.gz ports-411fc753fee63281b5b8709de32737b67031270a.zip |
Notes
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/pmwiki/Makefile | 59 | ||||
-rw-r--r-- | www/pmwiki/distinfo | 2 | ||||
-rw-r--r-- | www/pmwiki/pkg-descr | 5 | ||||
-rw-r--r-- | www/pmwiki/pkg-message | 10 |
5 files changed, 77 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 5ec859ba9dcc..b1c54fc87e8b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -606,6 +606,7 @@ SUBDIR += plone SUBDIR += plugger SUBDIR += plugger-plugins-hubbe + SUBDIR += pmwiki SUBDIR += pnews SUBDIR += polipo SUBDIR += postnuke diff --git a/www/pmwiki/Makefile b/www/pmwiki/Makefile new file mode 100644 index 000000000000..9023673cc5ac --- /dev/null +++ b/www/pmwiki/Makefile @@ -0,0 +1,59 @@ +# Ports collection makefile for: PmWiki +# Date created: Sat Feb 26 06:16:50 CST 2005 +# Whom: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= pmwiki +PORTVERSION= 2.0b25 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/\.beta/} +EXTRACT_SUFX= .tgz + +MAINTAINER= tjs@cdpa.nsysu.edu.tw +COMMENT= A WikiWikiWeb clone using PHP + +USE_PHP= mbstring +PHP4_PORT?= www/mod_php4 +WANT_PHP_WEB= yes + +WRKSRC= ${WRKDIR}/${DISTNAME} +NO_BUILD= yes +PKGMESSAGE= ${WRKDIR}/pkg-message + +PLIST_SUB+= PMWIKIDIR=${PMWIKIDIR} +PLIST= ${WRKDIR}/pkg-plist + +pre-fetch: +.if !defined(PMWIKIDIR) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define PMWIKIDIR to override default of 'www/data/pmwiki'." + @${ECHO_MSG} "" +.endif + +PMWIKIDIR?= www/data/pmwiki +WWWUSER?= www +WWWGROUP?= www + +post-configure: + @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%PMWIKIDIR%%#${PMWIKIDIR}#g' pkg-message > ${PKGMESSAGE} + +do-install: + @${MKDIR} -m 755 ${PREFIX}/${PMWIKIDIR} + @${CP} -R ${WRKSRC}/ ${PREFIX}/${PMWIKIDIR} + @${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR} + +pre-install: + cd ${WRKSRC} && ${FIND} -s * -type f | ${SED} -e 's|^|${PMWIKIDIR}/|' > ${PLIST} \ + && ${FIND} -d * -type d | ${SED} -e 's|^|@dirrm ${PMWIKIDIR}/|' >> ${PLIST} \ + && ${ECHO_MSG} "@unexec rmdir ${PMWIKIDIR} 2>/dev/null || true" >> ${PLIST} + +post-install: + @${MKDIR} -m 775 ${PREFIX}/${PMWIKIDIR}/wiki.d + @${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR}/wiki.d + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/pmwiki/distinfo b/www/pmwiki/distinfo new file mode 100644 index 000000000000..0ba338c32ab0 --- /dev/null +++ b/www/pmwiki/distinfo @@ -0,0 +1,2 @@ +MD5 (pmwiki-2.0.beta25.tgz) = 21bb6f0cb9261ec9851dcbfbd66d2986 +SIZE (pmwiki-2.0.beta25.tgz) = 165903 diff --git a/www/pmwiki/pkg-descr b/www/pmwiki/pkg-descr new file mode 100644 index 000000000000..8ef92749b01f --- /dev/null +++ b/www/pmwiki/pkg-descr @@ -0,0 +1,5 @@ +PmWiki is a WikiWikiWeb system developed by Patrick Michaud in the PHP +scripting language. PmWiki has been primarily designed as a tool to +support easy, collaborative authoring and maintenance of web sites. + +WWW: http://www.pmwiki.org/ diff --git a/www/pmwiki/pkg-message b/www/pmwiki/pkg-message new file mode 100644 index 000000000000..bac154b216dd --- /dev/null +++ b/www/pmwiki/pkg-message @@ -0,0 +1,10 @@ +********************************************************************** + + Before the first use of PmWiki, copy sample-config.php to config.php + + in %%PREFIX%%/%%PMWIKIDIR%% + + Please visit 'http://{host.domain}/pmwiki/pmwiki.php' in a + web-browser and follow the configuration instructions. + +********************************************************************** |