]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - suricata/suricata.nm
suricata: version 1.3.2 builds now with a separated libthp
[people/amarx/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 = 1.3.2
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 libcap-ng-devel
27 libnfnetlink-devel
28 libnetfilter_queue-devel
29 libnet-devel
30 libpcap-devel
31 libyaml-devel
32 libhtp-devel
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
44 install_cmds
45 mkdir -pv %{BUILDROOT}%{sysconfdir}
46 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
47 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
48 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
49 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
50 end
51
52 end
53
54
55 packages
56 package %{name}
57
58 prerquires = systemd-units
59
60 configfiles
61 %{BUILDROOT}%{sysconfdir}/suricata/suricata.conf
62 end
63
64 script postin
65 systemctl daemon-reload >/dev/null 2>&1 || :
66 end
67
68 script preun
69 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
70 systemctl stop suricata.service >/dev/null 2>&1 || :
71 end
72
73 script postun
74 systemctl daemon-reload >/dev/null 2>&1 || :
75 end
76
77 script postup
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 systemctl try-restart suricata.service >/dev/null 2>&1 || :
80 end
81
82 end
83
84 package %{name}-devel
85 template DEVEL
86 end
87
88 package %{name}-debuginfo
89 template DEBUGINFO
90 end
91 end