]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - own UID/GID | |
3 | Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec) | |
4 | Name: radsecproxy | |
5 | Version: 1.6.1 | |
6 | Release: 2 | |
7 | License: GPLv2+ or BSD-like | |
8 | Group: Networking/Daemons/Radius | |
9 | Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 841ec9b1492a7c7ae301a05ab035d85d | |
11 | Source1: %{name}.init | |
12 | Source2: %{name}.logrotate | |
13 | Patch0: %{name}-docbook2x.patch | |
14 | URL: http://software.uninett.no/radsecproxy/ | |
15 | # For manual creation: | |
16 | BuildRequires: docbook2X | |
17 | BuildRequires: nettle-devel | |
18 | Requires: openssl >= 1.0.0b | |
19 | Requires(post,preun): /sbin/chkconfig | |
20 | Requires: rc-scripts >= 0.4.3.0 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | radsecproxy is a generic RADIUS proxy that in addition to to usual | |
25 | RADIUS UDP transport, also supports TLS (RadSec). The aim is for the | |
26 | proxy to have sufficient features to be flexible, while at the same | |
27 | time to be small, efficient and easy to configure. Currently the | |
28 | executable on Linux is only about 48 Kb, and it uses about 64 Kb | |
29 | (depending on the number of peers) while running. | |
30 | ||
31 | %package upstart | |
32 | Summary: Upstart job description for %{name} | |
33 | Summary(pl.UTF-8): Opis zadania Upstart dla %{name} | |
34 | Group: Daemons | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: upstart >= 0.6 | |
37 | ||
38 | %description upstart | |
39 | Upstart job description for %{name}. | |
40 | ||
41 | %description upstart -l pl.UTF-8 | |
42 | Opis zadania Upstart dla %{name}. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | %patch0 -p1 | |
47 | ||
48 | %build | |
49 | %{__aclocal} | |
50 | %{__autoconf} | |
51 | %configure \ | |
52 | --enable-fticks | |
53 | # Some trash comes with tar: | |
54 | %{__make} clean | |
55 | %{__make} | |
56 | # FIXME: | |
57 | mv ______radsecproxy.conf\ ____.5 radsecproxy.conf.5 | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \ | |
62 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init} | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf | |
68 | ||
69 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
70 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
71 | ||
72 | install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5 | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post | |
78 | /sbin/chkconfig --add %{name} | |
79 | %service %{name} restart "RADIUS secure proxy" | |
80 | ||
81 | %preun | |
82 | if [ "$1" = "0" ]; then | |
83 | %service %{name} stop | |
84 | /sbin/chkconfig --del %{name} | |
85 | fi | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS ChangeLog README | |
90 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf | |
91 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
92 | %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d | |
93 | %attr(755,root,root) %{_sbindir}/radsecproxy | |
94 | %attr(755,root,root) %{_bindir}/radsecproxy-conf | |
95 | %attr(755,root,root) %{_bindir}/radsecproxy-hash | |
96 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
97 | %{_mandir}/man1/* | |
98 | %{_mandir}/man5/* |