]> git.ipfire.org Git - ipfire-3.x.git/blame - suricata/suricata.nm
suricata: Enable hyperscan
[ipfire-3.x.git] / suricata / suricata.nm
CommitLineData
c6c409aa 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c6c409aa
SS
4###############################################################################
5
9ecbd3d5 6name = suricata
e6c76881 7version = 4.0.6
870a92f8 8release = 2
802ea3af
MT
9
10groups = Networking/IDS
11url = http://www.openinfosecfoundation.org/
12license = GPLv2
13summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
14
15description
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.
19end
20
21source_dl = http://www.openinfosecfoundation.org/download/
22
23build
24 requires
f5a18d67 25 file-devel
870a92f8 26 hyperscan-devel
802ea3af
MT
27 libcap-ng-devel
28 libnfnetlink-devel
29 libnetfilter_queue-devel
30 libnet-devel
31 libpcap-devel
32 libyaml-devel
c8e7f1a7 33 libhtp-devel >= 0.5.20
802ea3af
MT
34 pcre-devel
35 pkg-config
d9b6f3b5 36 zlib-devel >= 1.2.5-2
802ea3af
MT
37 end
38
39 configure_options += \
40 --enable-gccprotect \
41 --enable-nfqueue \
ee9ea526 42 --disable-gccmarch-native \
1c47d86a 43 --disable-static \
870a92f8 44 --enable-hyperscan \
1c47d86a
SS
45 --enable-non-bundled-htp \
46 --with-libhtp-includes=%{includedir}/htp \
47 --with-libhtp-libraries=%{libdir}
272bae8f
CS
48
49 install_cmds
fdf22456
KB
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
272bae8f
CS
55 end
56
802ea3af
MT
57end
58
59
60packages
61 package %{name}
74e6b01b
CS
62
63 prerquires = systemd-units
64
65 configfiles
d9b6f3b5 66 %{sysconfdir}/suricata/suricata.conf
74e6b01b
CS
67 end
68
69 script postin
fdf22456 70 systemctl daemon-reload >/dev/null 2>&1 || :
74e6b01b
CS
71 end
72
73 script preun
fdf22456
KB
74 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
75 systemctl stop suricata.service >/dev/null 2>&1 || :
74e6b01b
CS
76 end
77
78 script postun
fdf22456 79 systemctl daemon-reload >/dev/null 2>&1 || :
74e6b01b
CS
80 end
81
82 script postup
fdf22456
KB
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl try-restart suricata.service >/dev/null 2>&1 || :
74e6b01b
CS
85 end
86
802ea3af 87 end
1f9bc2f0 88
802ea3af
MT
89 package %{name}-devel
90 template DEVEL
91 end
1f9bc2f0
MT
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
802ea3af 96end