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