pkgsrc/www/drupal/Makefile
adrianp 7f82031693 Update to 5.6
This release fixes security vulnerabilities. Sites are urged to upgrade immediately. For more details, please see the security announcement:
SA-2008-005 - Drupal core - Cross site request forgery
SA-2008-006 - Drupal core - Cross site scripting (UTF8)
SA-2008-007 - Drupal core - Cross site scripting (register_globals)

In addition to this security vulnerability, the following bugs have been fixed since the 5.5 release:
173858 by Gábor Hojtsy: skip UTF-8 BOM when importing locale files
179164 by Heine: sort modules by name on the module admin page
199640 by webernet: (usability) add option to select no taxonomy term in multiselect forms, not to rely on browser trickery
199084 by chx: better conformance with ISO date formats in our xmlrpc code
173459 by Dave Cohen. Backport of #78487 by FredCK, forngren and bjaspan: document support in url() and l() and proper active class support for .
89218 by Gábor Hojtsy. Properly initialize a counter variable and fix poll editing.
64388 by Gábor Hojtsy. Add missing db_rewrite_sql(); not a security issue since it is a count() query.
200338 by m3avrck and quicksketch: fix transparent GIF resizing
194652 by Heine: specify explicit accept-charset for forms to avoid browser guessing
182410 by greggles: HTTP Basic authentication username and password was parsed in drupal_http_request() but then not used in the request
- Patch 201894 by David Rothstein: fixed typo in user output.
180126 by mmoreno, drewish and scor: add realpath() call to file_save_data(), so Windows will create temporary files properly
115689 by chx: new content types should not overwrite old ones. Backport by Pancho.
203727 by Arancaytar. More effectively use hook API.
204855 by webernet. Add missing * in documentation.
168315 by schuyler1d: previous active database name was not consistently returned in db_set_active()
- Patch 199955 by saxofaan: file_upload_max_size() returns results in bytes, not in mega bytes.
194579 patch by pwolanin: clear filter cache when allowed HTML tags configuration changes in an input format
#166433 by Ralf Stamm. Use correct menu item type for revsion confirm pages.
58806 by fwalch and wicksteedc. Do not override MENU_VISIBLE_IF_HAS_CHILDREN on editing.
Partial backport of 112715 to fix 124641.

Changes from 5.4 -> 5.5
Fixed missing missing brackets in a query in the user module.
Fixed taxonomy feed bug introduced by SA-2007-031
2008-01-11 12:37:11 +00:00

92 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2008/01/11 12:37:11 adrianp Exp $
DISTNAME= drupal-5.6
CATEGORIES= www
MASTER_SITES= http://drupal.org/files/projects/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://drupal.org/
COMMENT= Open source content management system
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.3:../../www/ap-php
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.3:../../graphics/php-gd
NO_BUILD= YES
DRUPAL= ${PREFIX}/share/drupal
PAX_DIRS= includes misc modules scripts themes
PKG_GROUPS_VARS+= APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
BUILD_DEFS+= APACHE_USER APACHE_GROUP
USE_TOOLS+= perl:run
REPLACE_PERL= scripts/code-style.pl
OWN_DIRS+= ${DRUPAL}/sites/default
OWN_DIRS_PERMS+= ${DRUPAL}/files ${APACHE_USER} ${APACHE_GROUP} 0750
CONF_FILES= ${PREFIX}/share/examples/drupal/drupal.conf \
${PKG_SYSCONFDIR}/drupal.conf
CONF_FILES+= ${PREFIX}/share/examples/drupal/default.profile \
${DRUPAL}/profiles/default/default.profile
CONF_FILES_PERMS+= ${PREFIX}/share/examples/drupal/settings.php \
${DRUPAL}/sites/default/settings.php \
${APACHE_USER} ${APACHE_GROUP} 0640
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-install
SUBST_FILES.conf= drupal.conf
SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g"
SUBST_MESSAGE.conf= Fixing configuration files.
.include "../../mk/apachever.mk"
.include "../../lang/php/phpversion.mk"
.if ${PKG_PHP_VERSION} == "4"
DEPENDS+= php>=4.4.7:../../www/php4
.endif
.if ${PKG_PHP_VERSION} == "5"
DEPENDS+= php>=5.2.4:../../lang/php5
.endif
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
do-install:
${INSTALL_DATA_DIR} ${DRUPAL}
${INSTALL_DATA_DIR} ${DRUPAL}/files
${INSTALL_DATA_DIR} ${DRUPAL}/profiles
${INSTALL_DATA_DIR} ${DRUPAL}/profiles/default
${INSTALL_DATA_DIR} ${DRUPAL}/sites
${INSTALL_DATA_DIR} ${DRUPAL}/sites/all
${INSTALL_DATA_DIR} ${DRUPAL}/sites/default
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drupal
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/drupal
${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/drupal
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DRUPAL}
${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \
${DRUPAL}/sites/all
${INSTALL_DATA} ${WRKSRC}/drupal.conf \
${PREFIX}/share/examples/drupal/drupal.conf
${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \
${PREFIX}/share/examples/drupal/settings.php
${INSTALL_DATA} ${WRKSRC}/profiles/default/default.profile \
${PREFIX}/share/examples/drupal/default.profile
${INSTALL_DATA} ${WRKSRC}/*.php ${DRUPAL}
. for i in ${PAX_DIRS}
cd ${WRKSRC}/${i} && ${PAX} -rw . ${DRUPAL}/${i}
. endfor
${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DRUPAL}/files
${CHMOD} 0770 ${DRUPAL}/files
post-install:
${FIND} ${DRUPAL} -name \*.jpg | ${XARGS} ${CHMOD} 0644
${FIND} ${DRUPAL} -name \*.png | ${XARGS} ${CHMOD} 0644
.include "../../mk/bsd.pkg.mk"