]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - suricata/suricata.nm
Merge remote-tracking branch 'stevee/libnetfilter_queue'
[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
35448a5f
MT
7version = 1.2.1
8release = 2
802ea3af
MT
9
10groups = Networking/IDS
11url = http://www.openinfosecfoundation.org/
12license = GPLv2
13summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
14
15description
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.
19end
20
21source_dl = http://www.openinfosecfoundation.org/download/
22
23build
24 requires
f5a18d67 25 file-devel
802ea3af
MT
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
40505164 34 zlib-devel>=1.2.5-2
802ea3af
MT
35 end
36
37 configure_options += \
38 --enable-gccprotect \
39 --enable-nfqueue \
ee9ea526 40 --disable-gccmarch-native \
802ea3af 41 --disable-static
272bae8f
CS
42
43 install_cmds
44 mkdir -pv %{BUILDROOT}/etc
ee9ea526
CS
45 mkdir -pv %{BUILDROOT}/etc/suricata
46 mkdir -pv %{BUILDROOT}/etc/suricata/rules
47 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/suricata
fb3daed3 48 mkdir -pv %{BUILDROOT}/var/log/suricata
272bae8f
CS
49 end
50
802ea3af
MT
51end
52
53
54packages
55 package %{name}
74e6b01b
CS
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
802ea3af 81 end
1f9bc2f0 82
802ea3af
MT
83 package %{name}-devel
84 template DEVEL
85 end
1f9bc2f0
MT
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
802ea3af 90end