pkgsrc/www/ganglia-webfrontend/options.mk
rillig b12904483c www: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

Manually excluded phraseanet since pkglint got the indentation wrong.
2019-11-04 22:09:50 +00:00

34 lines
795 B
Makefile

# $NetBSD: options.mk,v 1.2 2019/11/04 22:09:55 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ganglia-webfrontend
PKG_OPTIONS_REQUIRED_GROUPS= webserver
PKG_OPTIONS_GROUP.webserver= apache nginx
PKG_SUPPORTED_OPTIONS= #
PKG_SUGGESTED_OPTIONS= apache
.include "../../mk/bsd.options.mk"
###
### Use apache web server
###
.if !empty(PKG_OPTIONS:Mapache)
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.1:../../www/ap-php
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
BUILD_DEFS+= APACHE_USER APACHE_GROUP
.include "../../mk/apache.mk"
.endif
###
### Use nginx web server
###
.if !empty(PKG_OPTIONS:Mnginx)
DEPENDS+= nginx-[0-9]*:../../www/nginx
NGINX_USER?= nginx
NGINX_GROUP?= nginx
WWW_USER?= ${NGINX_USER}
WWW_GROUP?= ${NGINX_USER}
BUILD_DEFS+= NGINX_USER NGINX_GROUP
.endif