2008-05-26 04:13:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2008/05/26 02:13:25 joerg Exp $
|
2008-04-06 12:15:27 +02:00
|
|
|
|
Update to 6.2
This release fixes security vulnerabilities and also changes APIs. Sites are urged to upgrade immediately after reading the security announcement:
* SA-2008-026 - Drupal core - Drupal core - Access bypass
In addition to this security vulnerability, the following bugs have been fixed since the 6.0 release:
* #228120 by jvandyk: typo in documentation in comment.tpl.php
* #226480 by gpk: fix wording on when node access rebuild button is displayed in node_configure()
* #229817 by mcarrera: l() attributes were not properly specified in theme.inc's theme_username()
* #234403 by alienbrain: PHP.net documents we should use CRLF in mail headers, so do that
* #226555 by jvandyk, Rok Zlender: fix notice level error in xmlrpc.inc
* #204415 by chx: actually use 'administer content types' permission for node type editing instead of 'administer nodes'
* #234699 by hass: theme_link() did not mark frontpage links active properly
* #237717 by hass: missing t() in system_clear_cache_submit()
* #232037 by pwolanin: (performance) block regions should only be populated when called for, not in all cases (fixes performance expectation on 403/404 pages)
* #226728 by chx: (performance) temporary cache table entries were not flushed, causing cache_menu and cache_form to grow big
* #231587 by pwolanin, killes: (performance) use two level cache in menus, instead of storing very large amounts of data multiple times
* #239196 by jvandyk and myself: missing status check on nodes in search indexing counter
* rolling back #234403 by Bevan and damz: we should keep using LF in mail headers, without CR, CRLF causes problems
* #238564 by scor: two missing t() calls in update.module
* #241629 by solotandem: dblog module left one more row in, when cleaning up in cron
* #244597 by kbahey: remove cruft from user_login(), that added extra message to the form was never used or displayed
2008-04-10 00:02:11 +02:00
|
|
|
DISTNAME= drupal-6.2
|
2008-04-06 12:15:27 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://drupal.org/files/projects/
|
|
|
|
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
|
|
HOMEPAGE= http://drupal.org/
|
|
|
|
COMMENT= Open source content management system
|
|
|
|
|
|
|
|
CONFLICTS+= drupal-5.*{,nb*}
|
|
|
|
|
|
|
|
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.5:../../www/ap-php
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.5:../../graphics/php-gd
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
DRUPAL= ${PREFIX}/share/drupal
|
|
|
|
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
|
|
|
|
|
|
|
|
PKG_GROUPS_VARS+= APACHE_GROUP
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
|
|
|
|
|
|
BUILD_DEFS+= APACHE_USER APACHE_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 \
|
|
|
|
${APACHE_USER} ${APACHE_GROUP} 0750
|
|
|
|
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/default.settings.php \
|
|
|
|
${DRUPAL}/sites/default/default.settings.php \
|
|
|
|
${APACHE_USER} ${APACHE_GROUP} 0640
|
|
|
|
|
|
|
|
SUBST_CLASSES+= conf
|
|
|
|
SUBST_STAGE.conf= pre-install
|
|
|
|
SUBST_FILES.conf= drupal.conf scripts/drupal.sh
|
|
|
|
SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|/usr/bin/php|${PREFIX}/bin/php|g"
|
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
|
|
|
|
|
|
|
.include "../../mk/apachever.mk"
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
|
|
|
|
.if ${PKG_PHP_VERSION} == "4"
|
|
|
|
DEPENDS+= php>=4.3.5:../../www/php4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PKG_PHP_VERSION} == "5"
|
|
|
|
DEPENDS+= php>=5.2.0:../../lang/php5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.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}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DRUPAL}
|
|
|
|
${INSTALL_DATA_DIR} ${DRUPAL}/files
|
|
|
|
${INSTALL_DATA_DIR} ${DRUPAL}/sites
|
|
|
|
${INSTALL_DATA_DIR} ${DRUPAL}/sites/all
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drupal
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/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/default.settings.php \
|
|
|
|
${PREFIX}/share/examples/drupal/default.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}
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/${i} && pax -rw . ${DRUPAL}/${i}
|
2008-04-06 12:15:27 +02:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
. for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/drupal
|
|
|
|
. 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"
|