24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= snort |
28 COMPONENT_NAME= snort |
29 COMPONENT_VERSION= 2.8.4.1 |
29 COMPONENT_VERSION= 2.9.2 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
32 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:ee7f790eb3df4e6156a7c865f1ba22855394c9e3c13fdc57d60a8647267fc209 |
33 sha256:04d375b627dd256d6257f2cbe5a770e4552e3f35d5e2100b97f75426b600d8cb |
34 COMPONENT_PROJECT_URL= http://www.snort.org/ |
34 COMPONENT_PROJECT_URL= http://www.snort.org/ |
35 # the main site does not retain older releases |
35 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dl/snort-current/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_URL= http://mirror2.openwrt.org/sources/$(COMPONENT_ARCHIVE) |
|
37 COMPONENT_BUGDB= utility/snort |
36 COMPONENT_BUGDB= utility/snort |
38 |
37 |
39 include ../../make-rules/prep.mk |
38 include ../../make-rules/prep.mk |
40 include ../../make-rules/configure.mk |
39 include ../../make-rules/configure.mk |
41 include ../../make-rules/ips.mk |
40 include ../../make-rules/ips.mk |
42 |
41 |
43 PATCH_LEVEL = 0 |
|
44 |
|
45 # without this we bus error on sparc. sadly I don't see any patches |
42 # without this we bus error on sparc. sadly I don't see any patches |
46 # that might relate from the upstream (though maybe that's really |
43 # that might relate from the upstream (though maybe that's really |
47 # "happily", as this is simpler) |
44 # "happily", as this is simpler) |
48 studio_ALIGN.sparc.32= -xmemalign=1i |
45 studio_ALIGN.sparc.64= -xmemalign=1i |
49 |
46 |
50 CONFIGURE_OPTIONS += --with-libpcre=included |
47 # Need to recreate the configure script for gethrtime checks. |
51 CONFIGURE_OPTIONS += --with-libpcap=/usr |
48 COMPONENT_PREP_ACTION += (cd $(@D); autoconf); |
52 CONFIGURE_OPTIONS += --enable-static=no |
49 |
|
50 CONFIGURE_OPTIONS += --with-libpcre-libraries="/usr/lib/$(MACH64)" |
|
51 CONFIGURE_OPTIONS += --with-dnet-libraries="/usr/lib/$(MACH64)" |
|
52 CONFIGURE_OPTIONS += --without-mysql |
|
53 CONFIGURE_OPTIONS += --without-postgresql |
|
54 CONFIGURE_OPTIONS += --enable-zlib |
|
55 CONFIGURE_OPTIONS += --enable-ipv6 |
|
56 CONFIGURE_OPTIONS += --disable-static-daq |
53 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
57 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
58 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
59 |
|
60 # Move snort shared objects to 64-bit path to stop pkglint bitching. |
|
61 COMPONENT_POST_INSTALL_ACTION += \ |
|
62 $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \ |
|
63 $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ; |
54 |
64 |
55 # Enable ASLR for this component |
65 # Enable ASLR for this component |
56 ASLR_MODE = $(ASLR_ENABLE) |
66 ASLR_MODE = $(ASLR_ENABLE) |
57 |
67 |
58 # common targets |
68 # common targets |
59 build: $(BUILD_32) |
69 build: $(BUILD_64) |
60 |
70 |
61 install: $(INSTALL_32) |
71 install: $(INSTALL_64) |
62 |
72 |
63 test: $(NO_TESTS) |
73 test: $(NO_TESTS) |
64 |
74 |
65 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
75 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
66 |
76 |