openbsd-ports/www/mediawiki/Makefile
sthen 73ce8c0abe SECURITY (CSRF) and bugfix update to mediawiki 1.18.2, ok wen heping (maint.)
- while there, use pax -rw to copy files rather than mv'ing them, makes it
easier to examine source and use update-patches after 'make fake'.
2012-03-23 12:59:58 +00:00

39 lines
911 B
Makefile

# $OpenBSD: Makefile,v 1.35 2012/03/23 12:59:58 sthen Exp $
COMMENT = web-based collaborative editing environment
DISTNAME = mediawiki-1.18.2
CATEGORIES = www
HOMEPAGE = http://www.mediawiki.org/
MAINTAINER = Wen Heping <wenheping@gmail.com>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES= http://download.wikimedia.org/mediawiki/1.18/
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/mediawiki
SUBST_VARS= INSTDIR
MODULES= lang/php
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd \
php-mysql-${MODPHP_VSPEC}|php-pgsql-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-mysql
do-install:
@${INSTALL_DATA_DIR} ${INSTDIR}
@cd ${WRKSRC} && pax -rw * ${INSTDIR}
@find ${PREFIX} -name '.cvsignore' -or -name \*.orig -exec rm {} \;
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}
.include <bsd.port.mk>