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
32 libhtp-devel >= 0.5.20
38 configure_options += \
41 --disable-gccmarch-native \
43 --enable-non-bundled-htp \
44 --with-libhtp-includes=%{includedir}/htp \
45 --with-libhtp-libraries=%{libdir}
47 # Enable hyperscan only on x86
48 if "%{DISTRO_PLATFORM}" == "x86"
49 requires += hyperscan-devel
50 configure_options += --enable-hyperscan
54 mkdir -pv %{BUILDROOT}%{sysconfdir}
55 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
56 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
57 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
58 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
67 prerquires = systemd-units
70 %{sysconfdir}/suricata/suricata.conf
74 systemctl daemon-reload >/dev/null 2>&1 || :
78 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
79 systemctl stop suricata.service >/dev/null 2>&1 || :
83 systemctl daemon-reload >/dev/null 2>&1 || :
87 systemctl daemon-reload >/dev/null 2>&1 || :
88 systemctl try-restart suricata.service >/dev/null 2>&1 || :
97 package %{name}-debuginfo