3 Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
7 License: GPLv2+ or BSD-like
8 Group: Networking/Daemons/Radius
9 Source0: https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 070ec707aa2f351bdc5387b474b58e7a
12 Source2: %{name}.logrotate
13 Patch0: %{name}-paths.patch
14 URL: http://software.uninett.no/radsecproxy/
15 # For manual creation:
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: docbook2X
19 BuildRequires: nettle-devel
20 Requires: openssl >= 1.0.0b
21 Requires(post,preun): /sbin/chkconfig
22 Requires: rc-scripts >= 0.4.3.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 radsecproxy is a generic RADIUS proxy that in addition to to usual
27 RADIUS UDP transport, also supports TLS (RadSec). The aim is for the
28 proxy to have sufficient features to be flexible, while at the same
29 time to be small, efficient and easy to configure. Currently the
30 executable on Linux is only about 48 Kb, and it uses about 64 Kb
31 (depending on the number of peers) while running.
34 Summary: Upstart job description for %{name}
35 Summary(pl.UTF-8): Opis zadania Upstart dla %{name}
37 Requires: %{name} = %{version}-%{release}
38 Requires: upstart >= 0.6
41 Upstart job description for %{name}.
43 %description upstart -l pl.UTF-8
44 Opis zadania Upstart dla %{name}.
56 # Some trash comes with tar:
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
63 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
66 DESTDIR=$RPM_BUILD_ROOT
68 cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
70 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
71 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
73 install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
76 rm -rf $RPM_BUILD_ROOT
79 /sbin/chkconfig --add %{name}
80 %service %{name} restart "RADIUS secure proxy"
83 if [ "$1" = "0" ]; then
85 /sbin/chkconfig --del %{name}
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog README
91 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
92 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
93 %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
94 %attr(755,root,root) %{_sbindir}/radsecproxy
95 %attr(755,root,root) %{_bindir}/radsecproxy-conf
96 %attr(755,root,root) %{_bindir}/radsecproxy-hash
97 %attr(754,root,root) /etc/rc.d/init.d/%{name}