]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - suricata/suricata.nm
Merge remote-tracking branch 'stevee/docbook-manpages'
[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 = 1.1beta3
8 release = 4
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 libcap-ng-devel
26 libnfnetlink-devel
27 libnetfilter_queue-devel
28 libnet-devel
29 libpcap-devel
30 libyaml-devel
31 pcre-devel
32 pkg-config
33 zlib-devel>=1.2.5-2
34 end
35
36 configure_options += \
37 --enable-gccprotect \
38 --enable-nfqueue \
39 --disable-gccmarch-native \
40 --disable-static
41
42 install_cmds
43 mkdir -pv %{BUILDROOT}/etc
44 mkdir -pv %{BUILDROOT}/etc/suricata
45 mkdir -pv %{BUILDROOT}/etc/suricata/rules
46 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/suricata
47 end
48
49 end
50
51
52 packages
53 package %{name}
54
55 prerquires = systemd-units
56
57 configfiles
58 /etc/suricata/suricata.conf
59 end
60
61 script postin
62 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
63 end
64
65 script preun
66 /bin/systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
67 /bin/systemctl stop suricata.service >/dev/null 2>&1 || :
68 end
69
70 script postun
71 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
72 end
73
74 script postup
75 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
76 /bin/systemctl try-restart suricata.service >/dev/null 2>&1 || :
77 end
78
79 end
80
81 package %{name}-devel
82 template DEVEL
83 end
84 end