Name: sshguard Version: 1.5 Release: 6%{?dist} # The entire source code is BSD # except src/parser/* witch is GPLv2+ # except src/hash_32a.c witch is Public Domain License: BSD and GPLv2+ and Public Domain Group: Applications/Internet Summary: Network daemon log monitor Url: http://sshguard.sourceforge.net Packager: Christoph J. Thompson BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} Source0: http://downloads.sourceforge.net/sshguard/%{name}-%{version}.tar.bz2 Source1: sshguard.service Source2: sysconfig.sshguard Requires: iptables Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description Sshguard monitors network daemon logs. It detects attacks and blocks the attacker's address with a firewall rule. It supports many services out of the box, recognizes several log formats, and can operate many firewall systems. %prep %autosetup %build %configure --with-firewall=iptables %{__make} %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install make install-strip DESTDIR=$RPM_BUILD_ROOT install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/sshguard install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/sshguard.service %clean rm -rf %{buildroot} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %defattr(-,root,root,0755) %doc Changes README %config(noreplace) %{_sysconfdir}/sysconfig/sshguard %{_sbindir}/%{name} %{_mandir}/man8/%{name}.8* %{_unitdir}/sshguard.service %changelog * Sun Dec 21 2014 Christoph J. Thompson 1.5-6.fc21 - Update the spec for fedora 21 * Wed Oct 15 2014 Ryan Schlesinger ryan@aceofsales.com 1.5-5.amzn1 - Removed Log Validation as using it with the Log Sucker is discouraged * Tue Aug 16 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-4.fc16 - Fix multi licensed files * Tue Aug 16 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-3.fc16 - Added systemd script, - correct license. * Tue Aug 14 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-2.fc16 - Fix some spec issue. * Tue Aug 14 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-1.fc16 - Rebuilt for Red Hat based distro. * Wed Mar 02 2011 Tomasz Pawel Gajc 1.5-1mdv2011.0 + Revision: 641382 - update to new version 1.5 * Sat Sep 26 2009 Tomasz Pawel Gajc 1.4-1mdv2010.0 + Revision: 449478 - update to new version 1.4 * Sun Sep 20 2009 Thierry Vignaud 1.3-2mdv2010.0 + Revision: 445231 - rebuild * Sun Oct 12 2008 Tomasz Pawel Gajc 1.3-1mdv2009.1 + Revision: 293010 - update to new version 1.3 - update to new version 1.3 - update to new version 1.2 * Wed Jan 02 2008 Olivier Blin 1.1-0.beta3.1mdv2009.0 + Revision: 140851 - restore BuildRoot + Thierry Vignaud - kill re-definition of %%buildroot on Pixel's request * Fri Oct 26 2007 Tomasz Pawel Gajc 1.1-0.beta3.1mdv2008.1 + Revision: 102372 - new version * Tue May 22 2007 Tomasz Pawel Gajc 1.0-0.beta2.2mdv2008.0 + Revision: 29621 - fix group * Tue May 22 2007 Tomasz Pawel Gajc 1.0-0.beta2.1mdv2008.0 + Revision: 29613 - Import sshguard