1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/pmwiki/Makefile
Martin Wilke 6266051654 - Update to 2.2.64,1
- Pet portlint

PR:		189831
Submitted by:	Bartek Rutkowski <ports@robakdesign.com>
2014-05-19 03:37:52 +00:00

54 lines
1.3 KiB
Makefile

# Created by: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw>
# $FreeBSD$
PORTNAME= pmwiki
PORTVERSION= 2.2.64
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://www.pmwiki.org/pub/pmwiki/
EXTRACT_SUFX= .tgz
MAINTAINER= miwi@FreeBSD.org
COMMENT= WikiWikiWeb clone using PHP
USE_PHP= mbstring session
WANT_PHP_WEB= yes
NO_BUILD= yes
PORTDOCS= *
PLIST_SUB+= PMWIKIDIR=${PMWIKIDIR}
SUB_LIST+= PMWIKIDIR=${PMWIKIDIR}
SUB_FILES= pkg-message
pre-fetch:
.if !defined(PMWIKIDIR)
@${ECHO_MSG} ""
@${ECHO_MSG} "Define PMWIKIDIR (now: ${PMWIKIDIR})"
@${ECHO_MSG} "to override default: www/pmwiki".
@${ECHO_MSG} ""
.endif
PMWIKIDIR?= www/pmwiki
CPIOFLAGS= --quiet -pdm -R ${WWWOWN}:${WWWGRP}
post-extract:
@${MV} ${WRKSRC}/README.txt ${WRKSRC}/docs
@${MV} ${WRKSRC}/docs/sample-config.php ${WRKSRC}
do-install:
@${MKDIR} -m 755 ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
@cd ${WRKSRC} && ${FIND} . ! \( -name docs -prune \) | \
${CPIO} ${CPIOFLAGS} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}
@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${STAGEDIR}${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
post-install:
@${MKDIR} -m 775 ${STAGEDIR}${PREFIX}/${PMWIKIDIR}/wiki.d
@${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PMWIKIDIR}/wiki.d
.include <bsd.port.mk>