summaryrefslogtreecommitdiffstats
path: root/mod_auth_xradius.spec
blob: c45c537ef04ea7074adf8077c495aa06df6f1daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
Summary:        Apache module that provides authentication against RADIUS Servers
Name:           mod_auth_xradius
Version:        0.4.6
Release:        16%{?dist}
Group:          System Environment/Daemons
URL:            http://www.outoforder.cc/projects/httpd/mod_auth_xradius/
License:        ASL 2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source0:        http://www.outoforder.cc/downloads/mod_auth_xradius/mod_auth_xradius-%{version}.tar.bz2
Source1:        auth_xradius.conf

Patch0:         %{name}-%{version}-memcache.patch
Patch1:         %{name}-%{version}-ha.patch
Patch2:         %{name}-%{version}-unixd.patch
Patch3:         %{name}-%{version}-share_libxradius.patch
Patch4:         %{name}-%{version}-libnss_libxradius.patch

BuildRequires:  apr-util-devel
BuildRequires:  httpd-devel
BuildRequires:  libtool
BuildRequires:  nspr-devel
BuildRequires:  nss-devel >= 3.12.5

%description
Apache module that provides high performance authentication against
RFC 2865 RADIUS Servers.

%package -n libxradius
Summary:        Development files for libxradius
Group:          Development/Libraries

%description -n libxradius
This is a library to generate RADIUS authentication request.

%package -n libxradius-devel
Summary:        Development files for libxradius
Group:          Development/Libraries
Requires:       libxradius%{?_isa} = %{version}-%{release}

%description -n libxradius-devel
The libradius-devel package contains libraries and header files for
developing applications that use libradius.

%prep
%setup -q
%patch0 -p1 -b .memcache
%patch1 -p1 -b .ha
# only for httpd 2.4
%patch2 -p1 -b .unixd
%patch3 -p1 -b .share_libxradius
%patch4 -p1 -b .libnss_libxradius

autoreconf -fvi


%build

%configure --localstatedir=/var/lib \
        --with-apxs=%{_sbindir}/apxs

make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install

# Install the radius library documentation
mkdir -p %{buildroot}%{_mandir}/man3
mkdir -p %{buildroot}%{_mandir}/man5
install -p -m644 libradius/libradius.3 %{buildroot}%{_mandir}/man3/libxradius.3
install -p -m644 libradius/radius.conf.5 %{buildroot}%{_mandir}/man5/radius.conf.5

# Install the apache module documentation
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_libdir}/httpd/modules
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/


%clean
rm -rf %{buildroot}

%post -n libxradius -p /sbin/ldconfig

%postun -n libxradius -p /sbin/ldconfig


%files
%doc README LICENSE NOTICE
%{_libdir}/httpd/modules/*.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf

%files -n libxradius
%defattr(-,root,root,-)
%doc README
%{_libdir}/libxradius.so.*
%{_mandir}/man5/radius.conf.5.*

%files -n libxradius-devel
%defattr(-,root,root,-)
%{_libdir}/libxradius.so
%{_mandir}/man3/libxradius.3.*
%{_includedir}/*.h


%changelog
* Thu Aug 23 2012 Remi Collet <RPMS@FamilleCollet.com> - 0.4.6-16
- backport for remi repo

* Mon Jul 23 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-16
- Fixed libxradius-devel requirement.

* Fri Jul 13 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-15
- Merged the 2 libnss patches into one.
- Fixed typo "xss_init_nss" in libnss patch.
- Removed _isa from BuildRequires.

* Fri Jul 13 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.4.6-14
- Fix NSS initialization routines.

* Thu Jun 14 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-13
- Added libnss patch to libxradius.

* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-12
- Added libnss patch to libxradius.

* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-11
- Update memcache patch.
- Update libxradius patch.
- Swap automake17 BR with libtool.
- Use autoreconf instead of the 1.7 patched autogen.sh.

* Mon Jun 11 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.4.6-10
- Rename subpackage to libxradius.
- Rename manpages and shared object.
- Properly link mod_auth_xradius with libxradius.
- Remove libradius makefile.

* Wed May 30 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-9
- First attempt in creating subpackages for libradius.
- Removed patch to rename radius calls.
- Removed macros for system commands.
- Used buildroot macro in a consistent way.

* Wed May 30 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-8
- Renamed libradius calls (xrad_ -> rad_) to use external library.

* Wed May 30 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-7
- Remove libmd BR.
- Reworked memcache patch.
- Updated patch for removing libradius.

* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-6
- Strip out libmd and libradius.
- Remove libradius from sources.
- Added conditional for Fedora >= 18 patch.

* Wed May 15 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-5
- Added Provides for bundled md5 library.
- Added BSD license for bundled libradius library.

* Wed May 15 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-4
- Modified default configuration pointing only to localhost.
- Added patch for rawhide.

* Wed May 10 2012 Simone Caronni <negativo17@gmail.com> - 0.4.6-3
- First build based off rutgers.edu package.

* Thu Jul 22 2010 Orcan Ogetbil <orcan@nbcs.rutgers.edu> 0.4.6-2.ru
- Fixes in the .conf file