3 # - docbook2x is required for manual build
4 Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
8 License: GPLv2+ or BSD-like
9 Group: Networking/Daemons/Radius
10 Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz
11 # Source0-md5: 7b5248b2a7a133561cf685730824c893
13 Source2: %{name}.logrotate
14 Source3: %{name}.upstart
15 URL: http://software.uninett.no/radsecproxy/
17 #BuildRequires: docbook2x-to-man
18 BuildRequires: openssl-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 radsecproxy is a generic RADIUS proxy that in addition to to usual
23 RADIUS UDP transport, also supports TLS (RadSec). The aim is for the
24 proxy to have sufficient features to be flexible, while at the same
25 time to be small, efficient and easy to configure. Currently the
26 executable on Linux is only about 48 Kb, and it uses about 64 Kb
27 (depending on the number of peers) while running.
30 Summary: Upstart job description for %{name}
31 Summary(pl.UTF-8): Opis zadania Upstart dla %{name}
33 Requires: %{name} = %{version}-%{release}
34 Requires: upstart >= 0.6
37 Upstart job description for %{name}.
39 %description upstart -l pl.UTF-8
40 Opis zadania Upstart dla %{name}.
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
52 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
55 DESTDIR=$RPM_BUILD_ROOT
57 install radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
59 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
60 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
61 install %{SOURCE3} $RPM_BUILD_ROOT/etc/init/%{name}.conf
64 rm -rf $RPM_BUILD_ROOT
67 /sbin/chkconfig --add %{name}
68 %service %{name} restart "RADIUS secure proxy"
71 if [ "$1" = "0" ]; then
73 /sbin/chkconfig --del %{name}
80 %upstart_postun %{name}
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog README
85 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
86 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
87 %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
88 %attr(755,root,root) %{_sbindir}/radsecproxy
89 %attr(755,root,root) %{_bindir}/catgconf
90 %attr(754,root,root) /etc/rc.d/init.d/%{name}
92 # With manual created:
96 %defattr(644,root,root,755)
97 %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf