2005-03-06 08:36:45 +00:00
|
|
|
# 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
|
2006-01-29 14:23:52 +00:00
|
|
|
PORTVERSION= 2.0.13
|
2006-02-20 00:48:37 +00:00
|
|
|
PORTREVISION= 1
|
2005-10-13 12:15:03 +00:00
|
|
|
PORTEPOCH= 1
|
2005-03-06 08:36:45 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-01-29 14:23:52 +00:00
|
|
|
MAINTAINER= babak@farrokhi.net
|
2005-03-06 08:36:45 +00:00
|
|
|
COMMENT= A WikiWikiWeb clone using PHP
|
|
|
|
|
|
|
|
USE_PHP= mbstring
|
|
|
|
PHP4_PORT?= www/mod_php4
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
PLIST_SUB+= PMWIKIDIR=${PMWIKIDIR}
|
2006-02-14 12:26:36 +00:00
|
|
|
SUB_LIST+= PMWIKIDIR=${PMWIKIDIR}
|
|
|
|
SUB_FILES= pkg-message
|
2005-03-06 08:36:45 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(PMWIKIDIR)
|
|
|
|
@${ECHO_MSG} ""
|
2006-02-14 12:26:36 +00:00
|
|
|
@${ECHO_MSG} "Define PMWIKIDIR to override default of ${PMWIKIDIR}."
|
2005-03-06 08:36:45 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PMWIKIDIR?= www/data/pmwiki
|
|
|
|
WWWUSER?= www
|
|
|
|
WWWGROUP?= www
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} -m 755 ${PREFIX}/${PMWIKIDIR}
|
|
|
|
@${CP} -R ${WRKSRC}/ ${PREFIX}/${PMWIKIDIR}
|
|
|
|
@${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} -m 775 ${PREFIX}/${PMWIKIDIR}/wiki.d
|
|
|
|
@${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR}/wiki.d
|
2006-01-29 14:23:52 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-03-06 08:36:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|