]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = suricata |
d9b6f3b5 SS |
7 | version = 2.0 |
8 | release = 1 | |
802ea3af MT |
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 | |
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 | |
d9b6f3b5 | 32 | libhtp-devel >= 0.5.5 |
802ea3af MT |
33 | pcre-devel |
34 | pkg-config | |
d9b6f3b5 | 35 | zlib-devel >= 1.2.5-2 |
802ea3af MT |
36 | end |
37 | ||
38 | configure_options += \ | |
39 | --enable-gccprotect \ | |
40 | --enable-nfqueue \ | |
ee9ea526 | 41 | --disable-gccmarch-native \ |
1c47d86a SS |
42 | --disable-static \ |
43 | --enable-non-bundled-htp \ | |
44 | --with-libhtp-includes=%{includedir}/htp \ | |
45 | --with-libhtp-libraries=%{libdir} | |
272bae8f CS |
46 | |
47 | install_cmds | |
fdf22456 KB |
48 | mkdir -pv %{BUILDROOT}%{sysconfdir} |
49 | mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata | |
50 | mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules | |
51 | cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata | |
52 | mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata | |
272bae8f CS |
53 | end |
54 | ||
802ea3af MT |
55 | end |
56 | ||
57 | ||
58 | packages | |
59 | package %{name} | |
74e6b01b CS |
60 | |
61 | prerquires = systemd-units | |
62 | ||
63 | configfiles | |
d9b6f3b5 | 64 | %{sysconfdir}/suricata/suricata.conf |
74e6b01b CS |
65 | end |
66 | ||
67 | script postin | |
fdf22456 | 68 | systemctl daemon-reload >/dev/null 2>&1 || : |
74e6b01b CS |
69 | end |
70 | ||
71 | script preun | |
fdf22456 KB |
72 | systemctl --no-reload disable suricata.service >/dev/null 2>&1 || : |
73 | systemctl stop suricata.service >/dev/null 2>&1 || : | |
74e6b01b CS |
74 | end |
75 | ||
76 | script postun | |
fdf22456 | 77 | systemctl daemon-reload >/dev/null 2>&1 || : |
74e6b01b CS |
78 | end |
79 | ||
80 | script postup | |
fdf22456 KB |
81 | systemctl daemon-reload >/dev/null 2>&1 || : |
82 | systemctl try-restart suricata.service >/dev/null 2>&1 || : | |
74e6b01b CS |
83 | end |
84 | ||
802ea3af | 85 | end |
1f9bc2f0 | 86 | |
802ea3af MT |
87 | package %{name}-devel |
88 | template DEVEL | |
89 | end | |
1f9bc2f0 MT |
90 | |
91 | package %{name}-debuginfo | |
92 | template DEBUGINFO | |
93 | end | |
802ea3af | 94 | end |