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