pkgsrc/www/wordpress/Makefile
morr 21af7d3a66 Security and maintenance update to Wordpress 5.4.2.
Changes:

WordPress versions 5.4 and earlier are affected by the following bugs, which are fixed in version 5.4.2. If you haven’t yet updated to 5.4, there are also updated versions of 5.3 and earlier that fix the security issues.

- Props to Sam Thomas (jazzy2fives) for finding an XSS issue where authenticated users with low privileges are able to add JavaScript to posts in the block editor.
- Props to Luigi – (gubello.me) for discovering an XSS issue where authenticated users with upload permissions are able to add JavaScript to media files.
- Props to Ben Bidner of the WordPress Security Team for finding an open redirect issue in wp_validate_redirect().
- Props to Nrimo Ing Pandum for finding an authenticated XSS issue via theme uploads.
- Props to Simon Scannell of RIPS Technologies for finding an issue where set-screen-option can be misused by plugins leading to privilege escalation.
- Props to Carolina Nymark for discovering an issue where comments from password-protected posts and pages could be displayed under certain conditions.

Thank you to all of the reporters for privately disclosing the vulnerabilities. This gave the security team time to fix the vulnerabilities before WordPress sites could be attacked.

More details on https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/
2020-06-21 19:02:31 +00:00

77 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.93 2020/06/21 19:02:31 morr Exp $
DISTNAME= wordpress-${VERSION}
VERSION= 5.4.2
CATEGORIES= www
MASTER_SITES= https://wordpress.org/
MAINTAINER= morr@NetBSD.org
HOMEPAGE= https://wordpress.org/
COMMENT= Blogging tool written in php
LICENSE= gnu-gpl-v2
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"
.include "options.mk"
NO_BUILD= yes
WRKSRC= ${WRKDIR}/wordpress
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
PKG_GROUPS_VARS= WWW_GROUP
PKG_USERS_VARS= WWW_USER
BUILD_DEFS+= WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP
EGDIR= ${PREFIX}/share/examples/wordpress
DOCDIR= ${PREFIX}/share/doc/wordpress
WPHOME= ${PREFIX}/share/wordpress
FILES_SUBST+= WPHOME=${WPHOME}
MESSAGE_SUBST+= DOCDIR=${DOCDIR}
CONF_FILES+= ${EGDIR}/wordpress.conf ${PKG_SYSCONFDIR}/wordpress.conf
OWN_DIRS_PERMS+= ${WPHOME}/wp-content/uploads \
${WWW_USER} ${WWW_GROUP} 0750
INSTALLATION_DIRS+= ${DOCDIR} ${WPHOME} ${EGDIR}
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.6.20:../../databases/php-mysqli
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.6.20:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.6.20:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.6.20:../../archivers/php-zip
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.6.20:../../archivers/php-zlib
SUBST_CLASSES+= conf
SUBST_MESSAGE.conf= Fixing pathnames in configuration file.
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= ../wordpress.conf
SUBST_VARS.conf= WPHOME
.if !empty(PKG_OPTIONS:Map-php) && ${PKG_APACHE} == "apache24"
SUBST_SED.conf+= -e "/Order allow,deny/d"
SUBST_SED.conf+= -e "s,Allow from all,Require all granted,g"
.endif
post-extract:
${CP} ${FILESDIR}/wordpress.conf ${WRKDIR}/wordpress.conf
do-install:
${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${DOCDIR}
# ${INSTALL_DATA} ${WRKSRC}/wp-config-sample.php ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKDIR}/wordpress.conf ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/readme.html
${RM} ${WRKSRC}/license.txt
# ${RM} ${WRKSRC}/wp-config-sample.php
cd ${WRKSRC} && pax -rw -pmp . ${DESTDIR}${WPHOME}
${TOUCH} ${DESTDIR}${WPHOME}/wp-content/plugins/index.html
${FIND} ${DESTDIR}${WPHOME} \
-type d -exec ${CHMOD} ${PKGDIRMODE} "{}" \;
${FIND} ${DESTDIR}${WPHOME} \
-type f -exec ${CHMOD} ${SHAREMODE} "{}" \;
.include "../../mk/bsd.pkg.mk"