!11 Update to 4.11

From: @chen-jan 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-04-19 01:19:41 +00:00 committed by Gitee
commit d6a60384a4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 81 additions and 37 deletions

View File

@ -0,0 +1,25 @@
From 929e1949936767484e623dc1f93f3e559f871958 Mon Sep 17 00:00:00 2001
From: Pat Riehecky <riehecky@fnal.gov>
Date: Mon, 2 May 2022 09:59:37 -0500
Subject: [PATCH] Drop module/long test
https://github.com/rra/pam-krb5/issues/25
---
tests/TESTS | 1 -
1 file changed, 1 deletion(-)
diff --git a/tests/TESTS b/tests/TESTS
index f9036b1..149f52f 100644
--- a/tests/TESTS
+++ b/tests/TESTS
@@ -27,7 +27,6 @@ module/cache-cleanup valgrind
module/expired valgrind
module/fast valgrind
module/fast-anon
-module/long valgrind
module/no-cache valgrind
module/pam-user valgrind
module/password valgrind
--
2.35.1

Binary file not shown.

Binary file not shown.

BIN
pam_krb5-4.11.tar.gz Normal file

Binary file not shown.

View File

@ -1,54 +1,73 @@
Name: pam_krb5
Version: 2.4.13
Release: 14
Summary: A Pluggable Authentication Module for Kerberos 5
License: BSD or LGPLv2+
URL: https://pagure.io/pam_krb5
Source0: https://releases.pagure.org/pam_krb5/pam_krb5-%{version}.tar.gz
Source1: https://releases.pagure.org/pam_krb5/pam_krb5-%{version}.tar.gz.sig
Name: pam_krb5
Version: 4.11
Release: 1
Summary: A Pluggable Authentication Module for Kerberos 5
License: MIT and BSD
Group: System/Libraries
URL: https://github.com/rra/pam-krb5
Source0: %{url}/archive/refs/tags/upstream/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0001: 0001-Drop-module-long-test.patch
BuildRequires: gcc krb5-devel pam-devel
%description
This PAM module supports authentication against a Kerberos KDC. It also
supports updating your Kerberos password.
Requires: pam
%package_help
BuildRequires: byacc
BuildRequires: flex
BuildRequires: gcc
BuildRequires: krb5-devel
BuildRequires: pam-devel
%prep
%autosetup -n %{name}-%{version} -p1
# for testing
BuildRequires: perl(lib)
BuildRequires: perl(Test::Pod)
%description
pam-krb5 is a Kerberos v5 PAM module for either MIT Kerberos or
Heimdal. It supports ticket refreshing by screen savers, configurable
authorization handling, authentication of non-local accounts for
network services, password changing, and password expiration, as well
as all the standard expected PAM features. It works correctly with
OpenSSH, even with ChallengeResponseAuthentication and
PrivilegeSeparation enabled, and supports extensive configuration
either by PAM options or in krb5.conf or both. PKINIT is supported
with recent versions of both MIT Kerberos and Heimdal and FAST is
supported with recent MIT Kerberos.
%prep
%setup -q -n pam-krb5-upstream-%{version}
%autopatch -p1
%build
%configure --with-default-use-shmem="sshd" --with-default-external="sshd sshd-rekey gssftp" \
--with-default-multiple-ccaches="su su-l" --with-default-no-cred-session="sshd"
make %{?_smp_mflags}
%configure --libdir=%{_libdir}
%make_build
%install
rm -rf %{buildroot}
%make_install INSTALL="install -p"
ln -s pam_krb5.so %{buildroot}/%{_libdir}/security/pam_krb5afs.so
sed -ri -e 's|/lib(64)?/|/\$LIB/|g' %{buildroot}/%{_mandir}/man*/pam_krb5*.8*
%delete_la
%make_install
%find_lang %{name}
# Make the paths jive to avoid conflicts on multilib systems.
sed -ri -e 's|/lib(64)?/|/\$LIB/|g' %{buildroot}/%{_mandir}/man*/pam_krb5*.5*
%pre
# cleanup
rm -f %{buildroot}/%{_libdir}/security/*.la
%preun
%check
# https://github.com/rra/pam-krb5/issues/25
# self-tests fail unless a default realm is set.
# That has to be done as someone with write access to /etc/
# which is not the mockbuild user.
#
%{__make} check
%post
%postun
%files -f %{name}.lang
%doc COPYING*
%{_bindir}/*
%files
%license LICENSE
%doc README NEWS TODO
%{_libdir}/security/*
%files help
%doc README* ChangeLog NEWS
%{_mandir}/*/*
%{_mandir}/man5/*
%changelog
* Tue Apr 18 2023 chenchen <chen_aka_jan@163.com> - 4.11-1
- Update to 4.11.
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.4.13-14
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git