pkgsrc/www/mediawiki/Makefile
martti b00a33c4c0 Updated www/mediawiki to 1.13.3
This is a security release of MediaWiki 1.13.3. Some of the security issues
affect *all* versions of MediaWiki except the versions released today, so
all site administrators are encouraged to upgrade.

http://lists.wikimedia.org/pipermail/mediawiki-announce/2008-December/000080.html
2008-12-15 11:54:34 +00:00

65 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2008/12/15 11:54:34 martti Exp $
DISTNAME= mediawiki-${VER}.${PVER}
CATEGORIES= www
MASTER_SITES= http://download.wikimedia.org/mediawiki/${VER}/
MAINTAINER= martti@NetBSD.org
HOMEPAGE= http://www.mediawiki.org/
COMMENT= Free software wiki package originally written for Wikipedia
#LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql
.include "../../mk/bsd.prefs.mk"
PKG_INSTALLATION_TYPES= overwrite pkgviews
VER= 1.13
PVER= 3
APACHE_USER?= www
APACHE_GROUP?= www
BUILD_DEFS+= APACHE_USER APACHE_GROUP
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/mediawiki
MEDIAWIKI= ${PREFIX}/share/mediawiki
CONF_FILES= ${EGDIR}/mediawiki.conf \
${PKG_SYSCONFDIR}/mediawiki.conf
NO_CONFIGURE= YES
NO_BUILD= YES
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing pathnames in configuration file.
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= ../mediawiki.conf
SUBST_SED.paths= -e "s,@MEDIAWIKI@,${MEDIAWIKI},g"
SUBST_CLASSES+= perl
SUBST_STAGE.perl= post-patch
SUBST_MESSAGE.perl= Fixing path to perl
SUBST_FILES.perl+= maintenance/postgres/compare_schemas.pl
SUBST_FILES.perl+= maintenance/postgres/mediawiki_mysql2postgres.pl
SUBST_SED.perl= -e "s|/usr/bin/perl|${PERL5}|"
post-extract:
${CP} ${FILESDIR}/mediawiki.conf ${WRKDIR}/mediawiki.conf
do-install:
${INSTALL_DATA_DIR} ${MEDIAWIKI}
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \
${MEDIAWIKI}/{} \; -exec ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} \
${MEDIAWIKI}/{} \;
cd ${WRKSRC} && ${FIND} . \! -type d -exec ${INSTALL_DATA} {} \
${MEDIAWIKI}/{} \; -exec ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} \
${MEDIAWIKI}/{} \;
${INSTALL_DATA} ${WRKDIR}/mediawiki.conf ${EGDIR}/mediawiki.conf
.include "../../lang/php/phpversion.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"