/[smeserver]/rpms/pwauth/sme9/pwauth.spec
ViewVC logotype

Contents of /rpms/pwauth/sme9/pwauth.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Mar 6 22:16:46 2013 UTC (11 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: pwauth-2_3_10-1_el6_sme
Initial import

1 Name: pwauth
2 Version: 2.3.10
3 Release: 1%{?dist}
4 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 Requires(pre): httpd
16
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 install -p -T %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/pwauth
50
51
52 %clean
53
54
55 %files
56 %attr(4750,root,apache) %{_bindir}/pwauth
57 %attr(644,-,-) %{_sysconfdir}/pam.d/pwauth
58 %doc CHANGES INSTALL README
59
60
61 %changelog
62 * Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 2.3.10-1.sme
63 - Update config file for SME Server [SME: 7319]
64
65 * Fri May 05 2012 Philip Prindeville <philipp@fedoraproject.org> 2.3.10-1
66 - Initial checkin after Fedora packaging review.
67
68 * Tue Apr 17 2012 Philip Prindeville <philipp@fedoraproject.org> 2.3.10-0
69 - Initial RPM packaging.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed