3 Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
4 Summary(pl.UTF-8): Proxy RADIUS, poza zwyczajowym transportem UDP, obsługujące także TLS (RadSec)
9 Group: Networking/Daemons/Radius
10 #Source0Download: https://github.com/radsecproxy/radsecproxy/releases
11 Source0: https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 500643689d9ea37f90fe1dd51f394c6b
14 Source2: %{name}.logrotate
15 URL: https://github.com/radsecproxy/radsecproxy
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: nettle-devel
19 Requires(post,preun): /sbin/chkconfig
20 Requires: openssl >= 1.0.0b
21 Requires: rc-scripts >= 0.4.3.0
22 Obsoletes: radsecproxy-upstart
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.
33 %description -l pl.UTF-8
34 radsecproxy to ogólne proxy RADIUS, które, poza zwyczajowym
35 transportem UDP RADIUS, obsługuje także TLS (RadSec). Celem projektu
36 jest dostarczenie wystarczająco dużej funkcjonalności, aby było
37 elastyczne, a jednocześnie małe, wydajne i łatwe do skonfigurowania.
38 Obecnie rozmiar binarki pod Linuksem to tylko około 48 kB, a w czasie
39 działania zużywa około 64 kB (w zależności od liczby partnerów).
44 %{__rm} -r autom4te.cache
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
57 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
60 DESTDIR=$RPM_BUILD_ROOT
62 cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
64 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
65 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
67 install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
70 rm -rf $RPM_BUILD_ROOT
73 /sbin/chkconfig --add %{name}
74 %service %{name} restart "RADIUS secure proxy"
77 if [ "$1" = "0" ]; then
79 /sbin/chkconfig --del %{name}
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog LICENSE README THANKS
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}/radsecproxy-conf
90 %attr(755,root,root) %{_bindir}/radsecproxy-hash
91 %attr(754,root,root) /etc/rc.d/init.d/%{name}
92 %{_mandir}/man1/radsecproxy.1*
93 %{_mandir}/man1/radsecproxy-hash.1*
94 %{_mandir}/man5/radsecproxy.conf.5*