]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - suricata/suricata.nm
Merge remote-tracking branch 'maniacikarus/clamav'
[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.3
8 devel_ver = beta1
9 release = 0.1-%{devel_ver}
10 thisapp = %{name}-%{version}%{devel_ver}
11
12 groups = Networking/IDS
13 url = http://www.openinfosecfoundation.org/
14 license = GPLv2
15 summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
16
17 description
18 The suricata engine is not intended to just replace or emulate the
19 existing tools in the industry, but provides new ideas and
20 technologies.
21 end
22
23 source_dl = http://www.openinfosecfoundation.org/download/
24
25 build
26 requires
27 file-devel
28 libcap-ng-devel
29 libnfnetlink-devel
30 libnetfilter_queue-devel
31 libnet-devel
32 libpcap-devel
33 libyaml-devel
34 pcre-devel
35 pkg-config
36 zlib-devel>=1.2.5-2
37 end
38
39 configure_options += \
40 --enable-gccprotect \
41 --enable-nfqueue \
42 --disable-gccmarch-native \
43 --disable-static
44
45 install_cmds
46 mkdir -pv %{BUILDROOT}/etc
47 mkdir -pv %{BUILDROOT}/etc/suricata
48 mkdir -pv %{BUILDROOT}/etc/suricata/rules
49 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/suricata
50 mkdir -pv %{BUILDROOT}/var/log/suricata
51 end
52
53 end
54
55
56 packages
57 package %{name}
58
59 prerquires = systemd-units
60
61 configfiles
62 /etc/suricata/suricata.conf
63 end
64
65 script postin
66 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
67 end
68
69 script preun
70 /bin/systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
71 /bin/systemctl stop suricata.service >/dev/null 2>&1 || :
72 end
73
74 script postun
75 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
76 end
77
78 script postup
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
80 /bin/systemctl try-restart suricata.service >/dev/null 2>&1 || :
81 end
82
83 end
84
85 package %{name}-devel
86 template DEVEL
87 end
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
92 end