Created
May 21, 2021 13:58
-
-
Save dlangille/42f5c8029aa4b6c8f6ec8e0f44ca77b7 to your computer and use it in GitHub Desktop.
This patch allows snort to again build on FreeBSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/security/snort3/Makefile b/security/snort3/Makefile | |
index 200f008f8831..a612712b2e60 100644 | |
--- a/security/snort3/Makefile | |
+++ b/security/snort3/Makefile | |
@@ -1,8 +1,7 @@ | |
# Created by: Mark Felder <feld@FreeBSD.org> | |
PORTNAME= snort | |
-DISTVERSION= 3.1.3.0 | |
-PORTREVISION= 1 | |
+DISTVERSION= 3.1.5.0 | |
PORTEPOCH= 1 | |
CATEGORIES= security | |
PKGNAMESUFFIX= 3 | |
@@ -13,8 +12,8 @@ COMMENT= Lightweight network intrusion detection system | |
LICENSE= GPLv2 | |
LICENSE_FILE= ${WRKSRC}/LICENSE | |
-BROKEN_FreeBSD_11= fails to detect flex from ports | |
-BROKEN_FreeBSD_12= fails to detect flex from ports | |
+#BROKEN_FreeBSD_11= fails to detect flex from ports | |
+#BROKEN_FreeBSD_12= fails to detect flex from ports | |
LIB_DEPENDS= libpcre.so:devel/pcre \ | |
libdnet.so:net/libdnet \ | |
@@ -60,6 +59,8 @@ TSC_CMAKE_BOOL= ENABLE_TSC_CLOCK | |
CONFLICTS= snort-2* | |
+CMAKE_ARGS+= -DCMAKE_PREFIX_PATH:PATH=/usr/local -DFLEX_INCLUDE_DIR_HINT:PATH=/usr/local/include/flex | |
+ | |
.include <bsd.port.options.mk> | |
.if ${ARCH:Mpowerpc64*} | |
@@ -68,6 +69,10 @@ LIB_DEPENDS+= libluajit-5.1.so:lang/luajit-openresty | |
LIB_DEPENDS+= libluajit-5.1.so:lang/luajit | |
.endif | |
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 | |
+BUILD_DEPENDS= flex>0:textproc/flex | |
+.endif | |
+ | |
post-patch: | |
${REINPLACE_CMD} -e 's|_LIBDIR}/pkgconfig|_PREFIX}/libdata/pkgconfig|g' \ | |
${WRKSRC}/cmake/create_pkg_config.cmake | |
diff --git a/security/snort3/distinfo b/security/snort3/distinfo | |
index a722c9f26bd4..6acc9ca843ff 100644 | |
--- a/security/snort3/distinfo | |
+++ b/security/snort3/distinfo | |
@@ -1,3 +1,3 @@ | |
-TIMESTAMP = 1618266885 | |
-SHA256 (snort3-snort3-3.1.3.0_GH0.tar.gz) = 8df5b99be747e2cae141da8635527da2e31a7e568c70e2a58e53f0d50ee94461 | |
-SIZE (snort3-snort3-3.1.3.0_GH0.tar.gz) = 2936470 | |
+TIMESTAMP = 1621604073 | |
+SHA256 (snort3-snort3-3.1.5.0_GH0.tar.gz) = 9209ca675c55e1c9dee1cb15e571b29c317f6e167b54f22e7bc18a6164218b1b | |
+SIZE (snort3-snort3-3.1.5.0_GH0.tar.gz) = 2956323 | |
diff --git a/security/snort3/pkg-plist b/security/snort3/pkg-plist | |
index a936695bb24d..16469f54e666 100644 | |
--- a/security/snort3/pkg-plist | |
+++ b/security/snort3/pkg-plist | |
@@ -120,6 +120,7 @@ include/snort/mime/file_mime_paf.h | |
include/snort/mime/file_mime_process.h | |
include/snort/network_inspectors/appid/appid_api.h | |
include/snort/network_inspectors/appid/appid_app_descriptor.h | |
+include/snort/network_inspectors/appid/appid_debug.h | |
include/snort/network_inspectors/appid/appid_dns_session.h | |
include/snort/network_inspectors/appid/appid_http_session.h | |
include/snort/network_inspectors/appid/appid_session_api.h | |
@@ -178,6 +179,7 @@ include/snort/protocols/udp.h | |
include/snort/protocols/vlan.h | |
include/snort/protocols/wlan.h | |
include/snort/pub_sub/appid_events.h | |
+include/snort/pub_sub/appid_debug_log_event.h | |
include/snort/pub_sub/cip_events.h | |
include/snort/pub_sub/daq_message_event.h | |
include/snort/pub_sub/data_decrypt_event.h | |
@@ -191,6 +193,7 @@ include/snort/pub_sub/sip_events.h | |
include/snort/pub_sub/smb_events.h | |
include/snort/search_engines/search_common.h | |
include/snort/search_engines/search_tool.h | |
+include/snort/service_inspectors/ssl/ssl_flow_data.h | |
include/snort/sfip/sf_cidr.h | |
include/snort/sfip/sf_ip.h | |
include/snort/sfip/sf_returns.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment