2003-12-29 06:13:32 +00:00
|
|
|
# New ports collection makefile for: Drupal
|
|
|
|
# Date Created: 10 Nov 2003
|
|
|
|
# Whom: Sebastian Yepes F. <esn@x123.info>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drupal
|
2006-08-02 22:24:20 +00:00
|
|
|
PORTVERSION= 4.6.9
|
2003-12-29 06:13:32 +00:00
|
|
|
CATEGORIES= www
|
2006-07-13 16:23:04 +00:00
|
|
|
MASTER_SITES= http://ftp.osuosl.org/pub/drupal/files/projects/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
2006-02-20 06:09:40 +00:00
|
|
|
MASTER_SITE_SUBDIR= brooks
|
|
|
|
DIST_SUBDIR= drupal
|
2003-12-29 06:13:32 +00:00
|
|
|
|
2006-01-17 01:51:56 +00:00
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
2003-12-29 06:13:32 +00:00
|
|
|
COMMENT= CMS that supports pgsql and mysql
|
|
|
|
|
2006-02-22 00:40:20 +00:00
|
|
|
DRUPAL_PORT= yes
|
|
|
|
|
2006-01-17 01:51:56 +00:00
|
|
|
USE_PHP= gd pcre session xml
|
2006-02-20 06:09:40 +00:00
|
|
|
WANT_PHP_WEB= yes
|
2005-11-23 20:58:42 +00:00
|
|
|
|
2006-02-22 00:40:20 +00:00
|
|
|
OPTIONS+= MYSQL "MySQL database support" on \
|
|
|
|
PGSQL "PostgreSQL database support" off
|
2005-11-03 13:49:19 +00:00
|
|
|
|
|
|
|
WWWOWN?= www
|
|
|
|
WWWGRP?= www
|
|
|
|
|
2003-12-29 06:13:32 +00:00
|
|
|
NO_BUILD= yes
|
2004-04-04 13:07:59 +00:00
|
|
|
DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.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>
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
# XXX: should be "USE_PHP+=mysql", but the depends are added too early
|
|
|
|
# by bsd.php.mk
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/mysql.so:${PORTSDIR}/${mysql_DEPENDS}
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
|
|
|
.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}
|
|
|
|
${CP} -R ${WRKSRC}/database ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/favicon.ico ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
|
|
|
|
${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
|
|
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default
|
|
|
|
${CP} ${WRKSRC}/sites/default/settings.php ${DRUPAL_DIR}/sites/default/settings.php-dist
|
|
|
|
@if [ ! -f ${DRUPAL_DIR}/sites/default/settings.php ]; then \
|
|
|
|
${CP} -p ${DRUPAL_DIR}/sites/default/settings.php-dist ${DRUPAL_DIR}/sites/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}
|
|
|
|
${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
|
|
|
|
2006-02-22 00:40:20 +00:00
|
|
|
.include "${.CURDIR}/bsd.drupal.mk"
|
2004-05-10 09:02:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|