]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - suricata/suricata.nm
powertop: Update to 1.98.
[people/amarx/ipfire-3.x.git] / suricata / suricata.nm
CommitLineData
c6c409aa 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c6c409aa
SS
4###############################################################################
5
9ecbd3d5 6name = suricata
36a88dbb
CS
7version = 1.3
8devel_ver = beta1
9release = 0.1-%{devel_ver}
10thisapp = %{name}-%{version}%{devel_ver}
802ea3af
MT
11
12groups = Networking/IDS
13url = http://www.openinfosecfoundation.org/
14license = GPLv2
15summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
16
17description
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.
21end
22
23source_dl = http://www.openinfosecfoundation.org/download/
24
25build
26 requires
f5a18d67 27 file-devel
802ea3af
MT
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
40505164 36 zlib-devel>=1.2.5-2
802ea3af
MT
37 end
38
39 configure_options += \
40 --enable-gccprotect \
41 --enable-nfqueue \
ee9ea526 42 --disable-gccmarch-native \
802ea3af 43 --disable-static
272bae8f
CS
44
45 install_cmds
46 mkdir -pv %{BUILDROOT}/etc
ee9ea526
CS
47 mkdir -pv %{BUILDROOT}/etc/suricata
48 mkdir -pv %{BUILDROOT}/etc/suricata/rules
49 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/suricata
fb3daed3 50 mkdir -pv %{BUILDROOT}/var/log/suricata
272bae8f
CS
51 end
52
802ea3af
MT
53end
54
55
56packages
57 package %{name}
74e6b01b
CS
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
802ea3af 83 end
1f9bc2f0 84
802ea3af
MT
85 package %{name}-devel
86 template DEVEL
87 end
1f9bc2f0
MT
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
802ea3af 92end