Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
blocksshd
> blocksshd.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File blocksshd.spec of Package blocksshd (Revision 3)
Currently displaying revision
3
,
show latest
Summary: Blocks brute force SSH attacks using iptables Name: blocksshd Version: 1.1 Release: 1 License: GPL Group: Applications/Internet URL: http://sourceforge.net/projects/blocksshd/ BuildArch: noarch Source: http://downloads.sourgeforge.net/blocksshd/blocksshd-%{version}.tar.bz2 Source1: blocksshd-suse.init Patch0: blocksshd-1.1.diff Patch1: blocksshd-suse-config.diff Requires: perl >= 5, /sbin/chkconfig %if 0%{?suse_version} Requires: perl-Net-Subnet %endif AutoReq: no BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description BlockSSHD is defense against SSHd brute force attacks. The Perl script is based on BruteForceBlocker v1.2.3. It dynamically adds IPTables rules in response to SSHd brute force attacks.. %prep %setup -q %if 0%{?suse_version} %patch0 -p1 %patch1 -p1 %endif %build %{__make} %install %{__rm} -rf "%{buildroot}" %{__make} install DESTDIR="%{buildroot}" \ BINDIR="%{_bindir}" \ SYSCONFDIR="%{_sysconfdir}" \ MANDIR="%{_mandir}" \ INITRDDIR="%{_initrddir}" \ MANCOMPRESS= \ INSTALL="%{__install} -p" %if 0%{?suse_version} install -D -m 755 -d %{buildroot}/etc/init.d/ install -m 755 %{S:1} %{buildroot}/etc/init.d/blocksshd %else %{__make} init DESTDIR="%{buildroot}" \ INITRDDIR="%{_initrddir}" %endif %clean %{__rm} -rf "%{buildroot}" %files %defattr(-,root,root,-) %doc CHANGELOG README CREDITS INSTALL %{_bindir}/blocksshd %{_sysconfdir}/blocksshd.conf %{_mandir}/man1/blocksshd.1* %{_initrddir}/blocksshd %config(noreplace) %{_sysconfdir}/blocksshd.conf %post /sbin/chkconfig --add blocksshd %preun /sbin/chkconfig --add blocksshd %changelog * Mon Jan 21 2008 Carsten Schoene <cs@linux-administrator.com> - adapted spec to SuSE distributions - added SuSE init script and configuration patch * Thu Apr 12 2007 James Turnbull <james@lovedthanlost.net> 1.1-1 - Added -p to spec file - Changed download source from dl to download - Changed description - Added preun option - Incremented blocksshd.spec to 1.1-1 * Tue Sep 26 2006 James Turnbull <james@lovedthanlost.net> 0.9 - Added sysconfdir installation * Sun Jul 30 2006 James Turnbull <james@lovedthanlost.net> 0.7 - Added init file support * Tue Jul 25 2006 James Turnbull <james@lovedthanlost.net> 0.7 - Spec file for Fedora Extras