From 0054a92d091312d530631fc0bbf743091398212a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:35:10 +0100 Subject: [PATCH] perl 5.16 mass rebuild [release 0.16-2mamba;Fri Nov 16 2012] --- README.md | 2 + perl-Authen-PAM-0.16-disable_login_test.patch | 30 ++++++++++ perl-Authen-PAM.spec | 60 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 perl-Authen-PAM-0.16-disable_login_test.patch create mode 100644 perl-Authen-PAM.spec diff --git a/README.md b/README.md index 9792791..7311882 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Authen-PAM +Authen::PAM - Perl interface to PAM library + diff --git a/perl-Authen-PAM-0.16-disable_login_test.patch b/perl-Authen-PAM-0.16-disable_login_test.patch new file mode 100644 index 0000000..b36d188 --- /dev/null +++ b/perl-Authen-PAM-0.16-disable_login_test.patch @@ -0,0 +1,30 @@ +diff -Nru Authen-PAM-0.16.orig/test.pl Authen-PAM-0.16/test.pl +--- Authen-PAM-0.16.orig/test.pl 2005-09-21 20:08:46.000000000 +0200 ++++ Authen-PAM-0.16/test.pl 2009-05-02 16:50:18.000000000 +0200 +@@ -120,26 +120,6 @@ + # skip(10, 'custom fail delay function is not supported by your PAM library'); + # } + +- if ($login_name) { +- print +- "---- Now, you may be prompted to enter the password of '$login_name'.\n"; +- } else{ +- print +- "---- Now, you may be prompted to enter a user name and a password.\n"; +- } +- +- $res = pam_authenticate($pamh, 0); +-# $res = pam_chauthtok($pamh); +- { +- my $old_failures = $failures; +- pam_ok(9, $pamh, $res); +- print +- "---- The failure of test 9 could be due to your PAM configuration\n", +- "---- or typing an incorrect password.\n" +- if ($res != PAM_SUCCESS()); +- $failures = $old_failures; # Authentication failures don't count +- } +- + # if (HAVE_PAM_FAIL_DELAY()) { + # ok(12, $res == $fd_status); + # } else { diff --git a/perl-Authen-PAM.spec b/perl-Authen-PAM.spec new file mode 100644 index 0000000..77c6d23 --- /dev/null +++ b/perl-Authen-PAM.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Authen-PAM +Version: 0.16 +Release: 2mamba +Summary: Authen::PAM - Perl interface to PAM library +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-%{version}.tar.gz +Patch0: %{name}-0.16-disable_login_test.patch +License: Artistic, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: pam-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Authen::PAM - Perl interface to PAM library + +%prep +%setup -q -n Authen-PAM-%{version} +%patch0 -p1 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +/usr/bin/tty && make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Fri Nov 16 2012 Silvan Calarco 0.16-2mamba +- perl 5.16 mass rebuild + +* Thu Apr 30 2009 Silvan Calarco 0.16-1mamba +- package created by autospec