]> git.pld-linux.org Git - packages/pam-pam_ssh_agent_auth.git/commitdiff
up to 0.10.4 master
authormis <mistoo@gmail.com>
Wed, 26 Oct 2022 09:46:12 +0000 (11:46 +0200)
committermis <mistoo@gmail.com>
Wed, 26 Oct 2022 09:46:12 +0000 (11:46 +0200)
pam-pam_ssh_agent_auth.spec

index 8b645be3b78980fb307c8624c1e073f750daf540..88b1369fc92279d26cebd6f9183dc749dd7a2e7a 100644 (file)
@@ -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*
This page took 0.11623 seconds and 4 git commands to generate.