e5b2b5a7e1
ok brad@ sthen@ jasper@
31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.32 2013/03/17 07:21:17 ajacoutot Exp $
|
|
|
|
COMMENT = powerful content management system
|
|
MAINTAINER = Marc Espie <espie@openbsd.org>
|
|
|
|
DISTNAME = drupal-6.28
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX}
|
|
REVISION = 0
|
|
|
|
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>
|