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/
29 libnetfilter_queue-devel
33 libhtp-devel >= 0.5.20
39 configure_options += \
42 --disable-gccmarch-native \
45 --enable-non-bundled-htp \
46 --with-libhtp-includes=%{includedir}/htp \
47 --with-libhtp-libraries=%{libdir}
50 mkdir -pv %{BUILDROOT}%{sysconfdir}
51 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
52 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
53 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
54 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
63 prerquires = systemd-units
66 %{sysconfdir}/suricata/suricata.conf
70 systemctl daemon-reload >/dev/null 2>&1 || :
74 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
75 systemctl stop suricata.service >/dev/null 2>&1 || :
79 systemctl daemon-reload >/dev/null 2>&1 || :
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl try-restart suricata.service >/dev/null 2>&1 || :
93 package %{name}-debuginfo