pkgsrc/www/drupal/Makefile
adrianp 61174508b2 The following bug has been fixed since the 5.13 release:
* Rolling back #280934. PHP 4 incompatibility.

This release fixes security vulnerabilities. Sites are urged to upgrade immediately after reading the security announcement:

* SA-CORE-2009-001 Drupal core - Multiple vulnerabilities

In addition to this security vulnerability, the following bugs have been fixed since the 5.14 release:

* #348269 by Darren Oh. Add missing * in the expand_password_confirm() comment.
* #202688. Backport from 6.x.
* #103528 by gpk, hass & salvis. Provide a useful message when the color picker is disabled due to the download method.
* #350708 by dww. Backport t() documentation improvements from D6.
* #157353 by Freso and tangent. Remove a needless dash from RSS feed title.
* #323386 by mariuss: The selection type in profile module expects items each on their own line and should not break items on commas
* #252921 by k4ml. Use correct placeholder.
* #61108 by Uwe Hermann: update LICENSE.txt with latest version of GPL2 text
* - Patch #335385 by Dave Reid: fixed maxlength of path alias fields to be consistent with the database.
* #346285 by grendzy, Damien Tournoud, thekevinday et al: fixed problem when HTTP_HOST is not transmitted
2009-01-15 20:05:44 +00:00

94 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2009/01/15 20:05:44 adrianp Exp $
DISTNAME= drupal-5.15
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-6.*{,nb*}
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 pax
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"