]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - suricata/suricata.nm
suricata: Enable hyperscan
[people/pmueller/ipfire-3.x.git] / suricata / suricata.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = suricata
7 version = 4.0.6
8 release = 2
9
10 groups = Networking/IDS
11 url = http://www.openinfosecfoundation.org/
12 license = GPLv2
13 summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
14
15 description
16 The suricata engine is not intended to just replace or emulate the
17 existing tools in the industry, but provides new ideas and
18 technologies.
19 end
20
21 source_dl = http://www.openinfosecfoundation.org/download/
22
23 build
24 requires
25 file-devel
26 hyperscan-devel
27 libcap-ng-devel
28 libnfnetlink-devel
29 libnetfilter_queue-devel
30 libnet-devel
31 libpcap-devel
32 libyaml-devel
33 libhtp-devel >= 0.5.20
34 pcre-devel
35 pkg-config
36 zlib-devel >= 1.2.5-2
37 end
38
39 configure_options += \
40 --enable-gccprotect \
41 --enable-nfqueue \
42 --disable-gccmarch-native \
43 --disable-static \
44 --enable-hyperscan \
45 --enable-non-bundled-htp \
46 --with-libhtp-includes=%{includedir}/htp \
47 --with-libhtp-libraries=%{libdir}
48
49 install_cmds
50 mkdir -pv %{BUILDROOT}%{sysconfdir}
51 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
52 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
53 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
54 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
55 end
56
57 end
58
59
60 packages
61 package %{name}
62
63 prerquires = systemd-units
64
65 configfiles
66 %{sysconfdir}/suricata/suricata.conf
67 end
68
69 script postin
70 systemctl daemon-reload >/dev/null 2>&1 || :
71 end
72
73 script preun
74 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
75 systemctl stop suricata.service >/dev/null 2>&1 || :
76 end
77
78 script postun
79 systemctl daemon-reload >/dev/null 2>&1 || :
80 end
81
82 script postup
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl try-restart suricata.service >/dev/null 2>&1 || :
85 end
86
87 end
88
89 package %{name}-devel
90 template DEVEL
91 end
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
96 end