mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
1f6d334130
- Release maintainership. PR: ports/87237 Submitted by: maintainer
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# 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.0.10
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
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>
|