summaryrefslogtreecommitdiff
path: root/sysutils/bacula
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-10-07 11:33:28 +0000
committerwiz <wiz@pkgsrc.org>2005-10-07 11:33:28 +0000
commitc694135cc1e3a1b0e62bde0b663b66bb708c0b51 (patch)
treef9f0f8d58459173f93b3d90c6e7731b7d818d218 /sysutils/bacula
parentc26de4d4909f8ab216d1557407db3c45255fb930 (diff)
downloadpkgsrc-c694135cc1e3a1b0e62bde0b663b66bb708c0b51.tar.gz
Use PKG_OPTIONS_REQUIRED_GROUPS for making sure only one option
from a group is selected, instead of handling it manually. From Geert Hendrickx on tech-pkg.
Diffstat (limited to 'sysutils/bacula')
-rw-r--r--sysutils/bacula/options.mk16
1 files changed, 5 insertions, 11 deletions
diff --git a/sysutils/bacula/options.mk b/sysutils/bacula/options.mk
index bafaae7681b..c551e26c3ec 100644
--- a/sysutils/bacula/options.mk
+++ b/sysutils/bacula/options.mk
@@ -1,18 +1,12 @@
-# $NetBSD: options.mk,v 1.1 2005/10/07 11:30:35 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2005/10/07 11:33:28 wiz Exp $
-PKG_OPTIONS_VAR= PKG_OPTIONS.bacula
-PKG_SUPPORTED_OPTIONS= catalog-sqlite catalog-pgsql
-PKG_SUGGESTED_OPTIONS= catalog-sqlite
+PKG_OPTIONS_VAR= PKG_OPTIONS.bacula
+PKG_OPTIONS_REQUIRED_GROUPS= database
+PKG_OPTIONS_GROUP.database= catalog-sqlite catalog-pgsql
+PKG_SUGGESTED_OPTIONS= catalog-sqlite
.include "../../mk/bsd.options.mk"
-# Too bad -1-6's make doesn't have :[#] modifier
-.for _option_ in catalog
-. if empty(PKG_OPTIONS:M${_option_}-*)
-PKG_FAIL_REASON+= "There must one and only one ${_option_} defined."
-. endif
-.endfor
-
# Other options
BACULA_GROUP?= bacula