packages: pam-pam_abl/pam-pam_abl.spec, pam-pam_abl/pam-pam_abl-conf.patch ...

megabajt megabajt at pld-linux.org
Sun Apr 1 16:52:03 CEST 2012


Author: megabajt                     Date: Sun Apr  1 14:52:03 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 0.4.3

---- Files affected:
packages/pam-pam_abl:
   pam-pam_abl.spec (1.8 -> 1.9) , pam-pam_abl-conf.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pam-pam_abl/pam-pam_abl.spec
diff -u packages/pam-pam_abl/pam-pam_abl.spec:1.8 packages/pam-pam_abl/pam-pam_abl.spec:1.9
--- packages/pam-pam_abl/pam-pam_abl.spec:1.8	Wed Jul 15 17:02:33 2009
+++ packages/pam-pam_abl/pam-pam_abl.spec	Sun Apr  1 16:51:57 2012
@@ -1,21 +1,18 @@
 # $Revision$, $Date$
-#
-# TODO:
-#	- pass proper dirs to configure
-#	- cleanup install
-#
 %define 	modulename pam_abl
 Summary:	PAM abl module
 Summary(pl.UTF-8):	Moduł PAM automatycznie dopisujący do blacklisty
 Name:		pam-%{modulename}
-Version:	0.3.0
-Release:	0.1
-Epoch:		0
+Version:	0.4.3
+Release:	1
 License:	GPL v2
 Group:		Applications/System
-Source0:	http://pam-abl.deksai.com/downloads/pam-abl-%{version}.tar.bz2
-# Source0-md5:	76b00cc5a2d91a7419b673da51c8e775
+Source0:	http://downloads.sourceforge.net/pam-abl/pam-abl-%{version}.tar.bz2
+# Source0-md5:	62008b6eb8aa2c93bdb53c4f848bfb93
+Patch0:		%{name}-conf.patch
 URL:		http://pam-abl.deksai.com/
+BuildRequires:	autoconf >= 2.63
+BuildRequires:	automake
 BuildRequires:	db-devel
 BuildRequires:	pam-devel
 Obsoletes:	pam_abl
@@ -31,32 +28,44 @@
 
 %prep
 %setup -q -n pam-abl-%{version}
+%patch0 -p1
 
 %build
-%configure
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--with-pam-dir=/%{_lib}/security
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/security,/%{_lib}/security,%{_sbindir},/var/lib/abl}
+install -d $RPM_BUILD_ROOT{/etc/security,%{_sbindir},/var/lib/abl}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install pam_abl.so $RPM_BUILD_ROOT/%{_lib}/security
-install conf/pam_abl.conf $RPM_BUILD_ROOT/etc/security/pam_abl.conf
-install tools/pam_abl $RPM_BUILD_ROOT%{_sbindir}
+install conf/pam_abl.conf $RPM_BUILD_ROOT/etc/security
+
+%{__mv} $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/pam_abl
+
+# packaged in %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pam-abl
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/copying.html doc/index.html doc/pam_abl.html doc/style.css
+%doc AUTHORS ChangeLog NEWS README THANKS conf/system-auth
 %attr(755,root,root) /%{_lib}/security/pam_abl.so
 %attr(755,root,root) %{_sbindir}/pam_abl
 %config(noreplace) %verify(not md5 mtime size) /etc/security/pam_abl.conf
 %attr(700,root,root) %dir /var/lib/abl
+%{_mandir}/man1/pam_abl.1*
+%{_mandir}/man5/pam_abl.conf.5*
+%{_mandir}/man8/pam_abl.8*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +73,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2012/04/01 14:51:57  megabajt
+- updated to 0.4.3
+
 Revision 1.8  2009/07/15 15:02:33  baggins
 - 0.3.0
 - new maintainer

================================================================
Index: packages/pam-pam_abl/pam-pam_abl-conf.patch
diff -u /dev/null packages/pam-pam_abl/pam-pam_abl-conf.patch:1.1
--- /dev/null	Sun Apr  1 16:52:03 2012
+++ packages/pam-pam_abl/pam-pam_abl-conf.patch	Sun Apr  1 16:51:57 2012
@@ -0,0 +1,20 @@
+--- pam-abl-0.4.3/conf/pam_abl.conf.pld	2012-03-19 00:09:32.258679676 +0100
++++ pam-abl-0.4.3/conf/pam_abl.conf	2012-04-01 13:29:54.260171577 +0200
+@@ -1,10 +1,13 @@
+ # /etc/security/pam_abl.conf
+ # debug
+-host_db=/var/db/abl/hosts.db
++db_home=/var/lib/abl
++
++host_db=/var/lib/abl/hosts.db
+ host_purge=2d
+ host_rule=*:10/1h,30/1d
+-host_blk_cmd=iptables -I INPUT -s %h -j DROP
+-user_db=/var/db/abl/users.db
++#host_blk_cmd=/usr/sbin/iptables -I INPUT -s %h -j DROP
++
++user_db=/var/lib/abl/users.db
+ user_purge=2d
+ user_rule=!root:10/1h,30/1d
+-user_clr_cmd=echo This is a pointless command! user: %u host: %h service: %s >/dev/null
++#user_clr_cmd=echo This is a pointless command! user: %u host: %h service: %s >/dev/null
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/pam-pam_abl/pam-pam_abl.spec?r1=1.8&r2=1.9



More information about the pld-cvs-commit mailing list