2015-08-20 17:33:33 +02:00
|
|
|
# $NetBSD: Makefile,v 1.54 2015/08/20 15:33:33 taca Exp $
|
2008-04-06 12:15:27 +02:00
|
|
|
|
2015-08-20 17:33:33 +02:00
|
|
|
DISTNAME= drupal-6.37
|
2008-04-06 12:15:27 +02:00
|
|
|
CATEGORIES= www
|
2013-11-21 16:13:09 +01:00
|
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
2008-04-06 12:15:27 +02:00
|
|
|
|
This release fixes security vulnerabilities. Sites are urged to upgrade immediately after reading the security announcement:
* SA-CORE-2009-007 - Drupal core - Multiple vulnerabilities
In addition to this security vulnerability, the following bugs have been fixed since the 6.12 release:
* - Patch #463450 by wulff: fixed documentation glitch.
* #193577 by Rob Loach, Damien Tournoud, andypost: JavaScript string split() function does not behave like PHP explode(); causes problems with multiple node body break tags
* #454992 by sun, bengtan: _drupal_flush_css_js() should not have 'q' as a possible CSS query character, since that is the Drupal path name character too
* #452704 by andypost, catch: Names of compressed CSS and JS files should have a prefix, so that names starting in ad* will not happen. Those are easily blocked by firewalls, Firefox's Adblock, etc.
* #468732 by andypost: cache_clear_all() mentioned cache_flush_delay incorrectly; it should say we use cache_lifetime
* #460420 by wulff, andypost: drupal_set_title() in forum_overview() is not needed; menu already sets the title and is localized
* #398902 by Nick Urban, alexanderpas, kscheirer: password equality checking was not using strict type checking; we should assume these are strings and compared character to character
* #479216 by jhedstrom: fix grammar in forum module messages
* #445748 by Dave Reid, dww: Fix module support for disabled module update status checking and do not track usage in that case.
* #465190 by Heine: The Anonymous name is a plain text setting, so it should be escaped properly for output.
* #246096 by Sutharsan, Pedro Lozano, mr.baileys, andypost: Actions set to run on cron were not actually triggered.
* #226479 by gpk, BrianV, catch: We should always show the node access rebuild button. The check on when to show it was fragile, so the button might not have been there when actually needed.
* #482646 by Dave Reid: For proper HTTP query simpletesting, we should pass on the instance identifier (database prefix).
* #197266 by ufku, lilou, Dave Reid, c960657, drewish: Save a query by only calling file_space_used() when a limit is provided.
* #408876 by Pasqualle, JamesAn: The 'serialize' Schema API property was used but not documented.
* #145733 by kepten, brianV: The session.use_cookies PHP setting is required by Drupal, but it can be turned off, so try to ensure it is turned on at all times.
* #373225 by jpulles, Josh Waihi: When changing columns, PostgreSQL needs explicit type casting to ensure that values are kept properly.
* #236657 by hctom, swentel: In system_clear_cache_submit(), the function arguments were swapped (but it did not affect how it actually worked).
* #243253 by Benjamin Melançon, dww: Update status should not attempt to request update data until a limit is reached. Fixed Drupal instances when drupal.org is down and gets less load on Drupal.org if data is not found.
* #339466 by patryk, c960657, alexanderpas: Remove url() wrapping from remote links and link in a more user friendly OpenID provider list.
* #461938 by grendzy, JamesAn: Use filter_xss_admin() on site name and site slogan, just like footer message and mission
* #455172 by budda, RoboPhred, andypost: Fix drupal_mail() documentation, so that it encourages to set the body of the email as an array (like core does).
* #329797 by berenddeboer, redndahead, danielb: The tablesort code did not account for possibly nested tables; only match immediate descendats, so elements of nested tables are not matched.
* #352121 by valthebald, Damien Tournoud, mr.baileys: The safe string check on translations should only be applied to the default textgroup. Strings in other textgroups such as blocks and menu items are displayed via escaping and filtering, and might contain arbitrary HTML.
2009-07-16 20:11:53 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-04-06 12:15:27 +02:00
|
|
|
HOMEPAGE= http://drupal.org/
|
|
|
|
COMMENT= Open source content management system
|
2009-09-29 15:41:00 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2008-04-06 12:15:27 +02:00
|
|
|
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.5:../../graphics/php-gd
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
2009-12-19 10:29:22 +01:00
|
|
|
DRUPAL= share/drupal
|
2008-04-06 12:15:27 +02:00
|
|
|
PAX_DIRS= includes misc modules scripts themes
|
|
|
|
DOCS= CHANGELOG.txt COPYRIGHT.txt INSTALL.mysql.txt \
|
|
|
|
INSTALL.pgsql.txt INSTALL.txt LICENSE.txt \
|
|
|
|
MAINTAINERS.txt UPGRADE.txt
|
|
|
|
|
2008-10-24 20:52:31 +02:00
|
|
|
PKG_GROUPS_VARS+= WWW_GROUP
|
|
|
|
PKG_USERS_VARS+= WWW_USER
|
2008-04-06 12:15:27 +02:00
|
|
|
|
2008-10-24 20:52:31 +02:00
|
|
|
BUILD_DEFS+= WWW_USER WWW_GROUP
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= perl:run pax
|
2008-04-06 12:15:27 +02:00
|
|
|
REPLACE_PERL= scripts/code-style.pl
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+= ${DRUPAL}/sites/default \
|
2008-10-24 20:52:31 +02:00
|
|
|
${WWW_USER} ${WWW_GROUP} 0750
|
2008-04-06 12:15:27 +02:00
|
|
|
OWN_DIRS_PERMS+= ${DRUPAL}/files \
|
2008-10-24 20:52:31 +02:00
|
|
|
${WWW_USER} ${WWW_GROUP} 0750
|
2008-04-06 12:15:27 +02:00
|
|
|
|
2009-12-19 10:29:22 +01:00
|
|
|
CONF_FILES= share/examples/drupal/drupal.conf \
|
|
|
|
${PKG_SYSCONFDIR}/drupal.conf \
|
|
|
|
share/examples/drupal/default.profile \
|
|
|
|
${DRUPAL}/profiles/default/default.profile \
|
|
|
|
share/examples/drupal/default.settings.php \
|
|
|
|
${DRUPAL}/sites/default/default.settings.php
|
2008-04-06 12:15:27 +02:00
|
|
|
|
2009-12-19 10:29:22 +01:00
|
|
|
REPLACE_INTERPRETER+= php
|
|
|
|
REPLACE.php.old= .*php[^ ]*
|
|
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
|
|
REPLACE_FILES.php= scripts/drupal.sh
|
2008-04-06 12:15:27 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= conf
|
|
|
|
SUBST_STAGE.conf= pre-install
|
2009-12-19 10:29:22 +01:00
|
|
|
SUBST_FILES.conf= drupal.conf
|
2008-04-06 12:15:27 +02:00
|
|
|
SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g"
|
2012-03-14 04:33:51 +01:00
|
|
|
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
|
2008-04-06 12:15:27 +02:00
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
|
|
|
|
2009-12-19 10:29:22 +01:00
|
|
|
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites/all \
|
|
|
|
share/doc/drupal share/examples/drupal
|
2012-06-25 10:57:10 +02:00
|
|
|
.for i in ${PAX_DIRS}
|
|
|
|
INSTALLATION_DIRS+= ${DRUPAL}/${i}
|
|
|
|
.endfor
|
2008-04-06 12:15:27 +02:00
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
OWN_DIRS= share/drupal/sites/default
|
|
|
|
OWN_DIRS+= share/drupal/profiles
|
|
|
|
OWN_DIRS+= share/drupal/profiles/default
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
|
|
|
|
|
2012-12-20 13:47:35 +01:00
|
|
|
pre-install:
|
|
|
|
${FIND} ${WRKSRC} -type f -name "*.orig" -exec ${RM} -f {} \;
|
|
|
|
|
2008-04-06 12:15:27 +02:00
|
|
|
do-install:
|
2009-12-19 10:29:22 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${PREFIX}/${DRUPAL}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \
|
|
|
|
${DESTDIR}${PREFIX}/${DRUPAL}/sites/all
|
2008-04-06 12:15:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/drupal.conf \
|
2009-12-19 10:29:22 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/drupal
|
2009-02-16 21:55:54 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sites/default/default.settings.php \
|
2009-12-19 10:29:22 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/drupal
|
2008-04-06 12:15:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/profiles/default/default.profile \
|
2009-12-19 10:29:22 +01:00
|
|
|
${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
|
2008-04-06 12:15:27 +02:00
|
|
|
|
|
|
|
post-install:
|
2009-12-19 10:29:22 +01:00
|
|
|
${FIND} ${DESTDIR}${PREFIX}/${DRUPAL} \
|
|
|
|
\( -name '*.jpg' -o -name '*.png' \) | ${XARGS} ${CHMOD} 0644
|
2008-04-06 12:15:27 +02:00
|
|
|
|
2012-06-16 05:04:23 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
2008-04-06 12:15:27 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|