]> git.pld-linux.org Git - packages/pwauth.git/blame - pwauth.spec
- adapter, unify
[packages/pwauth.git] / pwauth.spec
CommitLineData
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 4Summary: A Unix Web Authenticator
5Name: pwauth
6Version: 2.3.2
7Release: 1
8License: BSD
2bae60b2 9Group: Daemons
0d22083f 10URL: http://www.unixpapa.com/pwauth/
11Source0: http://www.unixpapa.com/software/%{name}-%{version}.tar.gz
12Source1: %{name}.pam
13Patch1: %{name}-2.3.2-config.diff
14Patch2: %{name}-2.3.2-pam.diff
15Patch3: %{name}-2.3.2-server.diff
16BuildRequires: pam-devel
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Pwauth is an authenticator designed to be used with mod_auth_external
21and the Apache HTTP Daemon to support reasonably secure web
22authentication out of the system password database on most versions of
23Unix.
24
25What pwauth actually does is very simple. Given a login and a
26password, it returns a status code indicating whether it is a valid
27login/password or not. It is normally installed as an suid-root
28program, so other programs (like Apache or a CGI program) can run it
29to check if a login/password is valid even though they don't
30themselves 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
46rm -rf $RPM_BUILD_ROOT
2bae60b2 47install -d $RPM_BUILD_ROOT{%{_sysconfdir}/pam.d,%{_bindir}}
0d22083f 48
2bae60b2
ER
49install pwauth $RPM_BUILD_ROOT%{_bindir}
50install unixgroup $RPM_BUILD_ROOT%{_bindir}
51install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/pwauth
52install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/unixgroup
0d22083f 53
54%clean
2bae60b2 55rm -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
This page took 0.058969 seconds and 4 git commands to generate.