pkgsrc/www/drupal7/Makefile

88 lines
2.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.53 2018/11/15 14:26:45 prlw1 Exp $
DISTNAME= drupal-7.61
2015-12-13 15:41:32 +01:00
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
2016-10-22 09:44:03 +02:00
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
Update drupal7 to 7.22. Drupal 7.22, 2013-04-03 ----------------------- - Allowed the drupal_http_request() function to be overridden so that additional HTTP request capabilities can be added by contributed modules. - Changed the Simpletest module to allow PSR-0 test classes to be used in Drupal 7. - Removed an unnecessary "Content-Disposition" header from private file downloads; it prevented many private files from being viewed inline in a web browser. - Changed various field API functions to allow them to optionally act on a single field within an entity (API addition: http://drupal.org/node/1825844). - Fixed a bug which prevented Drupal's file transfer functionality from working on some PHP 5.4 systems. - Fixed incorrect log message when theme() is called for a theme hook that does not exist (minor string change). - Fixed Drupal's token-replacement system to allow spaces in the token value. - Changed the default behavior after a user creates a node they do not have access to view. The user will now be redirected to the front page rather than an access denied page. - Fixed a bug which prevented empty HTTP headers (such as "0") from being set. (Minor behavior change: Callers of drupal_add_http_header() must now set FALSE explicitly to prevent a header from being sent at all; this was already indicated in the function's documentation.) - Fixed OpenID errors when more than one module implements hook_openid(). The behavior is now changed so that if more than one module tries to set the same parameter, the last module's change takes effect. - Fixed a serious documentation bug: The $name variable in the taxonomy-term.tpl.php theme template was incorrectly documented as being sanitized when in fact it is not. - Fixed a bug which prevented Drupal 6 to Drupal 7 upgrades on sites which had duplicate permission names in the User module's database tables. - Added an empty "datatype" attribute to taxonomy term and username links to make the RDFa markup upward compatible with RDFa 1.1 (minor markup addition). - Fixed a bug which caused the denial-of-service protection added in Drupal 7.20 to break certain valid image URLs that had an extra slash in them. - Fixed a bug with update queries in the SQLite database driver that prevented Drupal from being installed with SQLite on PHP 5.4. - Fixed enforced dependencies errors updating to recent versions of Drupal 7 on certain non-MySQL databases. - Refactored the Field module's caching behavior to obtain large improvements in memory usage for sites with many fields and instances (API addition: http://drupal.org/node/1915646). - Fixed entity argument not being passed to implementations of hook_file_download_access_alter(). The fix adds an additional context parameter that can be passed when calling drupal_alter() for any hook (API change: http://drupal.org/node/1882722). - Fixed broken support for translatable comment fields (API change: http://drupal.org/node/1874724). - Added an assertThemeOutput() method to Simpletest to allow tests to check that themed output matches an expected HTML string (API addition). - Added a link to "Install another module" after a module has been successfully downloaded via the Update Manager (UI change). - Added an optional "exclusive" flag to installation profile .info files which allows Drupal distributions to force a profile to be selected during installation (API addition). - Fixed a bug which caused the database API to not properly close database connections. - Added a link to the URL for running cron from outside the site to the Cron settings page (UI change). - Fixed a bug which prevented image styles from being reverted on PHP 5.4. - Made the default .htaccess rules protocol sensitive to improve security for sites which use HTTPS and redirect between "www" and non-"www" versions of the page. - Numerous small bug fixes. - Numerous API documentation improvements. - Additional automated test coverage.
2013-04-06 14:07:12 +02:00
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
Update drupal7 to 7.17. Drupal 7.17, 2012-11-07 ----------------------- - Changed the default value of the '404_fast_html' variable to have a DOCTYPE declaration. - Made it possible to use associative arrays for the 'items' variable in theme_item_list(). - Fixed a bug which prevented required form elements without a title from being given an "error" class when the form fails validation. - Prevented duplicate HTML IDs from appearing when two forms are displayed on the same page and one of them is submitted with invalid data (minor markup change). - Fixed a bug which prevented Drupal 6 to Drupal 7 upgrades on sites which had stale data in the Upload module's database tables. - Fixed a bug in the States API which prevented certain types of form elements from being disabled when requested. - Allowed aggregator feed items with author names longer than 255 characters to have a truncated version saved to the database (rather than causing a fatal error). - Allowed aggregator feed items to have URLs longer than 255 characters (schema change which results in several columns in the Aggregator module's database tables changing from VARCHAR to TEXT fields). - Added hook_taxonomy_term_view() and standardized the process for rendering taxonomy terms to invoke hook_entity_view() and otherwise make it consistent with other entities (API change: http://drupal.org/node/1808870). - Added hook_entity_view_mode_alter() to allow modules to change entity view modes on display (API addition: http://drupal.org/node/1833086). - Fixed a bug which made database queries running a "LIKE" query on blob fields fail on PostgreSQL databases. This caused errors during the Drupal 6 to Drupal 7 upgrade. - Changed the hook_menu() entry for Drupal's rss.xml page to prevent extra path components from being accidentally passed to the page callback function (data structure change). - Removed a non-standard "name" attribute from Drupal's default Content-Type header for file downloads. - Fixed the theme settings form to properly clean up submitted values in $form_state['values'] when the form is submitted (data structure change). - Fixed an inconsistency by removing the colon from the end of the label on multi-valued form fields (minor string change). - Added support for 'weight' in hook_field_widget_info() to allow modules to control the order in which widgets are displayed in the Field UI. - Updated various tables in the OpenID and Book modules to use the default "empty table" text pattern (string change). - Added proxy server support to drupal_http_request(). - Added "lang" attributes to language links, to better support screen readers. - Fixed double occurrence of a "ul" HTML tag on secondary local tasks in the Seven theme (markup change). - Fixed bugs which caused taxonomy vocabulary and shortcut set titles to be double-escaped. The fix replaces the taxonomy vocabulary overview page and "Edit shortcuts" menu items' title callback entries in hook_menu() with new functions that do not escape HTML characters (data structure change). - Modified the Update manager module to allow drupal.org to collect usage statistics for individual modules and themes, rather than only for entire projects. - Modified the node listing database query on Drupal's default front page to add table aliases for better query altering (this is a data structure change affecting code which implements hook_query_alter() on this query). - Improved the translatability of the "Field type(s) in use" message on the modules page (admin-facing string change). - Fixed a regression which caused a "call to undefined function drupal_find_base_themes()" fatal error under rare circumstances. - Numerous API documentation improvements. - Additional automated test coverage.
2012-11-08 14:25:53 +01:00
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.
Update drupal7 to 7.17. Drupal 7.17, 2012-11-07 ----------------------- - Changed the default value of the '404_fast_html' variable to have a DOCTYPE declaration. - Made it possible to use associative arrays for the 'items' variable in theme_item_list(). - Fixed a bug which prevented required form elements without a title from being given an "error" class when the form fails validation. - Prevented duplicate HTML IDs from appearing when two forms are displayed on the same page and one of them is submitted with invalid data (minor markup change). - Fixed a bug which prevented Drupal 6 to Drupal 7 upgrades on sites which had stale data in the Upload module's database tables. - Fixed a bug in the States API which prevented certain types of form elements from being disabled when requested. - Allowed aggregator feed items with author names longer than 255 characters to have a truncated version saved to the database (rather than causing a fatal error). - Allowed aggregator feed items to have URLs longer than 255 characters (schema change which results in several columns in the Aggregator module's database tables changing from VARCHAR to TEXT fields). - Added hook_taxonomy_term_view() and standardized the process for rendering taxonomy terms to invoke hook_entity_view() and otherwise make it consistent with other entities (API change: http://drupal.org/node/1808870). - Added hook_entity_view_mode_alter() to allow modules to change entity view modes on display (API addition: http://drupal.org/node/1833086). - Fixed a bug which made database queries running a "LIKE" query on blob fields fail on PostgreSQL databases. This caused errors during the Drupal 6 to Drupal 7 upgrade. - Changed the hook_menu() entry for Drupal's rss.xml page to prevent extra path components from being accidentally passed to the page callback function (data structure change). - Removed a non-standard "name" attribute from Drupal's default Content-Type header for file downloads. - Fixed the theme settings form to properly clean up submitted values in $form_state['values'] when the form is submitted (data structure change). - Fixed an inconsistency by removing the colon from the end of the label on multi-valued form fields (minor string change). - Added support for 'weight' in hook_field_widget_info() to allow modules to control the order in which widgets are displayed in the Field UI. - Updated various tables in the OpenID and Book modules to use the default "empty table" text pattern (string change). - Added proxy server support to drupal_http_request(). - Added "lang" attributes to language links, to better support screen readers. - Fixed double occurrence of a "ul" HTML tag on secondary local tasks in the Seven theme (markup change). - Fixed bugs which caused taxonomy vocabulary and shortcut set titles to be double-escaped. The fix replaces the taxonomy vocabulary overview page and "Edit shortcuts" menu items' title callback entries in hook_menu() with new functions that do not escape HTML characters (data structure change). - Modified the Update manager module to allow drupal.org to collect usage statistics for individual modules and themes, rather than only for entire projects. - Modified the node listing database query on Drupal's default front page to add table aliases for better query altering (this is a data structure change affecting code which implements hook_query_alter() on this query). - Improved the translatability of the "Field type(s) in use" message on the modules page (admin-facing string change). - Fixed a regression which caused a "call to undefined function drupal_find_base_themes()" fatal error under rare circumstances. - Numerous API documentation improvements. - Additional automated test coverage.
2012-11-08 14:25:53 +01:00
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites \
share/doc/drupal share/examples/drupal
2012-06-25 10:57:10 +02:00
.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
2012-06-16 05:04:23 +02:00
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"