forked from duosecurity/duo_unix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
duo_unix.spec.in
107 lines (84 loc) · 2.99 KB
/
duo_unix.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
%define libname libduo
%define develname duo_unix-devel
Name: duo_unix
Version: @VERSION@
Release: 0
Epoch: 0
Summary: Duo two-factor authentication for Unix systems
Packager: S. Zachariah Sprackett <zac@sprackett.com>
Group: System Environment/Base
License: GPLV2
URL: http://www.duosecurity.com/
Source0: https://dl.duosecurity.com/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: pam openssl %{libname} = %{version}
BuildRequires: pam-devel openssl-devel pkgconfig
%description
Duo provides simple two-factor authentication as a service via:
1. Phone callback
2. SMS-delivered one-time passcodes
3. Duo mobile app to generate one-time passcodes
4. Duo mobile app for smartphone push authentication
5. Duo hardware token to generate one-time passcodes
This package allows an admin (or ordinary user) to quickly add Duo
authentication to any Unix login without setting up secondary user
accounts, directory synchronization, servers, or hardware.
%package -n %{libname}
Summary: Shared libraries for duo authentication
Group: System/Libraries
%description -n %{libname}
Shared libraries for duo_unix
%package -n pam_duo
Summary: A PAM module for duo authentication
Group: System/Libraries
Requires: %{libname} = %{version}
%description -n pam_duo
A PAM module for duo authentication
%package -n %{develname}
Summary: Development files and documentation for duo_unix
Group: System/Libraries
Requires: %{libname} = %{version}
%description -n %{develname}
Development files and documentation for duo_unix
%prep
%setup -q -n %{name}-%{version}
%build
%configure --with-pam=/%{_lib}/security --sysconfdir=%{_sysconfdir}/duo
make %{?_smp_mflags}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_duo.*a
%post -n libduo -p /sbin/ldconfig
%postun -n libduo -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS README CHANGES LICENSE
%dir %{_sysconfdir}/duo
%attr(0600, sshd, root) %config(noreplace) %{_sysconfdir}/duo/login_duo.conf
%attr(4755, root, root) %{_sbindir}/login_duo
%{_mandir}/man8/login_duo.8.gz
%files -n pam_duo
%dir %{_sysconfdir}/duo
/%{_lib}/security/pam_duo.so
%config(noreplace) %attr(640, root, root) %{_sysconfdir}/duo/pam_duo.conf
%{_mandir}/man8/pam_duo.8.gz
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libduo.so*
%files -n %{develname}
%defattr(-,root,root)
%{_libdir}/libduo.a
%{_libdir}/libduo.la
%{_includedir}/duo.h
%{_libdir}/pkgconfig/libduo.pc
%{_mandir}/man3/duo.3.gz
%changelog
* Fri Sep 1 2011 R.I.Pienaar <rip@devco.net> 0:1.8-0
- Fix the ownership of /etc/duo/login_duo.conf so that login as normal users work
* Tue Aug 23 2011 Mark Stanislav <mark.stanislav@gmail.com> 0:1.7-0
- Removed README.{pam,ssh} from build related to commit 0d65488ae3cae2e97484
* Thu May 12 2011 S. Zachariah Sprackett <zac@sprackett.com> 0:1.6-0
- Rolled initial RPM