pkgsrc/www/mediawiki/Makefile
martti e7569b3ed6 Updated www/mediawiki to 1.15.3
This is a security and bugfix release of MediaWiki 1.15.3 and MediaWiki
1.16.0beta2.

MediaWiki was found to be vulnerable to login CSRF. An attacker who
controls a user account on the target wiki can force the victim to log
in as the attacker, via a script on an external website. If the wiki is
configured to allow user scripts, say with "$wgAllowUserJs = true" in
LocalSettings.php, then the attacker can proceed to mount a
phishing-style attack against the victim to obtain their password.

Even without user scripting, this attack is a potential nuisance, and so
all public wikis should be upgraded if possible.

Our fix includes a breaking change to the API login action. Any clients
using it will need to be updated. We apologise for making such a
disruptive change in a minor release, but we feel that security is
paramount.

For more details see https://bugzilla.wikimedia.org/show_bug.cgi?id=23076
2010-04-07 05:40:11 +00:00

66 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2010/04/07 05:40:11 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
EGDIR= share/examples/mediawiki
MEDIAWIKI= ${PREFIX}/share/mediawiki
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= ${EGDIR} share/mediawiki
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
PKG_INSTALLATION_TYPES= overwrite pkgviews
VER= 1.15
PVER= 3
APACHE_USER?= www
APACHE_GROUP?= www
BUILD_DEFS+= APACHE_USER APACHE_GROUP
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
CONF_FILES= ${PREFIX}/${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:
cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \
${DESTDIR}${MEDIAWIKI}/{} \; -exec ${CHOWN} \
${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MEDIAWIKI}/{} \;
cd ${WRKSRC} && ${FIND} . \! -type d -exec ${INSTALL_DATA} {} \
${DESTDIR}${MEDIAWIKI}/{} \; -exec ${CHOWN} \
${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MEDIAWIKI}/{} \;
${INSTALL_DATA} ${WRKDIR}/mediawiki.conf \
${DESTDIR}${PREFIX}/${EGDIR}/mediawiki.conf
.include "../../lang/php/phpversion.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"