diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-12 22:42:57 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-12 22:42:57 +0000 |
commit | 841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a (patch) | |
tree | fdd67c81079412bf94013749a954125434a9baca /sysutils/apcupsd/options.mk | |
parent | 6874584eae20f517f70816571f6d4ac696db16b3 (diff) | |
download | pkgsrc-841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a.tar.gz |
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'sysutils/apcupsd/options.mk')
-rw-r--r-- | sysutils/apcupsd/options.mk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sysutils/apcupsd/options.mk b/sysutils/apcupsd/options.mk index d710560f3b2..ddf04b5f197 100644 --- a/sysutils/apcupsd/options.mk +++ b/sysutils/apcupsd/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2007/10/29 12:40:58 sborrill Exp $ +# $NetBSD: options.mk,v 1.2 2008/04/12 22:43:12 jlam Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.apcupsd PKG_SUPPORTED_OPTIONS= snmp cgi @@ -11,10 +11,9 @@ PKG_SUGGESTED_OPTIONS= snmp cgi CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver .endif +PLIST_VARS+= cgi .if !empty(PKG_OPTIONS:Mcgi) CONFIGURE_ARGS+= --enable-cgi # include CGI support CONFIGURE_ARGS+= --with-cgi-bin=${PREFIX}/libexec/cgi-bin -PLIST_SUBST+= CGI= -.else -PLIST_SUBST+= CGI="@comment " +PLIST.cgi= yes .endif |