]>
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 MT |
6 | name = suricata |
7 | version = 1.1 | |
7bcf28fd | 8 | release = 2 |
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 | |
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 | |
40505164 | 33 | zlib-devel>=1.2.5-2 |
802ea3af MT |
34 | end |
35 | ||
36 | configure_options += \ | |
37 | --enable-gccprotect \ | |
38 | --enable-nfqueue \ | |
ee9ea526 | 39 | --disable-gccmarch-native \ |
802ea3af | 40 | --disable-static |
272bae8f CS |
41 | |
42 | install_cmds | |
43 | mkdir -pv %{BUILDROOT}/etc | |
ee9ea526 CS |
44 | mkdir -pv %{BUILDROOT}/etc/suricata |
45 | mkdir -pv %{BUILDROOT}/etc/suricata/rules | |
46 | cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/suricata | |
fb3daed3 | 47 | mkdir -pv %{BUILDROOT}/var/log/suricata |
272bae8f CS |
48 | end |
49 | ||
802ea3af MT |
50 | end |
51 | ||
52 | ||
53 | packages | |
54 | package %{name} | |
74e6b01b CS |
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 | ||
802ea3af MT |
80 | end |
81 | ||
82 | package %{name}-devel | |
83 | template DEVEL | |
84 | end | |
85 | end |