openbsd-ports/www/pmwiki/Makefile
jasper 6443712529 - update to 2.2.35, includes a security fix for CVE-2011-4453,
PmWiki pagelist "order" Code Injection Vulnerability
2011-11-25 12:16:13 +00:00

37 lines
789 B
Makefile

# $OpenBSD: Makefile,v 1.10 2011/11/25 12:16:13 jasper Exp $
COMMENT= wiki-based system for collaborative creation of websites
DISTNAME= pmwiki-2.2.35
EXTRACT_SUFX= .tgz
CATEGORIES= www
HOMEPAGE= http://pmwiki.org/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/pub/pmwiki/
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
EXTRACT_ONLY=
PREFIX= /var/www
INSTDIR= ${PREFIX}/pmwiki
SUBST_VARS= INSTDIR
MODULES= lang/php
do-install:
@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTFILES}
@mv ${PREFIX}/${DISTNAME} ${PREFIX}/pmwiki
@perl -pi -e "s,/.flock,/wiki.d/.flock,g" ${PREFIX}/pmwiki/pmwiki.php
@${INSTALL_DATA_DIR} ${PREFIX}/pmwiki/wiki.d ${PREFIX}/pmwiki/uploads
.include <bsd.port.mk>