snort: add experimental PCRE2 support patch
Add experimental PCRE2 support patch as PCRE is EOL and won't receive any new updates anymore. Since PCRE2 API changed, also snort plugins API changed and require some tweka for any user downstream that compile custom plugins. The examples are all updated and conversion patch contains additional info on the changes required to the plugins. Plugins needs to be compiled and require updates anyway so there isn't a problem with user trying to load incompatible plugins. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
b0495e76e9
commit
661a22c594
2 changed files with 2117 additions and 3 deletions
|
@ -31,7 +31,7 @@ define Package/snort
|
|||
SUBMENU:=Firewall
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libdaq +libdnet +libnghttp2 +libopenssl +libpcap +libpcre +libpthread +libtirpc +libuuid +zlib @HAS_LUAJIT_ARCH +luajit +SNORT_LZMA:liblzma
|
||||
DEPENDS:=+libdaq +libdnet +libnghttp2 +libopenssl +libpcap +libpcre2 +libpthread +libtirpc +libuuid +zlib @HAS_LUAJIT_ARCH +luajit +SNORT_LZMA:liblzma
|
||||
TITLE:=Lightweight Network Intrusion Detection System
|
||||
URL:=http://www.snort.org/
|
||||
CONFLICTS:=snort3
|
||||
|
@ -57,8 +57,8 @@ CONFIGURE_ARGS += \
|
|||
--with-dnet-libraries="$(STAGING_DIR)/usr/lib" \
|
||||
--with-libpcap-includes="$(STAGING_DIR)/usr/include" \
|
||||
--with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \
|
||||
--with-libpcre-includes="$(STAGING_DIR)/usr/include" \
|
||||
--with-libpcre-libraries="$(STAGING_DIR)/usr/lib" \
|
||||
--with-libpcre2-includes="$(STAGING_DIR)/usr/include" \
|
||||
--with-libpcre2-libraries="$(STAGING_DIR)/usr/lib" \
|
||||
--with-daq-includes="$(STAGING_DIR)/usr/include/daq2" \
|
||||
--with-daq-libraries="$(STAGING_DIR)/usr/lib/daq2" \
|
||||
--disable-static-daq
|
||||
|
|
2114
net/snort/patches/900-Convert-project-to-PCRE2.patch
Normal file
2114
net/snort/patches/900-Convert-project-to-PCRE2.patch
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue