]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - suricata/suricata.nm
suricata: Fix identation in makefile.
[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.1
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 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 mkdir -pv %{BUILDROOT}/var/log/suricata
48 end
49
50 end
51
52
53 packages
54 package %{name}
55
56 prerquires = systemd-units
57
58 configfiles
59 /etc/suricata/suricata.conf
60 end
61
62 script postin
63 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
64 end
65
66 script preun
67 /bin/systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
68 /bin/systemctl stop suricata.service >/dev/null 2>&1 || :
69 end
70
71 script postun
72 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
73 end
74
75 script postup
76 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
77 /bin/systemctl try-restart suricata.service >/dev/null 2>&1 || :
78 end
79
80 end
81
82 package %{name}-devel
83 template DEVEL
84 end
85 end