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
|
2013-04-30 05:13:32 +02:00
|
|
|
PORTVERSION= 7.22
|
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
|
|
|
|
2011-08-12 09:41:32 +02:00
|
|
|
OPTIONS+= MYSQL "MySQL database support" on \
|
|
|
|
SQLITE3 "SQLite 3.x database support" off \
|
2006-02-22 01:40:20 +01:00
|
|
|
PGSQL "PostgreSQL database support" off
|
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
|
|
|
|
2006-02-22 01:40:20 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-08-12 09:41:32 +02:00
|
|
|
.if defined(WITH_SQLITE3)
|
|
|
|
USE_PHP+= pdo_sqlite
|
2006-02-22 01:40:20 +01:00
|
|
|
.endif
|
2011-08-12 09:41:32 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
2011-10-17 06:35:02 +02:00
|
|
|
IGNORE_WITH_MYSQL= 41
|
2011-08-12 09:41:32 +02:00
|
|
|
USE_PHP+= pdo_mysql
|
2008-05-27 09:40:15 +02:00
|
|
|
.endif
|
2006-02-22 01:40:20 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
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:
|
2006-02-22 01:40:20 +01:00
|
|
|
${MKDIR} ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/cron.php ${DRUPAL_DIR}
|
2011-08-12 09:41:32 +02:00
|
|
|
${CP} ${WRKSRC}/authorize.php ${DRUPAL_DIR}
|
2006-02-22 01:40:20 +01:00
|
|
|
${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
|
2007-03-25 11:42:17 +02:00
|
|
|
${CP} ${WRKSRC}/install.php ${DRUPAL_DIR}
|
2006-02-22 01:40:20 +01:00
|
|
|
${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
|
2007-03-25 11:42:17 +02:00
|
|
|
${CP} -R ${WRKSRC}/profiles ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/robots.txt ${DRUPAL_DIR}
|
2006-02-22 01:40:20 +01:00
|
|
|
${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
|
2007-03-25 11:42:17 +02:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all
|
2011-08-12 09:41:32 +02:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all/libraries
|
|
|
|
${CP} ${WRKSRC}/sites/example.sites.php ${DRUPAL_DIR}/sites/
|
|
|
|
${CP} -R ${WRKSRC}/sites/all ${DRUPAL_DIR}/sites/
|
2006-02-22 01:40:20 +01:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default
|
2011-08-12 09:41:32 +02:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default/files
|
2008-05-27 09:40:15 +02:00
|
|
|
${CP} ${WRKSRC}/sites/default/default.settings.php ${DRUPAL_DIR}/sites/default/default.settings.php-dist
|
|
|
|
@if [ ! -f ${DRUPAL_DIR}/sites/default/default.settings.php ]; then \
|
|
|
|
${CP} -p ${DRUPAL_DIR}/sites/default/default.settings.php-dist ${DRUPAL_DIR}/sites/default/default.settings.php ; \
|
2005-12-29 18:51:04 +01:00
|
|
|
fi
|
2006-02-22 01:40:20 +01:00
|
|
|
${CP} -R ${WRKSRC}/themes ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/update.php ${DRUPAL_DIR}
|
2011-08-12 09:41:32 +02:00
|
|
|
${CP} ${WRKSRC}/web.config ${DRUPAL_DIR}
|
2006-02-22 01:40:20 +01:00
|
|
|
${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
|
2005-07-16 13:01:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-02-22 01:40:20 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
2005-07-16 13:01:39 +02:00
|
|
|
.endif
|
2006-02-22 01:40:20 +01:00
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DRUPAL_DIR}
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2006-01-10 05:03:43 +01:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2004-05-10 11:02:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|