[packages/pam-pam_abl] upgraded to 0.6.0

gotar gotar at pld-linux.org
Sun Nov 6 21:53:14 CET 2016


commit 46c6e8a35de5726d149a7f83db9fffe709889725
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Sun Nov 6 21:53:00 2016 +0100

    upgraded to 0.6.0

 pam-pam_abl-conf.patch | 20 --------------------
 pam-pam_abl.spec       | 44 +++++++++++++++++---------------------------
 2 files changed, 17 insertions(+), 47 deletions(-)
---
diff --git a/pam-pam_abl.spec b/pam-pam_abl.spec
index 08c0283..2cbc772 100644
--- a/pam-pam_abl.spec
+++ b/pam-pam_abl.spec
@@ -2,17 +2,15 @@
 Summary:	PAM abl module
 Summary(pl.UTF-8):	Moduł PAM automatycznie dopisujący do blacklisty
 Name:		pam-%{modulename}
-Version:	0.4.3
-Release:	3
-License:	GPL v2
+Version:	0.6.0
+Release:	1
+License:	GPL v2+
 Group:		Applications/System
-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
+Source0:	http://downloads.sourceforge.net/pam-abl/pam-abl-%{version}.tar.gz
+# Source0-md5:	62e02b88cf2da09eeea101a99f69f1ee
+URL:		http://pam-abl.sourceforge.net/
+BuildRequires:	cmake
+BuildRequires:	db-devel >= 4.4.20
 BuildRequires:	pam-devel
 Obsoletes:	pam_abl
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -26,42 +24,34 @@ Moduł PAM automatycznie dopisujący do blacklisty hosty i użytkowników
 po wykryciu powtarzających się błędów uwierzytelnienia.
 
 %prep
-%setup -q -n pam-abl-%{version}
-%patch0 -p1
+%setup -q -c -n pam-abl-%{version}
 
 %build
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-	--with-pam-dir=/%{_lib}/security
+%cmake .
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/security,%{_sbindir},/var/lib/abl}
+install -d $RPM_BUILD_ROOT{/etc/security,/%{_lib}/security,%{_sbindir},/var/lib/abl}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install conf/pam_abl.conf $RPM_BUILD_ROOT/etc/security
+install -p 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
+%{__mv} $RPM_BUILD_ROOT{%{_prefix}/lib,/%{_lib}}/security/pam_abl.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS conf/system-auth
+%doc Changelog.txt README doc/pam_abl.*.txt
 %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*
+#%%{_mandir}/man1/pam_abl.1*
+#%%{_mandir}/man5/pam_abl.conf.5*
+#%%{_mandir}/man8/pam_abl.8*
diff --git a/pam-pam_abl-conf.patch b/pam-pam_abl-conf.patch
deleted file mode 100644
index f22d9f0..0000000
--- a/pam-pam_abl-conf.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pam-pam_abl.git/commitdiff/46c6e8a35de5726d149a7f83db9fffe709889725



More information about the pld-cvs-commit mailing list