79bf6fdd26
9.3.21 (2022-08-03) * Issue #3301495 by lauriii, nod_: Update CKEditor 5 to 35.0.1 * Issue #3300773 by bradjones1, xjm, catch, andypost, Spokje: Fix failed test on `symfony/http-foundation` 4.4.44/6.1.3 and later 9.3.22 (2022-09-28) This release fixes security vulnerabilities. Sites are urged to update immediately after reading the notes below and the security announcement: * Drupal core - Critical - Multiple vulnerabilities - SA-CORE-2022-016 No other fixes are included.
88 lines
2.7 KiB
Makefile
88 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2022/10/06 14:09:49 taca Exp $
|
|
|
|
DISTNAME= drupal-9.3.22
|
|
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://drupal.org/
|
|
COMMENT= Open source content management system
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.0:../../graphics/php-gd
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-opcache>=5.4.0:../../devel/php-opcache
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=5.4.0:../../databases/php-pdo
|
|
|
|
PHP_VERSIONS_ACCEPTED= 74 80 81
|
|
|
|
NO_BUILD= YES
|
|
DRUPAL= share/drupal
|
|
PAX_DIRS= includes misc modules profiles scripts themes
|
|
|
|
PKG_GROUPS_VARS+= WWW_GROUP
|
|
PKG_USERS_VARS+= WWW_USER
|
|
|
|
BUILD_DEFS+= WWW_USER WWW_GROUP
|
|
USE_TOOLS+= bash:run pax
|
|
|
|
OWN_DIRS_PERMS+= ${DRUPAL}/sites/default \
|
|
${WWW_USER} ${WWW_GROUP} 0750
|
|
|
|
CONF_FILES= share/examples/drupal/drupal.conf \
|
|
${PKG_SYSCONFDIR}/drupal.conf \
|
|
share/examples/drupal/default.settings.php \
|
|
${DRUPAL}/sites/default/default.settings.php
|
|
|
|
CONF_FILES_PERMS+= share/examples/drupal/default.settings.php \
|
|
${DRUPAL}/sites/default/settings.php \
|
|
${WWW_USER} ${WWW_GROUP} 0640
|
|
|
|
REPLACE_INTERPRETER+= php
|
|
REPLACE.php.old= /usr/bin/env php
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
REPLACE_FILES.php= core/scripts/drupal.sh core/scripts/password-hash.sh
|
|
REPLACE_FILES.php+= core/scripts/rebuild_token_calculator.sh
|
|
REPLACE_FILES.php+= vendor/bin/var-dump-server
|
|
REPLACE_FILES.php+= vendor/symfony/var-dumper/Resources/bin/var-dump-server
|
|
|
|
REPLACE_INTERPRETER+= php2
|
|
REPLACE.php2.old= .*php
|
|
REPLACE.php2.new= ${PREFIX}/bin/php
|
|
REPLACE_FILES.php2= core/scripts/update-countries.sh
|
|
REPLACE_FILES.php2+= vendor/pear/archive_tar/scripts/phptar.in
|
|
|
|
REPLACE_BASH+= core/scripts/dev/commit-code-check.sh
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= pre-install
|
|
SUBST_FILES.conf= drupal.conf
|
|
SUBST_VARS.conf= DRUPAL PREFIX
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
|
|
|
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites \
|
|
share/doc/drupal share/examples/drupal
|
|
.for i in ${PAX_DIRS}
|
|
INSTALLATION_DIRS+= ${DRUPAL}/${i}
|
|
.endfor
|
|
|
|
.include "options.mk"
|
|
|
|
pre-configure:
|
|
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
|
|
${CHMOD} 0644 ${WRKSRC}/core/scripts/run-tests.sh
|
|
${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${PREFIX}/${DRUPAL}
|
|
${INSTALL_DATA} ${WRKSRC}/drupal.conf \
|
|
${DESTDIR}${PREFIX}/share/examples/drupal
|
|
${INSTALL_DATA} ${WRKSRC}/sites/default/default.settings.php \
|
|
${DESTDIR}${PREFIX}/share/examples/drupal
|
|
|
|
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/${DRUPAL}
|
|
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "../../lang/php/json.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|