| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | # $NetBSD: options.mk,v 1.10 2020/10/01 19:45:02 nils Exp $ | | 1 | # $NetBSD: options.mk,v 1.11 2024/05/10 19:46:53 jperkin Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.snort | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.snort |
4 | | | 4 | |
5 | PKG_SUPPORTED_OPTIONS= debug snort-prelude ssl snmp snort-gre | | 5 | PKG_SUPPORTED_OPTIONS= debug ssl snmp snort-gre |
6 | PKG_SUPPORTED_OPTIONS+= snort-dynamicplugin snort-timestats | | 6 | PKG_SUPPORTED_OPTIONS+= snort-dynamicplugin snort-timestats |
7 | PKG_SUPPORTED_OPTIONS+= snort-rulestate | | 7 | PKG_SUPPORTED_OPTIONS+= snort-rulestate |
8 | | | 8 | |
9 | | | 9 | |
10 | PKG_OPTIONS_OPTIONAL_GROUPS= flex | | 10 | PKG_OPTIONS_OPTIONAL_GROUPS= flex |
11 | PKG_OPTIONS_GROUP.flex= snort-flexresp snort-flexresp2 | | 11 | PKG_OPTIONS_GROUP.flex= snort-flexresp snort-flexresp2 |
12 | | | 12 | |
13 | .include "../../mk/bsd.options.mk" | | 13 | .include "../../mk/bsd.options.mk" |
14 | | | 14 | |
15 | ### | | 15 | ### |
16 | ### Please note that a large number of these options remain un-tested | | 16 | ### Please note that a large number of these options remain un-tested |
17 | ### for this package. | | 17 | ### for this package. |
18 | ### | | 18 | ### |
| @@ -58,34 +58,26 @@ CONFIGURE_ARGS+= --with-openssl | | | @@ -58,34 +58,26 @@ CONFIGURE_ARGS+= --with-openssl |
58 | ### | | 58 | ### |
59 | .if !empty(PKG_OPTIONS:Msnort-gre) | | 59 | .if !empty(PKG_OPTIONS:Msnort-gre) |
60 | CONFIGURE_ARGS+= --enable-gre | | 60 | CONFIGURE_ARGS+= --enable-gre |
61 | .endif | | 61 | .endif |
62 | | | 62 | |
63 | ### | | 63 | ### |
64 | ### Enable SNMP alerting code | | 64 | ### Enable SNMP alerting code |
65 | ### | | 65 | ### |
66 | .if !empty(PKG_OPTIONS:Msnmp) | | 66 | .if !empty(PKG_OPTIONS:Msnmp) |
67 | CONFIGURE_ARGS+= --with-snmp | | 67 | CONFIGURE_ARGS+= --with-snmp |
68 | .endif | | 68 | .endif |
69 | | | 69 | |
70 | ### | | 70 | ### |
71 | ### Enable Prelude support (untested) | | | |
72 | ### | | | |
73 | .if !empty(PKG_OPTIONS:Msnort-prelude) | | | |
74 | .include "../../security/libprelude/buildlink3.mk" | | | |
75 | CONFIGURE_ARGS+= --enable-prelude | | | |
76 | .endif | | | |
77 | | | | |
78 | ### | | | |
79 | ### Flexible Responses on hostile connection attempts (untested) | | 71 | ### Flexible Responses on hostile connection attempts (untested) |
80 | ### | | 72 | ### |
81 | .if !empty(PKG_OPTIONS:Msnort-flexresp) | | 73 | .if !empty(PKG_OPTIONS:Msnort-flexresp) |
82 | .include "../../devel/libnet10/buildlink3.mk" | | 74 | .include "../../devel/libnet10/buildlink3.mk" |
83 | CONFIGURE_ARGS+= --enable-flexresp | | 75 | CONFIGURE_ARGS+= --enable-flexresp |
84 | CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet10}/include/libnet10 | | 76 | CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet10}/include/libnet10 |
85 | CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet10}/lib/libnet10 | | 77 | CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet10}/lib/libnet10 |
86 | SUBST_CLASSES+= conf | | 78 | SUBST_CLASSES+= conf |
87 | SUBST_STAGE.conf= pre-configure | | 79 | SUBST_STAGE.conf= pre-configure |
88 | SUBST_FILES.conf= configure | | 80 | SUBST_FILES.conf= configure |
89 | SUBST_SED.conf= -e "s|libnet-config|libnet10-config|g" | | 81 | SUBST_SED.conf= -e "s|libnet-config|libnet10-config|g" |
90 | SUBST_MESSAGE.conf= Fixing configuration script. | | 82 | SUBST_MESSAGE.conf= Fixing configuration script. |
91 | .endif | | 83 | .endif |