]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - suricata/suricata.nm
suricata: Update to 2.0.
[people/ms/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 = 2.0
8 release = 1
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 libcap-ng-devel
27 libnfnetlink-devel
28 libnetfilter_queue-devel
29 libnet-devel
30 libpcap-devel
31 libyaml-devel
32 libhtp-devel >= 0.5.5
33 pcre-devel
34 pkg-config
35 zlib-devel >= 1.2.5-2
36 end
37
38 configure_options += \
39 --enable-gccprotect \
40 --enable-nfqueue \
41 --disable-gccmarch-native \
42 --disable-static \
43 --enable-non-bundled-htp \
44 --with-libhtp-includes=%{includedir}/htp \
45 --with-libhtp-libraries=%{libdir}
46
47 install_cmds
48 mkdir -pv %{BUILDROOT}%{sysconfdir}
49 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
50 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
51 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
52 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
53 end
54
55 end
56
57
58 packages
59 package %{name}
60
61 prerquires = systemd-units
62
63 configfiles
64 %{sysconfdir}/suricata/suricata.conf
65 end
66
67 script postin
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70
71 script preun
72 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
73 systemctl stop suricata.service >/dev/null 2>&1 || :
74 end
75
76 script postun
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 end
79
80 script postup
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 systemctl try-restart suricata.service >/dev/null 2>&1 || :
83 end
84
85 end
86
87 package %{name}-devel
88 template DEVEL
89 end
90
91 package %{name}-debuginfo
92 template DEBUGINFO
93 end
94 end