1 |
slords |
1.1 |
Name: pwauth |
2 |
|
|
Version: 2.3.10 |
3 |
wellsi |
1.2 |
Release: 4%{?dist} |
4 |
slords |
1.1 |
Summary: External plugin for mod_authnz_external authenticator |
5 |
|
|
|
6 |
|
|
Group: Applications/System |
7 |
|
|
License: BSD |
8 |
|
|
URL: http://code.google.com/p/pwauth/ |
9 |
|
|
Source0: http://pwauth.googlecode.com/files/%{name}-%{version}.tar.gz |
10 |
|
|
Source1: pwauth.pam |
11 |
|
|
Patch1: pwauth-strchr.patch |
12 |
|
|
Patch2: pwauth-config.patch |
13 |
|
|
|
14 |
|
|
BuildRequires: pam-devel |
15 |
wellsi |
1.2 |
Requires(pre): httpd, perl |
16 |
slords |
1.1 |
|
17 |
|
|
%description |
18 |
|
|
Pwauth is an authenticator designed to be used with mod_auth_external |
19 |
|
|
or mod_authnz_external and the Apache HTTP daemon to support reasonably |
20 |
|
|
secure web authentication out of the system password database on most |
21 |
|
|
versions of Unix. |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
%prep |
25 |
|
|
%setup -q |
26 |
|
|
|
27 |
|
|
%patch1 -p1 -b .strchr |
28 |
|
|
%patch2 -p1 -b .config |
29 |
|
|
|
30 |
|
|
%build |
31 |
|
|
sed -i.orig -r \ |
32 |
|
|
-e 's@^#define SHADOW_@/* &@' \ |
33 |
|
|
-e 's@^/\* (#define PAM[^_])@\1@' \ |
34 |
|
|
-e 's@^(#define (NOLOGIN_FILE|MIN_NOLOGIN_UID|SERVER_UIDS))@/* \1@' \ |
35 |
|
|
config.h |
36 |
|
|
|
37 |
|
|
sed -i.orig -r \ |
38 |
|
|
-e 's@^# (LIB=-lpam -ldl)@\1@' \ |
39 |
|
|
-e 's@^CFLAGS= \$\(LOCALFLAGS\)@# &@' \ |
40 |
|
|
Makefile |
41 |
|
|
|
42 |
|
|
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS} -Wno-comment" |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
%install |
46 |
|
|
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_sysconfdir}/pam.d |
47 |
|
|
|
48 |
|
|
install -p -m 4750 -t %{buildroot}%{_bindir} pwauth |
49 |
wellsi |
1.2 |
install -p -m 0750 -t %{buildroot}%{_bindir} unixgroup |
50 |
slords |
1.1 |
install -p -T %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/pwauth |
51 |
|
|
|
52 |
|
|
|
53 |
|
|
%clean |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
%files |
57 |
wellsi |
1.2 |
%defattr(-,root,root,-) |
58 |
|
|
%attr(4750,-,apache) %{_bindir}/pwauth |
59 |
|
|
%attr(0750,-,apache) %{_bindir}/unixgroup |
60 |
slords |
1.1 |
%attr(644,-,-) %{_sysconfdir}/pam.d/pwauth |
61 |
|
|
%doc CHANGES INSTALL README |
62 |
|
|
|
63 |
|
|
|
64 |
|
|
%changelog |
65 |
wellsi |
1.2 |
* Fri Mar 22 2013 Philip Prindeville <philipp@fedoraproject.org> 2.3.10-4 |
66 |
|
|
- Fix for bz#924881 |
67 |
|
|
|
68 |
slords |
1.1 |
* Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 2.3.10-1.sme |
69 |
|
|
- Update config file for SME Server [SME: 7319] |
70 |
|
|
|
71 |
|
|
* Fri May 05 2012 Philip Prindeville <philipp@fedoraproject.org> 2.3.10-1 |
72 |
|
|
- Initial checkin after Fedora packaging review. |
73 |
|
|
|
74 |
|
|
* Tue Apr 17 2012 Philip Prindeville <philipp@fedoraproject.org> 2.3.10-0 |
75 |
|
|
- Initial RPM packaging. |