1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/IDS
11 url = http://www.openinfosecfoundation.org/
13 summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
16 The suricata engine is not intended to just replace or emulate the
17 existing tools in the industry, but provides new ideas and
21 source_dl = http://www.openinfosecfoundation.org/download/
28 libnetfilter_queue-devel
38 configure_options += \
41 --disable-gccmarch-native \
43 --enable-non-bundled-htp \
44 --with-libhtp-includes=%{includedir}/htp \
45 --with-libhtp-libraries=%{libdir}
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
61 prerquires = systemd-units
64 %{BUILDROOT}%{sysconfdir}/suricata/suricata.conf
68 systemctl daemon-reload >/dev/null 2>&1 || :
72 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
73 systemctl stop suricata.service >/dev/null 2>&1 || :
77 systemctl daemon-reload >/dev/null 2>&1 || :
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 systemctl try-restart suricata.service >/dev/null 2>&1 || :
91 package %{name}-debuginfo