]>
Commit | Line | Data |
---|---|---|
95a623af JB |
1 | %define apxs %{_sbindir}/apxs1 |
2 | Summary: RADIUS authentication module for the Apache 1.x webserver | |
3 | Summary(pl.UTF-8): Moduł uwierzytelniający RADIUS dla serwera WWW Apache 1.x | |
4 | Name: apache1-mod_auth_radius | |
5 | Version: 1.5.8 | |
6 | Release: 1 | |
7 | License: Apache-like | |
8 | Group: Networking/Daemons | |
9 | Source0: ftp://ftp.freeradius.org/pub/freeradius/mod_auth_radius-%{version}.tar | |
10 | # Source0-md5: 87d8ef049736254cc09f8b34667f0e59 | |
11 | Patch0: %{name}-conf.patch | |
12 | URL: http://www.freeradius.org/ | |
13 | BuildRequires: apache1-devel >= 1.3.33-2 | |
14 | BuildRequires: rpmbuild(macros) >= 1.228 | |
15 | Requires(triggerpostun): %{apxs} | |
16 | Requires(triggerpostun): grep | |
17 | Requires(triggerpostun): sed >= 4.0 | |
18 | Requires: apache1(EAPI) | |
19 | BuildRoot: %{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 | |
25 | This is the Apache RADIUS authentication module. It allows any Apache | |
26 | web-server to become a RADIUS client for authentication and accounting | |
27 | requests. You will, however, need to supply your own RADIUS server to | |
28 | perform the actual authentication. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Ten pakiet zawiera moduł uwierzytelniający RADIUS dla serwera WWW | |
32 | Apache. Pozwala dowolnemu serwerowi Apache stać się klientem RADIUS na | |
33 | potrzeby żądań uwierzytelniania i rozliczania. Aby wykonywać właściwe | |
34 | uwierzytelnianie 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 | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} | |
46 | ||
47 | install -p mod_auth_radius.so $RPM_BUILD_ROOT%{_pkglibdir} | |
48 | cp -p httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_auth_radius.conf | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
54 | %service apache restart | |
55 | ||
56 | %postun | |
57 | if [ "$1" = "0" ]; then | |
58 | %service -q apache restart | |
59 | fi | |
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 |