]> git.pld-linux.org Git - packages/pam-pam_ssh_agent_auth.git/blame - pam-pam_ssh_agent_auth.spec
up to 0.10.4
[packages/pam-pam_ssh_agent_auth.git] / pam-pam_ssh_agent_auth.spec
CommitLineData
95e28e37
ER
1%define modulename pam_ssh_agent_auth
2Summary: PAM module which permits authentication for arbitrary services via ssh-agent
3Name: pam-%{modulename}
70f4bcde 4Version: 0.10.4
95e28e37
ER
5Release: 1
6License: BSD
7Group: Base
70f4bcde 8Source0: https://github.com/jbeverly/pam_ssh_agent_auth/archive/%{modulename}-%{version}.tar.gz
9# Source0-md5: 42f87c6cce9bcf8cfd46ed4605b779f5
10Source1: ed25519-donna.tar.bz2
11# Source1-md5: 0d1fc49d97aac784a48fd4ef7cc96c6f
12# cloned submodule https://github.com/floodyberry/ed25519-donna.git
13URL: https://github.com/jbeverly/pam_ssh_agent_auth
95e28e37 14BuildRequires: pam-devel
70f4bcde 15BuildRequires: perl-tools-pod
95e28e37
ER
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%define _libexecdir /%{_lib}/security
19
20%description
21PAM module which permits authentication for arbitrary services via
22ssh-agent. Written with sudo in mind, but like any auth PAM module,
23can 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
36rm -rf $RPM_BUILD_ROOT
37%{__make} install \
38 DESTDIR=$RPM_BUILD_ROOT
39
70f4bcde 40install -d $RPM_BUILD_ROOT/etc/security
41touch $RPM_BUILD_ROOT/etc/security/authorized_keys
42
43%post
44echo -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
47rm -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*
This page took 0.103228 seconds and 4 git commands to generate.