2011-08-12 07:41:32 +00:00
|
|
|
# Ports collection makefile for: drupal7
|
2007-03-25 09:42:17 +00:00
|
|
|
# Date Created: 12 Feb 2007
|
|
|
|
# Whom: Nick Hilliard <nick@foobar.org>
|
2003-12-29 06:13:32 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2011-08-12 07:41:32 +00:00
|
|
|
PORTNAME= drupal7
|
2011-11-15 08:04:57 +00:00
|
|
|
PORTVERSION= 7.9
|
2003-12-29 06:13:32 +00:00
|
|
|
CATEGORIES= www
|
2007-10-27 20:15:24 +00:00
|
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
2007-03-25 09:42:17 +00:00
|
|
|
DISTNAME= drupal-${PORTVERSION}
|
2007-01-30 20:21:05 +00:00
|
|
|
DIST_SUBDIR= drupal
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2007-01-09 03:19:03 +00:00
|
|
|
MAINTAINER= nick@foobar.org
|
2007-03-25 09:42:17 +00:00
|
|
|
COMMENT= A database driven web content management system (CMS)
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2011-11-15 08:04:57 +00:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2011-08-31 15:53:47 +00:00
|
|
|
USE_DRUPAL= yes
|
2011-08-12 07:41:32 +00:00
|
|
|
DRUPAL_PORT= yes
|
|
|
|
DRUPAL_VERSION= 7
|
2006-02-22 00:40:20 +00:00
|
|
|
|
2011-08-12 07:41:32 +00:00
|
|
|
USE_PHP= dom filter gd hash json mbstring pcre pdo session simplexml xml
|
2008-05-27 07:40:15 +00:00
|
|
|
IGNORE_WITH_PHP=4
|
2006-02-20 06:09:40 +00:00
|
|
|
WANT_PHP_WEB= yes
|
2005-11-23 20:58:42 +00:00
|
|
|
|
2011-08-12 07:41:32 +00:00
|
|
|
OPTIONS+= MYSQL "MySQL database support" on \
|
|
|
|
SQLITE3 "SQLite 3.x database support" off \
|
2006-02-22 00:40:20 +00:00
|
|
|
PGSQL "PostgreSQL database support" off
|
2005-11-03 13:49:19 +00:00
|
|
|
|
2003-12-29 06:13:32 +00:00
|
|
|
NO_BUILD= yes
|
2011-08-12 07:41:32 +00: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 04:03:43 +00:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2006-02-22 00:40:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-08-12 07:41:32 +00:00
|
|
|
.if defined(WITH_SQLITE3)
|
|
|
|
USE_PHP+= pdo_sqlite
|
2006-02-22 00:40:20 +00:00
|
|
|
.endif
|
2011-08-12 07:41:32 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
2011-10-17 04:35:02 +00:00
|
|
|
IGNORE_WITH_MYSQL= 41
|
2011-08-12 07:41:32 +00:00
|
|
|
USE_PHP+= pdo_mysql
|
2008-05-27 07:40:15 +00:00
|
|
|
.endif
|
2006-02-22 00:40:20 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2011-08-12 07:41:32 +00:00
|
|
|
USE_PGSQL= yes
|
|
|
|
IGNORE_WITH_PGSQL= 73 74 80 81 82
|
|
|
|
USE_PHP+= pdo_pgsql
|
2006-02-22 00:40:20 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-29 06:13:32 +00:00
|
|
|
do-install:
|
2006-02-22 00:40:20 +00:00
|
|
|
${MKDIR} ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/cron.php ${DRUPAL_DIR}
|
2011-08-12 07:41:32 +00:00
|
|
|
${CP} ${WRKSRC}/authorize.php ${DRUPAL_DIR}
|
2006-02-22 00:40:20 +00:00
|
|
|
${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
|
2007-03-25 09:42:17 +00:00
|
|
|
${CP} ${WRKSRC}/install.php ${DRUPAL_DIR}
|
2006-02-22 00:40:20 +00:00
|
|
|
${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
|
2007-03-25 09:42:17 +00:00
|
|
|
${CP} -R ${WRKSRC}/profiles ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/robots.txt ${DRUPAL_DIR}
|
2006-02-22 00:40:20 +00:00
|
|
|
${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
|
2007-03-25 09:42:17 +00:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all
|
2011-08-12 07:41:32 +00: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 00:40:20 +00:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default
|
2011-08-12 07:41:32 +00:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default/files
|
2008-05-27 07:40:15 +00: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 17:51:04 +00:00
|
|
|
fi
|
2006-02-22 00:40:20 +00:00
|
|
|
${CP} -R ${WRKSRC}/themes ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/update.php ${DRUPAL_DIR}
|
2011-08-12 07:41:32 +00:00
|
|
|
${CP} ${WRKSRC}/web.config ${DRUPAL_DIR}
|
2006-02-22 00:40:20 +00:00
|
|
|
${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
|
2005-07-16 11:01:39 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-02-22 00:40:20 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
2005-07-16 11:01:39 +00:00
|
|
|
.endif
|
2006-02-22 00:40:20 +00:00
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DRUPAL_DIR}
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2006-01-10 04:03:43 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2004-05-10 09:02:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|