openbsd-ports/www/drupal6/core/Makefile

30 lines
1022 B
Makefile

# $OpenBSD: Makefile,v 1.29 2012/03/20 10:00:13 sthen Exp $
COMMENT = powerful content management system
MAINTAINER = Marc Espie <espie@openbsd.org>
DISTNAME = drupal-6.25
DISTFILES = ${DISTNAME}${EXTRACT_SUFX}
MODULES= lang/php
RUN_DEPENDS= php-mysql-${MODPHP_VSPEC}|php-mysqli-${MODPHP_VSPEC}|php-pgsql-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-mysql \
lang/php/${MODPHP_VERSION},-gd
do-install:
mkdir -p ${PREFIX}/${DRUPAL_ROOT}
# copy base distrib
cp -R ${WRKDIST}/* ${PREFIX}/${DRUPAL_ROOT}
# copy config file
perl -p \
-e 's@\$$\{DRUPAL_ROOT\}@${DRUPAL_ROOT}@g;' \
-e 's@\$$\{DRUPAL\}@${DRUPAL}@g;' \
<${FILESDIR}/drupal.conf \
>${PREFIX}/${DRUPAL_ROOT}/misc/drupal.conf
install -d -o www ${PREFIX}/${DRUPAL_ROOT}/files
chmod 640 ${PREFIX}/${DRUPAL_ROOT}/sites/default/default.settings.php
chgrp www ${PREFIX}/${DRUPAL_ROOT}/sites/default/default.settings.php
${INSTALL_DATA_DIR} ${PREFIX}/${DRUPAL_MODS}
${INSTALL_DATA_DIR} ${PREFIX}/${DRUPAL_THEMES}
.include <bsd.port.mk>