1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/drupal6/Makefile
Kurt Jaeger ca84208c79 www/drupal6: upgrade, which fixes security bug
PR:           ports/188945
Submitted by: Simon Wright
Approved by:  maintainer (timeout), culot (mentor)
2014-05-12 16:42:54 +00:00

74 lines
2.5 KiB
Makefile

# Created by: Nick Hilliard <nick@foobar.org>
# $FreeBSD$
PORTNAME= drupal6
PORTVERSION= 6.31
CATEGORIES= www
MASTER_SITES= http://ftp.drupal.org/files/projects/
DISTNAME= drupal-${PORTVERSION}
DIST_SUBDIR= drupal
MAINTAINER= miwi@FreeBSD.org
COMMENT= A database driven web content management system (CMS)
USE_DRUPAL= yes
DRUPAL6_PORT= yes
USE_PHP= gd pcre session xml mbstring
WANT_PHP_WEB= yes
OPTIONS_DEFINE= MYSQLI MYSQL PGSQL DOCS
OPTIONS_DEFAULT=MYSQLI
MYSQLI_DESC= MySQL Improved Extension database
NO_BUILD= yes
DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt \
UPGRADE.txt INSTALL.mysql.txt INSTALL.pgsql.txt \
COPYRIGHT.txt
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MMYSQLI}
USE_PHP+= mysqli
.endif
.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
USE_PHP+= pgsql
.endif
do-install:
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/.htaccess ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/cron.php ${STAGEDIR}${DRUPAL_DIR}
${CP} -R ${WRKSRC}/includes ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/index.php ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/install.php ${STAGEDIR}${DRUPAL_DIR}
${CP} -R ${WRKSRC}/misc ${STAGEDIR}${DRUPAL_DIR}
${CP} -R ${WRKSRC}/modules ${STAGEDIR}${DRUPAL_DIR}
${CP} -R ${WRKSRC}/profiles ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/robots.txt ${STAGEDIR}${DRUPAL_DIR}
${CP} -R ${WRKSRC}/scripts ${STAGEDIR}${DRUPAL_DIR}
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all
${CP} ${WRKSRC}/sites/all/README.txt ${STAGEDIR}${DRUPAL_DIR}/sites/all/
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default
${CP} ${WRKSRC}/sites/default/default.settings.php ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php-dist
@if [ ! -f ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php ]; then \
${CP} -p ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php-dist ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php ; \
fi
${CP} -R ${WRKSRC}/themes ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/update.php ${STAGEDIR}${DRUPAL_DIR}
${CP} ${WRKSRC}/xmlrpc.php ${STAGEDIR}${DRUPAL_DIR}
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/modules ${STAGEDIR}${DRUPAL_DIR}/sites/all/themes
${TOUCH} ${STAGEDIR}${DRUPAL_DIR}/sites/all/modules/.keepme ${STAGEDIR}${DRUPAL_DIR}/sites/all/themes/.keepme
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${DRUPAL_DIR}
.include <bsd.port.mk>