2012-10-30 22:01:16 +01:00
|
|
|
# Created by: Nick Hilliard <nick@foobar.org>
|
2003-12-29 07:13:32 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-08-12 09:41:32 +02:00
|
|
|
PORTNAME= drupal7
|
2014-01-16 16:00:10 +01:00
|
|
|
PORTVERSION= 7.26
|
2003-12-29 07:13:32 +01:00
|
|
|
CATEGORIES= www
|
2007-10-27 22:15:24 +02:00
|
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
2007-03-25 11:42:17 +02:00
|
|
|
DISTNAME= drupal-${PORTVERSION}
|
2007-01-30 21:21:05 +01:00
|
|
|
DIST_SUBDIR= drupal
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2013-03-02 16:06:31 +01:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2012-10-30 22:01:16 +01:00
|
|
|
COMMENT= Database driven web content management system (CMS)
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2011-11-15 09:04:57 +01:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2011-08-31 17:53:47 +02:00
|
|
|
USE_DRUPAL= yes
|
2011-08-12 09:41:32 +02:00
|
|
|
DRUPAL_PORT= yes
|
|
|
|
DRUPAL_VERSION= 7
|
2006-02-22 01:40:20 +01:00
|
|
|
|
2011-08-12 09:41:32 +02:00
|
|
|
USE_PHP= dom filter gd hash json mbstring pcre pdo session simplexml xml
|
2006-02-20 07:09:40 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2005-11-23 21:58:42 +01:00
|
|
|
|
2013-05-20 07:31:13 +02:00
|
|
|
OPTIONS_DEFINE= MYSQL SQLITE3 PGSQL
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
2005-11-03 14:49:19 +01:00
|
|
|
|
2003-12-29 07:13:32 +01:00
|
|
|
NO_BUILD= yes
|
2011-08-12 09:41:32 +02:00
|
|
|
DOCS= CHANGELOG.txt INSTALL.mysql.txt INSTALL.sqlite.txt \
|
|
|
|
LICENSE.txt README.txt COPYRIGHT.txt INSTALL.pgsql.txt \
|
|
|
|
INSTALL.txt MAINTAINERS.txt UPGRADE.txt
|
|
|
|
|
2006-01-10 05:03:43 +01:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2013-05-20 07:31:13 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-02-22 01:40:20 +01:00
|
|
|
|
2013-05-20 07:31:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE3}
|
2011-08-12 09:41:32 +02:00
|
|
|
USE_PHP+= pdo_sqlite
|
2006-02-22 01:40:20 +01:00
|
|
|
.endif
|
2013-05-20 07:31:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2011-08-12 09:41:32 +02:00
|
|
|
USE_MYSQL= yes
|
|
|
|
USE_PHP+= pdo_mysql
|
2008-05-27 09:40:15 +02:00
|
|
|
.endif
|
2013-05-20 07:31:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2011-08-12 09:41:32 +02:00
|
|
|
USE_PGSQL= yes
|
|
|
|
USE_PHP+= pdo_pgsql
|
2006-02-22 01:40:20 +01:00
|
|
|
.endif
|
|
|
|
|
2003-12-29 07:13:32 +01:00
|
|
|
do-install:
|
2014-02-19 02:20:57 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/.htaccess ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/cron.php ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/authorize.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
|
|
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/libraries
|
|
|
|
${CP} ${WRKSRC}/sites/example.sites.php ${STAGEDIR}${DRUPAL_DIR}/sites/
|
|
|
|
${CP} -R ${WRKSRC}/sites/all ${STAGEDIR}${DRUPAL_DIR}/sites/
|
|
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default
|
|
|
|
${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default/files
|
|
|
|
${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 ; \
|
2005-12-29 18:51:04 +01:00
|
|
|
fi
|
2014-02-19 02:20:57 +01:00
|
|
|
${CP} -R ${WRKSRC}/themes ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/update.php ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/web.config ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/xmlrpc.php ${STAGEDIR}${DRUPAL_DIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${CP} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${DRUPAL_DIR}
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2013-05-20 07:31:13 +02:00
|
|
|
.include <bsd.port.mk>
|