View | Details | Raw Unified | Return to bug 252571
Collapse All | Expand All

(-)security/suricata/Makefile (-44 / +21 lines)
Lines 19-48 Link Here
19
		liblz4.so:archivers/liblz4 \
19
		liblz4.so:archivers/liblz4 \
20
		libyaml.so:textproc/libyaml
20
		libyaml.so:textproc/libyaml
21
21
22
USES=		autoreconf cpe gmake iconv:translit libtool pathfix pkgconfig
22
USES=		autoreconf cpe gmake iconv:translit libtool localbase \
23
		pathfix pkgconfig
23
24
24
CONFLICTS_INSTALL=	libhtp
25
CPE_VENDOR=	openinfosecfoundation
25
26
26
USE_LDCONFIG=	yes
27
USE_LDCONFIG=	yes
27
USE_RC_SUBR=	${PORTNAME}
28
USE_RC_SUBR=	${PORTNAME}
28
PLIST_SUB=	PORTVERSION=${DISTVERSION:C/-/_/g}
29
29
30
GNU_CONFIGURE=	yes
30
GNU_CONFIGURE=	yes
31
CONFIGURE_ARGS+=--enable-gccprotect \
32
		--enable-bundled-htp \
33
	        --disable-gccmarch-native
31
34
32
CPE_VENDOR=	openinfosecfoundation
33
34
INSTALL_TARGET=		install-strip
35
INSTALL_TARGET=		install-strip
35
TEST_TARGET=		check
36
TEST_TARGET=		check
36
37
38
CONFLICTS_INSTALL=	libhtp
39
40
SUB_FILES=	pkg-message
41
PLIST_SUB=	PORTVERSION=${DISTVERSION:C/-/_/g}
42
37
OPTIONS_DEFINE=		GEOIP IPFW NETMAP NSS PORTS_PCAP PRELUDE \
43
OPTIONS_DEFINE=		GEOIP IPFW NETMAP NSS PORTS_PCAP PRELUDE \
38
			PYTHON REDIS TESTS
44
			PYTHON REDIS TESTS
39
OPTIONS_DEFINE_amd64=	HYPERSCAN
45
OPTIONS_DEFINE_amd64=	HYPERSCAN
40
OPTIONS_DEFAULT=	IPFW NETMAP PYTHON
46
OPTIONS_DEFAULT=	IPFW NETMAP PYTHON
41
OPTIONS_SUB=		yes
42
47
43
OPTIONS_RADIO=		SCRIPTS
48
OPTIONS_RADIO=		SCRIPTS
44
OPTIONS_RADIO_SCRIPTS=	LUA LUAJIT
49
OPTIONS_RADIO_SCRIPTS=	LUA LUAJIT
45
50
51
OPTIONS_SUB=		yes
52
46
GEOIP_DESC=		GeoIP support
53
GEOIP_DESC=		GeoIP support
47
HYPERSCAN_DESC=		Hyperscan support
54
HYPERSCAN_DESC=		Hyperscan support
48
IPFW_DESC=		IPFW and IP Divert support for inline IDP
55
IPFW_DESC=		IPFW and IP Divert support for inline IDP
Lines 61-94 Link Here
61
GEOIP_CONFIGURE_ON=		--enable-geoip
68
GEOIP_CONFIGURE_ON=		--enable-geoip
62
69
63
HYPERSCAN_LIB_DEPENDS=		libhs.so:devel/hyperscan
70
HYPERSCAN_LIB_DEPENDS=		libhs.so:devel/hyperscan
64
HYPERSCAN_CONFIGURE_ON=		--with-libhs-includes=${LOCALBASE}/include \
65
				--with-libhs-libraries=${LOCALBASE}/lib
66
71
67
IPFW_CONFIGURE_ON=		--enable-ipfw
72
IPFW_CONFIGURE_ON=		--enable-ipfw
68
73
74
LUAJIT_LIB_DEPENDS=		libluajit-5.1.so:lang/luajit
75
LUAJIT_CONFIGURE_ON=		--enable-luajit
76
69
LUA_USES=			lua:51
77
LUA_USES=			lua:51
70
LUA_CONFIGURE_ON=		--enable-lua \
78
LUA_CONFIGURE_ON=		--enable-lua \
71
				--with-liblua-includes=${LUA_INCDIR} \
72
				--with-liblua-libraries=${LUA_LIBDIR}
73
79
74
LUAJIT_LIB_DEPENDS=		libluajit-5.1.so:lang/luajit
80
NETMAP_CONFIGURE_ENABLE=	netmap
75
LUAJIT_CONFIGURE_ON=		--enable-luajit
76
81
77
NSS_LIB_DEPENDS=		libnss3.so:security/nss \
82
NSS_LIB_DEPENDS=		libnss3.so:security/nss \
78
				libnspr4.so:devel/nspr
83
				libnspr4.so:devel/nspr
79
NSS_CONFIGURE_OFF=		--disable-nss --disable-nspr
84
NSS_CONFIGURE_OFF=		--disable-nss --disable-nspr
80
NSS_CONFIGURE_ON=		--with-libnss-includes=${LOCALBASE}/include/nss/nss \
81
				--with-libnss-libraries=${LOCALBASE}/lib \
82
				--with-libnspr-libraries=${LOCALBASE}/lib \
83
				--with-libnspr-includes=${LOCALBASE}/include/nspr
84
85
85
NETMAP_CONFIGURE_ENABLE=	netmap
86
87
PORTS_PCAP_LIB_DEPENDS=		libpcap.so.1:net/libpcap
86
PORTS_PCAP_LIB_DEPENDS=		libpcap.so.1:net/libpcap
88
PORTS_PCAP_CONFIGURE_ON=	--with-libpcap-includes=${LOCALBASE}/include \
89
				--with-libpcap-libraries=${LOCALBASE}/lib
90
PORTS_PCAP_CONFIGURE_OFF=	--with-libpcap-includes=/usr/include \
91
				--with-libpcap-libraries=/usr/lib
92
87
93
PRELUDE_LIB_DEPENDS=		libprelude.so:security/libprelude \
88
PRELUDE_LIB_DEPENDS=		libprelude.so:security/libprelude \
94
				libgnutls.so:security/gnutls \
89
				libgnutls.so:security/gnutls \
Lines 95-138 Link Here
95
				libgcrypt.so:security/libgcrypt \
90
				libgcrypt.so:security/libgcrypt \
96
				libgpg-error.so:security/libgpg-error \
91
				libgpg-error.so:security/libgpg-error \
97
				libltdl.so:devel/libltdl
92
				libltdl.so:devel/libltdl
93
PRELUDE_CONFIGURE_ON=		--with-libprelude-prefix=${LOCALBASE}
98
PRELUDE_CONFIGURE_ENABLE=	prelude
94
PRELUDE_CONFIGURE_ENABLE=	prelude
99
PRELUDE_CONFIGURE_ON=		--with-libprelude-prefix=${LOCALBASE}
100
95
96
PYTHON_BUILD_DEPENDS=		${PYTHON_RUN_DEPENDS}
97
PYTHON_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
101
PYTHON_USES=			python
98
PYTHON_USES=			python
102
PYTHON_USE=			PYTHON=py3kplist
99
PYTHON_USE=			PYTHON=py3kplist
103
PYTHON_CONFIGURE_ENABLE=	python
100
PYTHON_CONFIGURE_ENABLE=	python
104
PYTHON_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
105
PYTHON_BUILD_DEPENDS=		${PYTHON_RUN_DEPENDS}
106
101
107
REDIS_LIB_DEPENDS=		libhiredis.so:databases/hiredis
102
REDIS_LIB_DEPENDS=		libhiredis.so:databases/hiredis
108
REDIS_CONFIGURE_ON=		--enable-hiredis \
103
REDIS_CONFIGURE_ON=		--enable-hiredis \
109
				--with-libhiredis-includes=${LOCALBASE}/include \
110
				--with-libhiredis-libraries=${LOCALBASE}/lib
111
104
112
TESTS_CONFIGURE_ENABLE=		unittests
105
TESTS_CONFIGURE_ENABLE=		unittests
113
106
114
SUB_FILES=	pkg-message
115
116
CONFIGURE_ARGS+=--enable-gccprotect \
117
		--enable-bundled-htp \
118
		--with-libjansson-includes=${LOCALBASE}/include \
119
		--with-libjansson-libraries=${LOCALBASE}/lib \
120
		--with-libpcre-includes=${LOCALBASE}/include \
121
		--with-libpcre-libraries=${LOCALBASE}/lib \
122
		--with-libyaml-includes=${LOCALBASE}/include \
123
		--with-libyaml-libraries=${LOCALBASE}/lib \
124
		--with-libnet-includes=${LOCALBASE}/include \
125
		--with-libnet-libraries=${LOCALBASE}/lib \
126
		--with-libhtp-includes=${LOCALBASE}/include/ \
127
		--with-libhtp-libraries=${LOCALBASE}/lib \
128
	        --disable-gccmarch-native
129
130
pre-patch:
107
pre-patch:
131
	@${CP} ${FILESDIR}/ax_check_compile_flag.m4 ${WRKSRC}/m4
108
	@${CP} ${FILESDIR}/ax_check_compile_flag.m4 ${WRKSRC}/m4
132
109
133
post-patch-PYTHON-on:
110
post-patch-PYTHON-on:
134
	@${REINPLACE_CMD} -e "/AC_PATH_PROGS.*HAVE_PYTHON/ s/python[^,]*,/${PYTHON_VERSION},/g" \
111
	@${REINPLACE_CMD} -e "/AC_PATH_PROGS.*HAVE_PYTHON/ s/python[^,]*,/${PYTHON_VERSION},/g" \
135
		${WRKSRC}/configure.ac
112
       		${WRKSRC}/configure.ac
136
113
137
post-install:
114
post-install:
138
	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/log/suricata
115
	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/log/suricata
(-)security/suricata/files/patch-src_suricata-common.h (-2 / +2 lines)
Lines 1-5 Link Here
1
--- src/suricata-common.h-orig	2020-10-25 16:56:49.454317000 +0100
1
--- src/suricata-common.h.orig	2020-12-04 07:11:05 UTC
2
+++ src/suricata-common.h	2020-10-25 16:57:06.035153000 +0100
2
+++ src/suricata-common.h
3
@@ -36,6 +36,8 @@
3
@@ -36,6 +36,8 @@
4
 #define _GNU_SOURCE
4
 #define _GNU_SOURCE
5
 #define __USE_GNU
5
 #define __USE_GNU

Return to bug 252571