]>
Commit | Line | Data |
---|---|---|
0d22083f | 1 | Summary: A Unix Web Authenticator |
2 | Name: pwauth | |
3 | Version: 2.3.2 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: System/Servers | |
7 | ###### Unknown group! | |
8 | URL: http://www.unixpapa.com/pwauth/ | |
9 | Source0: http://www.unixpapa.com/software/%{name}-%{version}.tar.gz | |
10 | Source1: %{name}.pam | |
11 | Patch1: %{name}-2.3.2-config.diff | |
12 | Patch2: %{name}-2.3.2-pam.diff | |
13 | Patch3: %{name}-2.3.2-server.diff | |
14 | BuildRequires: pam-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Pwauth is an authenticator designed to be used with mod_auth_external | |
19 | and the Apache HTTP Daemon to support reasonably secure web | |
20 | authentication out of the system password database on most versions of | |
21 | Unix. | |
22 | ||
23 | What pwauth actually does is very simple. Given a login and a | |
24 | password, it returns a status code indicating whether it is a valid | |
25 | login/password or not. It is normally installed as an suid-root | |
26 | program, so other programs (like Apache or a CGI program) can run it | |
27 | to check if a login/password is valid even though they don't | |
28 | themselves have read access to the system password database. | |
29 | ||
30 | %prep | |
31 | ||
32 | %setup -q | |
33 | %patch1 -p0 | |
34 | %patch2 -p0 | |
35 | %patch3 -p1 | |
36 | ||
37 | #bzcat %{SOURCE1} > pwauth.pam | |
38 | ||
39 | %build | |
40 | ||
41 | %{__make} CFLAGS="%{optflags}" LIB="-lpam -ldl" | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} | |
46 | ||
47 | install -d %{buildroot}%{_sysconfdir}/pam.d | |
48 | install -d %{buildroot}%{_bindir} | |
49 | ||
50 | install -m0755 pwauth %{buildroot}%{_bindir}/ | |
51 | install -m0755 unixgroup %{buildroot}%{_bindir}/ | |
52 | ||
53 | install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/pwauth | |
54 | install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/unixgroup | |
55 | ||
56 | %clean | |
57 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc CHANGES FORM_AUTH INSTALL README | |
62 | %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/pwauth | |
63 | %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/unixgroup | |
64 | %attr(04550,root,apache) %{_bindir}/pwauth | |
65 | %attr(04550,root,apache) %{_bindir}/unixgroup |