summaryrefslogtreecommitdiff
path: root/net/snort
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-02-17 19:08:48 +0000
committeradrianp <adrianp@pkgsrc.org>2007-02-17 19:08:48 +0000
commit66d9961130faa650ad6607968a9f7ef3ae27e68f (patch)
tree7b943ea30743a0bd44835d5464aa5beea4bba601 /net/snort
parenta1b60c709a536403abe8a631f6193933200770d1 (diff)
downloadpkgsrc-66d9961130faa650ad6607968a9f7ef3ae27e68f.tar.gz
Add options.mk missed in the 2.6 update
Diffstat (limited to 'net/snort')
-rw-r--r--net/snort/options.mk63
1 files changed, 63 insertions, 0 deletions
diff --git a/net/snort/options.mk b/net/snort/options.mk
new file mode 100644
index 00000000000..5f6831b2eb2
--- /dev/null
+++ b/net/snort/options.mk
@@ -0,0 +1,63 @@
+# $NetBSD: options.mk,v 1.1 2007/02/17 19:08:48 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.snort
+
+PKG_SUPPORTED_OPTIONS= debug snort-prelude
+PKG_SUGGESTED_OPTIONS=
+
+PKG_OPTIONS_OPTIONAL_GROUPS= flex
+PKG_OPTIONS_GROUP.flex= snort-flexresp snort-flexresp2
+
+PKG_OPTIONS_OPTIONAL_GROUPS+= database
+PKG_OPTIONS_GROUP.database= mysql pgsql
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Enable debug support
+###
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+###
+### Support MySQL for snort logging
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+.include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
+LDFLAGS+= ${BUILDLINK_LDFLAGS.mysql-client}
+.endif
+
+###
+### Support PostgreSQL for snort logging
+###
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX:Q}
+.endif
+
+###
+### Enable Prelude support (untested)
+###
+.if !empty(PKG_OPTIONS:Mprelude)
+.include "../../security/libprelude/buildlink3.mk"
+.include "../../security/libpreludedb/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-prelude
+.endif
+
+###
+### Flexible Responses on hostile connection attempts (untested)
+###
+.if !empty(PKG_OPTIONS:Mflexresp)
+CONFIGURE_ARGS+= --enable-flexresp
+.include "../../devel/libnet/buildlink3.mk"
+.endif
+
+###
+### NEW Flexible Responses on hostile connection attempts (untested)
+###
+.if !empty(PKG_OPTIONS:Mflexresp2)
+CONFIGURE_ARGS+= --enable-flexresp2
+.include "../../net/libdnet/buildlink3.mk"
+.endif