]> git.pld-linux.org Git - packages/apache1-mod_auth_radius.git/blame - apache1-mod_auth_radius.spec
- initial
[packages/apache1-mod_auth_radius.git] / apache1-mod_auth_radius.spec
CommitLineData
95a623af
JB
1%define apxs %{_sbindir}/apxs1
2Summary: RADIUS authentication module for the Apache 1.x webserver
3Summary(pl.UTF-8): Moduł uwierzytelniający RADIUS dla serwera WWW Apache 1.x
4Name: apache1-mod_auth_radius
5Version: 1.5.8
6Release: 1
7License: Apache-like
8Group: Networking/Daemons
9Source0: ftp://ftp.freeradius.org/pub/freeradius/mod_auth_radius-%{version}.tar
10# Source0-md5: 87d8ef049736254cc09f8b34667f0e59
11Patch0: %{name}-conf.patch
12URL: http://www.freeradius.org/
13BuildRequires: apache1-devel >= 1.3.33-2
14BuildRequires: rpmbuild(macros) >= 1.228
15Requires(triggerpostun): %{apxs}
16Requires(triggerpostun): grep
17Requires(triggerpostun): sed >= 4.0
18Requires: apache1(EAPI)
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
22%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
23
24%description
25This is the Apache RADIUS authentication module. It allows any Apache
26web-server to become a RADIUS client for authentication and accounting
27requests. You will, however, need to supply your own RADIUS server to
28perform the actual authentication.
29
30%description -l pl.UTF-8
31Ten pakiet zawiera moduł uwierzytelniający RADIUS dla serwera WWW
32Apache. Pozwala dowolnemu serwerowi Apache stać się klientem RADIUS na
33potrzeby żądań uwierzytelniania i rozliczania. Aby wykonywać właściwe
34uwierzytelnianie potrzebny jest własny serwer RADIUS.
35
36%prep
37%setup -q -n mod_auth_radius-%{version}
38%patch0 -p1
39
40%build
41%{apxs} -c mod_auth_radius.c -o mod_auth_radius.so
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
46
47install -p mod_auth_radius.so $RPM_BUILD_ROOT%{_pkglibdir}
48cp -p httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_auth_radius.conf
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%post
54%service apache restart
55
56%postun
57if [ "$1" = "0" ]; then
58 %service -q apache restart
59fi
60
61%files
62%defattr(644,root,root,755)
63%doc README htaccess index.html
64%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/90_mod_auth_radius.conf
65%attr(755,root,root) %{_pkglibdir}/mod_auth_radius.so
This page took 0.080905 seconds and 4 git commands to generate.