summaryrefslogtreecommitdiff
path: root/www/drupal6/options.mk
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2008-10-24 18:52:31 +0000
committeradrianp <adrianp@pkgsrc.org>2008-10-24 18:52:31 +0000
commit5067fc6b0418214bd63c315964d82064a2491658 (patch)
tree3d9e7e1a1cd60f32e1ffa2c95b0756de62205c07 /www/drupal6/options.mk
parentc754b4712423bdbc634bcfd5d53cf1e26f67bf4f (diff)
downloadpkgsrc-5067fc6b0418214bd63c315964d82064a2491658.tar.gz
Fix PLIST issues when using binary packages - spotted by martti@
After some feedback from Roy Marples set up the package so it's easier to get drupal to run under other web servers than apache. As the default web server, apache will remain. Users can disable it using the options.mk framework. Rename APACHE_* variables to WWW_* and set some sane defaults.
Diffstat (limited to 'www/drupal6/options.mk')
-rw-r--r--www/drupal6/options.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/www/drupal6/options.mk b/www/drupal6/options.mk
index b126e2f6ab5..35ab1c4f6bf 100644
--- a/www/drupal6/options.mk
+++ b/www/drupal6/options.mk
@@ -1,12 +1,12 @@
-# $NetBSD: options.mk,v 1.1.1.1 2008/04/06 10:15:27 adrianp Exp $
+# $NetBSD: options.mk,v 1.2 2008/10/24 18:52:31 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.drupal
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql pgsql
-PKG_SUPPORTED_OPTIONS= drupal-xmlservices
-PKG_SUGGESTED_OPTIONS= mysql drupal-xmlservices
+PKG_SUPPORTED_OPTIONS= drupal-xmlservices apache
+PKG_SUGGESTED_OPTIONS= mysql drupal-xmlservices apache
.include "../../mk/bsd.options.mk"
@@ -35,3 +35,16 @@ DEPENDS+= ${PHP_PKG_PREFIX}-domxml>=4.3.3:../../textproc/php4-domxml
DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php5-dom
. endif
.endif
+
+###
+### Drupal can run on a number of web servers, we support apache by default
+###
+.if !empty(PKG_OPTIONS:Mapache)
+DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.5:../../www/ap-php
+. include "../../mk/apachever.mk"
+WWW_USER?= ${APACHE_USER}
+WWW_GROUP?= ${APACHE_GROUP}
+.else
+WWW_USER?= ${ROOT_USER}
+WWW_GROUP?= ${ROOT_GROUP}
+.endif