bf080de18c
if you use OpenID, or your uploads are badly configured, you have a security risk.
31 lines
918 B
Makefile
31 lines
918 B
Makefile
# $OpenBSD: Makefile,v 1.6 2009/09/20 11:56:37 espie Exp $
|
|
|
|
COMMENT = powerful content management system
|
|
|
|
DISTNAME = drupal-6.14
|
|
PKGNAME= ${DISTNAME}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
RUN_DEPENDS = ::www/php5/core \
|
|
:php5-mysql-*|php5-mysqli-*|php5-pgsql-*:www/php5/extensions,-mysql \
|
|
::www/php5/extensions,-gd \
|
|
::www/php5/extensions,-mbstring
|
|
|
|
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_DATA_DIR} ${PREFIX}/${DRUPAL_ROOT}/files
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DRUPAL_MODS}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DRUPAL_THEMES}
|
|
# give everything to www
|
|
chown -R www.www ${PREFIX}/${DRUPAL_ROOT}
|
|
|
|
.include <bsd.port.mk>
|