2008-05-27 09:40:15 +02:00
|
|
|
# New ports collection makefile for: drupal6
|
2007-03-25 11:42:17 +02:00
|
|
|
# Date Created: 12 Feb 2007
|
|
|
|
# Whom: Nick Hilliard <nick@foobar.org>
|
2003-12-29 07:13:32 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2008-05-27 09:40:15 +02:00
|
|
|
PORTNAME= drupal6
|
2008-12-19 21:45:51 +01:00
|
|
|
PORTVERSION= 6.8
|
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
|
|
|
|
2007-01-09 04:19:03 +01:00
|
|
|
MAINTAINER= nick@foobar.org
|
2007-03-25 11:42:17 +02:00
|
|
|
COMMENT= A database driven web content management system (CMS)
|
2003-12-29 07:13:32 +01:00
|
|
|
|
2008-05-27 09:40:15 +02:00
|
|
|
DRUPAL6_PORT= yes
|
2006-02-22 01:40:20 +01:00
|
|
|
|
2007-03-25 11:42:17 +02:00
|
|
|
USE_PHP= gd pcre session xml mbstring
|
2008-05-27 09:40:15 +02:00
|
|
|
IGNORE_WITH_PHP=4
|
2006-02-20 07:09:40 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2005-11-23 21:58:42 +01:00
|
|
|
|
2008-05-27 09:40:15 +02:00
|
|
|
OPTIONS+= MYSQLI "MySQL Improved Extension database support" on \
|
|
|
|
MYSQL "MySQL 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
|
2007-01-05 22:32:19 +01:00
|
|
|
DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt \
|
2008-05-27 09:40:15 +02:00
|
|
|
UPGRADE.txt INSTALL.mysql.txt INSTALL.pgsql.txt \
|
|
|
|
COPYRIGHT.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>
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2007-03-06 07:54:19 +01:00
|
|
|
USE_PHP+= mysql
|
2006-02-22 01:40:20 +01:00
|
|
|
.endif
|
2008-05-27 09:40:15 +02:00
|
|
|
.if defined(WITH_MYSQLI)
|
|
|
|
USE_PHP+= mysqli
|
|
|
|
.endif
|
2006-02-22 01:40:20 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
2007-03-25 11:42:17 +02:00
|
|
|
USE_PHP+= 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}
|
|
|
|
${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
|
|
|
|
${CP} ${WRKSRC}/sites/all/README.txt ${DRUPAL_DIR}/sites/all/
|
2006-02-22 01:40:20 +01:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default
|
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}
|
|
|
|
${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
|
2007-04-03 08:13:00 +02:00
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all/modules ${DRUPAL_DIR}/sites/all/themes
|
|
|
|
${TOUCH} ${DRUPAL_DIR}/sites/all/modules/.keepme ${DRUPAL_DIR}/sites/all/themes/.keepme
|
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
|
|
|
|
2008-05-27 09:40:15 +02:00
|
|
|
.include "${.CURDIR}/../../www/drupal5/bsd.drupal.mk"
|
2004-05-10 11:02:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|