1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 release = 0.1-%{devel_ver}
10 thisapp = %{name}-%{version}%{devel_ver}
12 groups = Networking/IDS
13 url = http://www.openinfosecfoundation.org/
15 summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
18 The suricata engine is not intended to just replace or emulate the
19 existing tools in the industry, but provides new ideas and
23 source_dl = http://www.openinfosecfoundation.org/download/
30 libnetfilter_queue-devel
39 configure_options += \
42 --disable-gccmarch-native \
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
59 prerquires = systemd-units
62 /etc/suricata/suricata.conf
66 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
70 /bin/systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
71 /bin/systemctl stop suricata.service >/dev/null 2>&1 || :
75 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
80 /bin/systemctl try-restart suricata.service >/dev/null 2>&1 || :
89 package %{name}-debuginfo