| @@ -1,106 +1,98 @@ | | | @@ -1,106 +1,98 @@ |
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 | ### |
19 | | | 19 | |
20 | ### | | 20 | ### |
21 | ### Enable dynamically loadable preprocessors, detection engine | | 21 | ### Enable dynamically loadable preprocessors, detection engine |
22 | ### and rules libraries. | | 22 | ### and rules libraries. |
23 | ### | | 23 | ### |
24 | .if !empty(PKG_OPTIONS:Msnort-dynamicplugin) | | 24 | .if !empty(PKG_OPTIONS:Msnort-dynamicplugin) |
25 | CONFIGURE_ARGS+= --enable-dynamicplugin | | 25 | CONFIGURE_ARGS+= --enable-dynamicplugin |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | ### | | 28 | ### |
29 | ### Enable rule state configuration feature | | 29 | ### Enable rule state configuration feature |
30 | ### | | 30 | ### |
31 | .if !empty(PKG_OPTIONS:Msnort-rulestate) | | 31 | .if !empty(PKG_OPTIONS:Msnort-rulestate) |
32 | CONFIGURE_ARGS+= --enable-rulestate | | 32 | CONFIGURE_ARGS+= --enable-rulestate |
33 | .endif | | 33 | .endif |
34 | | | 34 | |
35 | ### | | 35 | ### |
36 | ### Enable real-time performance statistics | | 36 | ### Enable real-time performance statistics |
37 | ### | | 37 | ### |
38 | .if !empty(PKG_OPTIONS:Msnort-timestats) | | 38 | .if !empty(PKG_OPTIONS:Msnort-timestats) |
39 | CONFIGURE_ARGS+= --enable-timestats | | 39 | CONFIGURE_ARGS+= --enable-timestats |
40 | .endif | | 40 | .endif |
41 | | | 41 | |
42 | ### | | 42 | ### |
43 | ### Enable debug support | | 43 | ### Enable debug support |
44 | ### | | 44 | ### |
45 | .if !empty(PKG_OPTIONS:Mdebug) | | 45 | .if !empty(PKG_OPTIONS:Mdebug) |
46 | CONFIGURE_ARGS+= --enable-debug | | 46 | CONFIGURE_ARGS+= --enable-debug |
47 | .endif | | 47 | .endif |
48 | | | 48 | |
49 | ### | | 49 | ### |
50 | ### Support for openssl (used by the XML output plugin) | | 50 | ### Support for openssl (used by the XML output plugin) |
51 | ### | | 51 | ### |
52 | .if !empty(PKG_OPTIONS:Mssl) | | 52 | .if !empty(PKG_OPTIONS:Mssl) |
53 | CONFIGURE_ARGS+= --with-openssl | | 53 | CONFIGURE_ARGS+= --with-openssl |
54 | .endif | | 54 | .endif |
55 | | | 55 | |
56 | ### | | 56 | ### |
57 | ### Enable GRE decoder | | 57 | ### Enable GRE decoder |
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 |
92 | | | 84 | |
93 | ### | | 85 | ### |
94 | ### NEW Flexible Responses on hostile connection attempts (untested) | | 86 | ### NEW Flexible Responses on hostile connection attempts (untested) |
95 | ### | | 87 | ### |
96 | .if !empty(PKG_OPTIONS:Msnort-flexresp2) | | 88 | .if !empty(PKG_OPTIONS:Msnort-flexresp2) |
97 | .include "../../devel/libnet11/buildlink3.mk" | | 89 | .include "../../devel/libnet11/buildlink3.mk" |
98 | CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet11}/include/libnet11 | | 90 | CONFIGURE_ARGS+= --with-libnet-includes=${BUILDLINK_PREFIX.libnet11}/include/libnet11 |
99 | CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet11}/lib/libnet11 | | 91 | CONFIGURE_ARGS+= --with-libnet-libraries=${BUILDLINK_PREFIX.libnet11}/lib/libnet11 |
100 | CONFIGURE_ARGS+= --enable-flexresp2 | | 92 | CONFIGURE_ARGS+= --enable-flexresp2 |
101 | SUBST_CLASSES+= conf | | 93 | SUBST_CLASSES+= conf |
102 | SUBST_STAGE.conf= pre-configure | | 94 | SUBST_STAGE.conf= pre-configure |
103 | SUBST_FILES.conf= configure | | 95 | SUBST_FILES.conf= configure |
104 | SUBST_SED.conf= -e "s|libnet-config|libnet11-config|g" | | 96 | SUBST_SED.conf= -e "s|libnet-config|libnet11-config|g" |
105 | SUBST_MESSAGE.conf= Fixing configuration script. | | 97 | SUBST_MESSAGE.conf= Fixing configuration script. |
106 | .endif | | 98 | .endif |