pkgsrc/www/drupal/Makefile
adrianp f48c70d74d Update to the 4.7.x branch of drupal
For a full list of changes see: http://drupal.org/drupal-4.7.0
In short:
- Updated Documentation for All Modules
- Auto-complete Fields(AJAX)
- Added Mass Comment Operations
- Easier to Make Menu Items
- RSS Feed Settings
- Better Search Index
- New Forms API
2006-05-28 14:46:47 +00:00

62 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2006/05/28 14:46:47 adrianp Exp $
DISTNAME= drupal-4.7.1
CATEGORIES= www
MASTER_SITES= http://drupal.org/files/projects/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://drupal.org/
COMMENT= Open source content management system
.include "../../lang/php/phpversion.mk"
DEPENDS+= ap-php>=4.3.3:../../www/ap-php
DEPENDS+= php-gd>=4.3.3:../../graphics/php-gd
NO_BUILD= YES
DRUPAL= ${PREFIX}/share/drupal
PAX_DIRS= database includes misc modules scripts themes
CONF_FILES= ${PREFIX}/share/examples/drupal/drupal.conf \
${PKG_SYSCONFDIR}/drupal.conf
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 "options.mk"
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/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}/drupal.conf \
${PREFIX}/share/examples/drupal
${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \
${PREFIX}/share/examples/drupal
${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \
${DRUPAL}/sites/default/settings.php.example
${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
.include "../../mk/bsd.pkg.mk"