!11 Update to 4.11
From: @chen-jan Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
d6a60384a4
25
0001-Drop-module-long-test.patch
Normal file
25
0001-Drop-module-long-test.patch
Normal 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
BIN
pam_krb5-4.11.tar.gz
Normal file
Binary file not shown.
@ -1,54 +1,73 @@
|
|||||||
Name: pam_krb5
|
Name: pam_krb5
|
||||||
Version: 2.4.13
|
Version: 4.11
|
||||||
Release: 14
|
Release: 1
|
||||||
Summary: A Pluggable Authentication Module for Kerberos 5
|
Summary: A Pluggable Authentication Module for Kerberos 5
|
||||||
License: BSD or LGPLv2+
|
License: MIT and BSD
|
||||||
URL: https://pagure.io/pam_krb5
|
Group: System/Libraries
|
||||||
Source0: https://releases.pagure.org/pam_krb5/pam_krb5-%{version}.tar.gz
|
URL: https://github.com/rra/pam-krb5
|
||||||
Source1: https://releases.pagure.org/pam_krb5/pam_krb5-%{version}.tar.gz.sig
|
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
|
Requires: pam
|
||||||
%description
|
|
||||||
This PAM module supports authentication against a Kerberos KDC. It also
|
|
||||||
supports updating your Kerberos password.
|
|
||||||
|
|
||||||
%package_help
|
BuildRequires: byacc
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: krb5-devel
|
||||||
|
BuildRequires: pam-devel
|
||||||
|
|
||||||
%prep
|
# for testing
|
||||||
%autosetup -n %{name}-%{version} -p1
|
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
|
%build
|
||||||
%configure --with-default-use-shmem="sshd" --with-default-external="sshd sshd-rekey gssftp" \
|
%configure --libdir=%{_libdir}
|
||||||
--with-default-multiple-ccaches="su su-l" --with-default-no-cred-session="sshd"
|
%make_build
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
%make_install
|
||||||
%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
|
|
||||||
|
|
||||||
%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
|
%files
|
||||||
|
%license LICENSE
|
||||||
%postun
|
%doc README NEWS TODO
|
||||||
|
|
||||||
%files -f %{name}.lang
|
|
||||||
%doc COPYING*
|
|
||||||
%{_bindir}/*
|
|
||||||
%{_libdir}/security/*
|
%{_libdir}/security/*
|
||||||
|
%{_mandir}/man5/*
|
||||||
%files help
|
|
||||||
%doc README* ChangeLog NEWS
|
|
||||||
%{_mandir}/*/*
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.4.13-14
|
||||||
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user