summaryrefslogtreecommitdiffstats
path: root/www/pmwiki
diff options
context:
space:
mode:
authorfoxfair <foxfair@FreeBSD.org>2005-03-06 08:36:45 +0000
committerfoxfair <foxfair@FreeBSD.org>2005-03-06 08:36:45 +0000
commitcfb8d2d2bc4234936285a4bf195d94b8db47021c (patch)
tree4361e12d04dc8586ede17f2f577ba341b27a0d8d /www/pmwiki
parent491a8bec97371babe794a939c6c88a2e4aeaf44e (diff)
downloadFreeBSD-ports-cfb8d2d2bc4234936285a4bf195d94b8db47021c.zip
FreeBSD-ports-cfb8d2d2bc4234936285a4bf195d94b8db47021c.tar.gz
Add pmwiki 2.0b25, a WikiWikiWeb clone using PHP.
PR: ports/78099 Submitted by: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw>
Diffstat (limited to 'www/pmwiki')
-rw-r--r--www/pmwiki/Makefile59
-rw-r--r--www/pmwiki/distinfo2
-rw-r--r--www/pmwiki/pkg-descr5
-rw-r--r--www/pmwiki/pkg-message10
4 files changed, 76 insertions, 0 deletions
diff --git a/www/pmwiki/Makefile b/www/pmwiki/Makefile
new file mode 100644
index 0000000..9023673
--- /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 0000000..0ba338c
--- /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 0000000..8ef9274
--- /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 0000000..bac154b
--- /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.
+
+**********************************************************************
OpenPOWER on IntegriCloud