mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
65fe0a18fe
PR: ports/184309 Submitted by: Douglas Carmichael <dcarmich@dcarmichael.net> Approved by: maintainer timeout (3+ weeks), security fix Security: d9649816-5e0d-11e3-8d23-3c970e169bc2 With hat: ports-secteam@
87 lines
2.4 KiB
Makefile
87 lines
2.4 KiB
Makefile
# Created by: Nick Hilliard <nick@foobar.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= drupal7
|
|
PORTVERSION= 7.24
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://ftp.drupal.org/files/projects/
|
|
DISTNAME= drupal-${PORTVERSION}
|
|
DIST_SUBDIR= drupal
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= Database driven web content management system (CMS)
|
|
|
|
LICENSE= GPLv2 GPLv3
|
|
LICENSE_COMB= dual
|
|
|
|
USE_DRUPAL= yes
|
|
DRUPAL_PORT= yes
|
|
DRUPAL_VERSION= 7
|
|
|
|
USE_PHP= dom filter gd hash json mbstring pcre pdo session simplexml xml
|
|
WANT_PHP_WEB= yes
|
|
|
|
OPTIONS_DEFINE= MYSQL SQLITE3 PGSQL
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
NO_BUILD= yes
|
|
DOCS= CHANGELOG.txt INSTALL.mysql.txt INSTALL.sqlite.txt \
|
|
LICENSE.txt README.txt COPYRIGHT.txt INSTALL.pgsql.txt \
|
|
INSTALL.txt MAINTAINERS.txt UPGRADE.txt
|
|
|
|
SUB_FILES+= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE3}
|
|
USE_PHP+= pdo_sqlite
|
|
.endif
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_MYSQL= yes
|
|
USE_PHP+= pdo_mysql
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USE_PGSQL= yes
|
|
USE_PHP+= pdo_pgsql
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/cron.php ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/authorize.php ${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/install.php ${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/profiles ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/robots.txt ${DRUPAL_DIR}
|
|
${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all
|
|
${MKDIR} ${DRUPAL_DIR}/sites/all/libraries
|
|
${CP} ${WRKSRC}/sites/example.sites.php ${DRUPAL_DIR}/sites/
|
|
${CP} -R ${WRKSRC}/sites/all ${DRUPAL_DIR}/sites/
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default
|
|
${MKDIR} ${DRUPAL_DIR}/sites/default/files
|
|
${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 ; \
|
|
fi
|
|
${CP} -R ${WRKSRC}/themes ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/update.php ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/web.config ${DRUPAL_DIR}
|
|
${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${CP} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
.endif
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DRUPAL_DIR}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|