2018-04-01 17:16:36 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# snort
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-11-05 13:44:45 +01:00
|
|
|
SNORT_VERSION = 2.9.18.1
|
2018-04-01 17:16:36 +02:00
|
|
|
SNORT_SITE = https://www.snort.org/downloads/snort
|
|
|
|
SNORT_LICENSE = GPL-2.0
|
|
|
|
SNORT_LICENSE_FILES = LICENSE COPYING
|
2021-02-01 18:54:14 +01:00
|
|
|
SNORT_CPE_ID_VENDOR = snort
|
2021-07-25 17:44:46 +02:00
|
|
|
SNORT_SELINUX_MODULES = snort
|
2018-04-01 17:16:36 +02:00
|
|
|
|
2020-01-10 18:28:17 +01:00
|
|
|
SNORT_DEPENDENCIES = libpcap libdnet daq pcre zlib host-pkgconf
|
2018-04-01 17:16:36 +02:00
|
|
|
|
|
|
|
# patching configure.in
|
|
|
|
SNORT_AUTORECONF = YES
|
|
|
|
|
|
|
|
SNORT_CONF_OPTS = \
|
2018-04-02 09:12:26 +02:00
|
|
|
--with-libpcre-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-libpcre-libraries=$(STAGING_DIR)/usr/lib \
|
2018-04-01 17:16:36 +02:00
|
|
|
--with-libpcap-includes=$(STAGING_DIR)/usr/include/pcap \
|
|
|
|
--disable-static-daq
|
|
|
|
|
2019-06-14 23:03:29 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
SNORT_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
2018-04-01 17:16:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
2019-09-04 02:51:28 +02:00
|
|
|
SNORT_DEPENDENCIES += libtirpc
|
2018-04-01 17:16:36 +02:00
|
|
|
SNORT_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
|
|
|
|
SNORT_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
|
|
|
|
endif
|
|
|
|
|
2019-02-21 21:27:26 +01:00
|
|
|
# luajit and openssl should be enabled to build with
|
|
|
|
# OpenAppID support
|
|
|
|
ifeq ($(BR2_PACKAGE_LUAJIT)$(BR2_PACKAGE_OPENSSL),yy)
|
|
|
|
SNORT_DEPENDENCIES += luajit openssl
|
|
|
|
SNORT_CONF_OPTS += --enable-open-appid
|
|
|
|
else
|
|
|
|
SNORT_CONF_OPTS += --disable-open-appid
|
|
|
|
endif
|
|
|
|
|
2018-04-01 17:16:36 +02:00
|
|
|
SNORT_CONF_ENV = \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(SNORT_CFLAGS)" \
|
|
|
|
LIBS="$(SNORT_LIBS)" \
|
|
|
|
have_inaddr_none=yes
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|