pkgsrc/net/snort/options.mk

135 lines
3.3 KiB
Makefile
Raw Normal View History

2007-10-31 17:49:17 +01:00
# $NetBSD: options.mk,v 1.5 2007/10/31 16:49:17 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.snort
PKG_SUPPORTED_OPTIONS= debug snort-prelude ssl snmp snort-gre
PKG_SUPPORTED_OPTIONS+= snort-dynamicplugin snort-timestats
2007-10-31 17:49:17 +01:00
PKG_SUPPORTED_OPTIONS+= snort-rulestate inet6
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"
###
### Please note that a large number of these options remain un-tested
### for this package.
###
###
### Enable dynamically loadable preprocessors, detection engine
### and rules libraries.
###
.if !empty(PKG_OPTIONS:Msnort-dynamicplugin)
CONFIGURE_ARGS+= --enable-dynamicplugin
.endif
###
### Enable rule state configuration feature
###
.if !empty(PKG_OPTIONS:Msnort-rulestate)
CONFIGURE_ARGS+= --enable-rulestate
.endif
2007-10-31 17:49:17 +01:00
###
### Enable ipv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
###
### Enable real-time performance statistics
###
.if !empty(PKG_OPTIONS:Msnort-timestats)
CONFIGURE_ARGS+= --enable-timestats
.endif
###
### Enable debug support
###
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
###
### Support for openssl (used by the XML output plugin)
###
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-openssl
.endif
###
### Enable GRE decoder
###
.if !empty(PKG_OPTIONS:Msnort-gre)
CONFIGURE_ARGS+= --enable-gre
.endif
###
### Enable SNMP alerting code
###
.if !empty(PKG_OPTIONS:Msnmp)
CONFIGURE_ARGS+= --with-snmp
.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:Msnort-prelude)
.include "../../security/libprelude/buildlink3.mk"
CONFIGURE_ARGS+= --enable-prelude
.endif
###
### Flexible Responses on hostile connection attempts (untested)
###
.if !empty(PKG_OPTIONS:Msnort-flexresp)
.include "../../devel/libnet10/buildlink3.mk"
CONFIGURE_ARGS+= --enable-flexresp
CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet10}/include/libnet10
CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet10}/lib/libnet10
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= configure
SUBST_SED.conf= -e "s|libnet-config|libnet10-config|g"
SUBST_MESSAGE.conf= Fixing configuration script.
.endif
###
### NEW Flexible Responses on hostile connection attempts (untested)
###
.if !empty(PKG_OPTIONS:Msnort-flexresp2)
.include "../../devel/libnet11/buildlink3.mk"
.include "../../net/libdnet/buildlink3.mk"
CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet11}/include/libnet11
CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet11}/lib/libnet11
CONFIGURE_ARGS+= --enable-flexresp2
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= configure
SUBST_SED.conf= -e "s|libnet-config|libnet11-config|g"
SUBST_MESSAGE.conf= Fixing configuration script.
.endif