pkgsrc/www/drupal7/Makefile
prlw1 2663052def Update drupal7 to 7.61
Full compatibility with PHP 7.2 (#2947772)

Drupal 7.61, 2018-11-07
-----------------------
- File upload validation functions and hook_file_validate() implementations are
  now always passed the correct file URI.
- The default form cache expiration of 6 hours is now configurable (API
  addition: https://www.drupal.org/node/2857751).
- Allowed callers of drupal_http_request() to optionally specify an explicit
  Host header.
- Allowed the + character to appear in usernames.
- PHP 7.2: Fixed Archive_Tar incompatibility.
- PHP 7.2: Removed deprecated function each().
- PHP 7.2: Avoid count() calls on uncountable variables.
- PHP 7.2: Removed deprecated create_function() call.
- PHP 7.2: Make sure variables are arrays in theme_links().
- Fixed theme-settings.php not being loaded on cached forms
- Fixed problem with IE11 & Chrome(PointerEvents enabled) & some Firefox scroll to the top of the page after dragging the bottom item with jquery 1.5 <-> 1.11
2018-11-15 14:26:45 +00:00

87 lines
2.7 KiB
Makefile

# $NetBSD: Makefile,v 1.53 2018/11/15 14:26:45 prlw1 Exp $
DISTNAME= drupal-7.61
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES= www
MASTER_SITES= https://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}-json>=5.4.0:../../textproc/php-json
NO_BUILD= YES
DRUPAL= share/drupal
PAX_DIRS= includes misc modules profiles scripts themes
DOCS= CHANGELOG.txt COPYRIGHT.txt INSTALL.mysql.txt \
INSTALL.pgsql.txt INSTALL.sqlite.txt INSTALL.txt LICENSE.txt \
MAINTAINERS.txt README.txt UPGRADE.txt
PKG_GROUPS_VARS+= WWW_GROUP
PKG_USERS_VARS+= WWW_USER
BUILD_DEFS+= WWW_USER WWW_GROUP
USE_TOOLS+= 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= .*php[^ ]*
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= scripts/drupal.sh scripts/password-hash.sh
REPLACE_FILES.php+= scripts/dump-database-d6.sh
REPLACE_FILES.php+= scripts/dump-database-d7.sh
REPLACE_FILES.php+= scripts/generate-d6-content.sh
REPLACE_FILES.php+= scripts/generate-d6-content.sh
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_FILES.conf= drupal.conf
SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g"
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
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"
post-extract:
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
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
${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${PREFIX}/${DRUPAL}
.for i in ${PAX_DIRS}
cd ${WRKSRC}/${i} && ${PAX} -rw . ${DESTDIR}${PREFIX}/${DRUPAL}/${i}
.endfor
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/doc/drupal
.endfor
post-install:
${FIND} ${DESTDIR}${PREFIX}/${DRUPAL} \
\( -name '*.jpg' -o -name '*.png' \) | ${XARGS} ${CHMOD} 0644
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"