File sshguard.spec of Package sshguard

Name:		sshguard
Version:	1.5
Release:	1%{?_dist}
Summary:	Anti-brute force monitor and blocker
Source0:	%{name}-%{version}.tar.bz2

License:	MIT
Group:		Network
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	iptables-devel


%description
Sshguard is a small program that monitors services running on your machine from the log files. When it detects that someone is doing something bad to a service, sshguard blocks the IP address of the bad guy with a firewall rule.

%prep
%setup -q

%build
./configure --with-firewall=iptables --prefix=/usr
make %{?_smp_mflags}

%clean
rm -fr %{buildroot}

%install
make install DESTDIR=%{buildroot}

%files
%defattr(-,root,root,-)
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8.gz

%changelog
* Tue Nov 08 2011 Daniel Cordero <danielcordero@lavabit.com> 1.5-1
Initial commit