]>
Commit | Line | Data |
---|---|---|
95e28e37 ER |
1 | %define modulename pam_ssh_agent_auth |
2 | Summary: PAM module which permits authentication for arbitrary services via ssh-agent | |
3 | Name: pam-%{modulename} | |
70f4bcde | 4 | Version: 0.10.4 |
95e28e37 ER |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Base | |
70f4bcde | 8 | Source0: https://github.com/jbeverly/pam_ssh_agent_auth/archive/%{modulename}-%{version}.tar.gz |
9 | # Source0-md5: 42f87c6cce9bcf8cfd46ed4605b779f5 | |
10 | Source1: ed25519-donna.tar.bz2 | |
11 | # Source1-md5: 0d1fc49d97aac784a48fd4ef7cc96c6f | |
12 | # cloned submodule https://github.com/floodyberry/ed25519-donna.git | |
13 | URL: https://github.com/jbeverly/pam_ssh_agent_auth | |
95e28e37 | 14 | BuildRequires: pam-devel |
70f4bcde | 15 | BuildRequires: perl-tools-pod |
95e28e37 ER |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %define _libexecdir /%{_lib}/security | |
19 | ||
20 | %description | |
21 | PAM module which permits authentication for arbitrary services via | |
22 | ssh-agent. Written with sudo in mind, but like any auth PAM module, | |
23 | can be used for for many purposes. | |
24 | ||
25 | %prep | |
70f4bcde | 26 | %setup -q -n %{modulename}-%{modulename}-%{version} -a1 |
95e28e37 ER |
27 | |
28 | %build | |
70f4bcde | 29 | %{__autoconf} |
30 | %configure \ | |
31 | --without-openssl-header-check \ | |
32 | --with-mantype=man | |
95e28e37 ER |
33 | %{__make} |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | %{__make} install \ | |
38 | DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
70f4bcde | 40 | install -d $RPM_BUILD_ROOT/etc/security |
41 | touch $RPM_BUILD_ROOT/etc/security/authorized_keys | |
42 | ||
43 | %post | |
44 | echo -e "add\nauth sufficient pam_ssh_agent_auth.so file=/etc/security/authorized_keys\n to pam configuation (sudo, su)" | |
45 | ||
95e28e37 ER |
46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
70f4bcde | 51 | %doc README CONTRIBUTORS |
52 | %attr(600,root,root) %config(noreplace) /etc/security/authorized_keys | |
95e28e37 ER |
53 | %attr(755,root,root) /%{_lib}/security/%{modulename}.so |
54 | %{_mandir}/man8/pam_ssh_agent_auth.8* |