[packages/pam-pam_ssh_agent_auth] up to 0.10.4
mis
mis at pld-linux.org
Wed Oct 26 11:46:28 CEST 2022
commit 70f4bcde7ac6bd0353edcd68bb0660156fb23ee2
Author: mis <mistoo at gmail.com>
Date: Wed Oct 26 11:46:12 2022 +0200
up to 0.10.4
pam-pam_ssh_agent_auth.spec | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
---
diff --git a/pam-pam_ssh_agent_auth.spec b/pam-pam_ssh_agent_auth.spec
index 8b645be..88b1369 100644
--- a/pam-pam_ssh_agent_auth.spec
+++ b/pam-pam_ssh_agent_auth.spec
@@ -1,14 +1,18 @@
%define modulename pam_ssh_agent_auth
Summary: PAM module which permits authentication for arbitrary services via ssh-agent
Name: pam-%{modulename}
-Version: 0.9.3
+Version: 0.10.4
Release: 1
License: BSD
Group: Base
-Source0: http://downloads.sourceforge.net/pamsshagentauth/%{modulename}-%{version}.tar.bz2
-# Source0-md5: 9872ca1983e566ff5a89c240529e223d
-URL: http://pamsshagentauth.sourceforge.net/
+Source0: https://github.com/jbeverly/pam_ssh_agent_auth/archive/%{modulename}-%{version}.tar.gz
+# Source0-md5: 42f87c6cce9bcf8cfd46ed4605b779f5
+Source1: ed25519-donna.tar.bz2
+# Source1-md5: 0d1fc49d97aac784a48fd4ef7cc96c6f
+# cloned submodule https://github.com/floodyberry/ed25519-donna.git
+URL: https://github.com/jbeverly/pam_ssh_agent_auth
BuildRequires: pam-devel
+BuildRequires: perl-tools-pod
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _libexecdir /%{_lib}/security
@@ -19,10 +23,13 @@ ssh-agent. Written with sudo in mind, but like any auth PAM module,
can be used for for many purposes.
%prep
-%setup -q -n %{modulename}-%{version}
+%setup -q -n %{modulename}-%{modulename}-%{version} -a1
%build
-%configure
+%{__autoconf}
+%configure \
+ --without-openssl-header-check \
+ --with-mantype=man
%{__make}
%install
@@ -30,11 +37,18 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/security
+touch $RPM_BUILD_ROOT/etc/security/authorized_keys
+
+%post
+echo -e "add\nauth sufficient pam_ssh_agent_auth.so file=/etc/security/authorized_keys\n to pam configuation (sudo, su)"
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CONTRIBUTORS
+%doc README CONTRIBUTORS
+%attr(600,root,root) %config(noreplace) /etc/security/authorized_keys
%attr(755,root,root) /%{_lib}/security/%{modulename}.so
%{_mandir}/man8/pam_ssh_agent_auth.8*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pam-pam_ssh_agent_auth.git/commitdiff/70f4bcde7ac6bd0353edcd68bb0660156fb23ee2
More information about the pld-cvs-commit
mailing list