# $Id: pam_abl.spec 7981 2009-11-03 03:05:34Z dag $ # Authority: dag %define _libdir /%{_lib} Summary: PAM module for auto blacklisting Name: pam_abl %define version 0.2.3 %define release 2 Version: %{version} Release: %{release}%{?dist} License: GPL Group: System Environment/Base URL: http://www.hexten.net/sw/pam_abl/ Packager: Dag Wieers Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://dl.sf.net/sourceforge/pam-abl/pam_abl-%{version}.tar.gz Patch0: pam_abl-0.2.3-fixes.patch BuildRequires: pam-devel BuildRequires: libdb4-devel BuildRequires: libdb4 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Provides auto blacklisting of hosts and users responsible for repeated failed authentication attempts. Generally configured so that blacklisted users still see normal login prompts but are guaranteed to fail to authenticate. A command line tool allows to query or purge the databases used by the pam_abl module. %prep %setup -n %{name} %patch0 -p1 %build %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__install} -Dp -m0755 pam_abl.so %{buildroot}%{_libdir}/security/pam_abl.so %{__install} -Dp -m0644 conf/pam_abl.conf %{buildroot}%{_sysconfdir}/security/pam_abl.conf %{__install} -Dp -m0755 tools/pam_abl %{buildroot}%{_sbindir}/pam_abl %{__install} -Dp -m0644 doc/pam_abl.1 %{buildroot}%{_mandir}/man1/pam_abl.1 %{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/abl/ ### Clean up docdir %{__rm} -rf doc/{CVS,._pam_abl.html,pam_abl.1} %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS CONFIGURATION COPYING Copyright NEWS QUICKSTART THANKS %doc conf/system-auth doc/ %doc %{_mandir}/man1/pam_abl.1* %config(noreplace) %{_sysconfdir}/security/pam_abl.conf %{_libdir}/security/pam_abl.so %dir %{_localstatedir}/lib/abl/ %{_sbindir}/pam_abl %changelog * Fri Mar 18 2016 Jean-Philipe Pialasse 0.2.3-2.sme - import in SME [SME: 9341] - added release and version define - changed BuildRequires: db4-devel to libdb4-devel for EPEL7 * Mon Jan 15 2007 Dag Wieers - 0.2.3-1 - 7981+/dag - Initial package. (using DAR)