5067fc6b04
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.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $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 apache
|
|
PKG_SUGGESTED_OPTIONS= mysql drupal-xmlservices apache
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Use PostgreSQL for storing Drupal data
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql-[0-9]*:../../databases/php-pgsql
|
|
.elif !empty(PKG_OPTIONS:Mmysql)
|
|
###
|
|
### Use MySQL for storing Drupal data
|
|
###
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.3:../../databases/php-mysql
|
|
.endif
|
|
|
|
###
|
|
### Enable XML-based services such as the Blogger API, Jabber and RSS
|
|
### syndication.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mdrupal-xmlservices)
|
|
. if ${PKG_PHP_VERSION} == "4"
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-domxml>=4.3.3:../../textproc/php4-domxml
|
|
. elif ${PKG_PHP_VERSION} == "5"
|
|
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
|