diff options
author | sborrill <sborrill@pkgsrc.org> | 2007-10-29 12:40:58 +0000 |
---|---|---|
committer | sborrill <sborrill@pkgsrc.org> | 2007-10-29 12:40:58 +0000 |
commit | 1301bed0d3f3e1101a1ea2492dfae7990340c901 (patch) | |
tree | dc503ca70eb15c1db41e1b0e005ce5c6a22c7b54 /sysutils/apcupsd/options.mk | |
parent | 75635c82f9b48902b02b85d1871fbdaac7598347 (diff) | |
download | pkgsrc-1301bed0d3f3e1101a1ea2492dfae7990340c901.tar.gz |
Add cgi and snmp options (on by default)
Diffstat (limited to 'sysutils/apcupsd/options.mk')
-rw-r--r-- | sysutils/apcupsd/options.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/apcupsd/options.mk b/sysutils/apcupsd/options.mk new file mode 100644 index 00000000000..d710560f3b2 --- /dev/null +++ b/sysutils/apcupsd/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1 2007/10/29 12:40:58 sborrill Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.apcupsd +PKG_SUPPORTED_OPTIONS= snmp cgi +PKG_SUGGESTED_OPTIONS= snmp cgi + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msnmp) +. include "../../net/net-snmp/buildlink3.mk" +CONFIGURE_ARGS+= --enable-snmp # enable SNMP driver +.endif + +.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 " +.endif |