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