]>
Commit | Line | Data |
---|---|---|
f2a23b56 PG |
1 | # TODO: |
2 | # - own UID/GID | |
3617ef69 | 3 | Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec) |
2e3a7f8e | 4 | Summary(pl.UTF-8): Proxy RADIUS, poza zwyczajowym transportem UDP, obsługujące także TLS (RadSec) |
3617ef69 | 5 | Name: radsecproxy |
7012eba1 | 6 | Version: 1.9.0 |
2e3a7f8e JB |
7 | Release: 1 |
8 | License: BSD | |
c3996559 | 9 | Group: Networking/Daemons/Radius |
2e3a7f8e | 10 | #Source0Download: https://github.com/radsecproxy/radsecproxy/releases |
450155b6 | 11 | Source0: https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz |
7012eba1 | 12 | # Source0-md5: 4d4df9b333d4e901b7fefcddeabc9ce0 |
c3996559 | 13 | Source1: %{name}.init |
8d228d83 | 14 | Source2: %{name}.logrotate |
aaedaf6f | 15 | Patch0: git.patch |
2e3a7f8e JB |
16 | URL: https://github.com/radsecproxy/radsecproxy |
17 | BuildRequires: autoconf >= 2.50 | |
97b0f481 | 18 | BuildRequires: automake |
e985cb9c | 19 | BuildRequires: nettle-devel |
54298ea9 | 20 | Requires(post,preun): /sbin/chkconfig |
2e3a7f8e | 21 | Requires: openssl >= 1.0.0b |
54298ea9 | 22 | Requires: rc-scripts >= 0.4.3.0 |
2e3a7f8e | 23 | Obsoletes: radsecproxy-upstart |
3617ef69 PG |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | radsecproxy is a generic RADIUS proxy that in addition to to usual | |
28 | RADIUS UDP transport, also supports TLS (RadSec). The aim is for the | |
29 | proxy to have sufficient features to be flexible, while at the same | |
30 | time to be small, efficient and easy to configure. Currently the | |
2e3a7f8e | 31 | executable on Linux is only about 48 kB, and it uses about 64 kB |
3617ef69 PG |
32 | (depending on the number of peers) while running. |
33 | ||
2e3a7f8e JB |
34 | %description -l pl.UTF-8 |
35 | radsecproxy to ogólne proxy RADIUS, które, poza zwyczajowym | |
36 | transportem UDP RADIUS, obsługuje także TLS (RadSec). Celem projektu | |
37 | jest dostarczenie wystarczająco dużej funkcjonalności, aby było | |
38 | elastyczne, a jednocześnie małe, wydajne i łatwe do skonfigurowania. | |
39 | Obecnie rozmiar binarki pod Linuksem to tylko około 48 kB, a w czasie | |
40 | działania zużywa około 64 kB (w zależności od liczby partnerów). | |
ea7330c0 | 41 | |
3617ef69 PG |
42 | %prep |
43 | %setup -q | |
aaedaf6f | 44 | %patch0 -p1 |
2e3a7f8e JB |
45 | |
46 | %{__rm} -r autom4te.cache | |
3617ef69 PG |
47 | |
48 | %build | |
714d9de1 PG |
49 | %{__aclocal} |
50 | %{__autoconf} | |
97b0f481 | 51 | %{__automake} |
2e3a7f8e JB |
52 | %configure |
53 | ||
3617ef69 PG |
54 | %{__make} |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
c3996559 | 58 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \ |
ea7330c0 | 59 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init} |
c3996559 | 60 | |
3617ef69 PG |
61 | %{__make} install \ |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
54298ea9 | 64 | cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
c3996559 | 65 | |
54298ea9 ER |
66 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
67 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
c3996559 | 68 | |
dac81cfd AO |
69 | install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5 |
70 | ||
3617ef69 | 71 | %clean |
231bfe5c | 72 | rm -rf $RPM_BUILD_ROOT |
3617ef69 | 73 | |
c3996559 PG |
74 | %post |
75 | /sbin/chkconfig --add %{name} | |
76 | %service %{name} restart "RADIUS secure proxy" | |
77 | ||
78 | %preun | |
79 | if [ "$1" = "0" ]; then | |
54298ea9 ER |
80 | %service %{name} stop |
81 | /sbin/chkconfig --del %{name} | |
c3996559 PG |
82 | fi |
83 | ||
3617ef69 PG |
84 | %files |
85 | %defattr(644,root,root,755) | |
2e3a7f8e | 86 | %doc AUTHORS ChangeLog LICENSE README THANKS |
c3996559 | 87 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf |
a275063f | 88 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
c3996559 | 89 | %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d |
3617ef69 | 90 | %attr(755,root,root) %{_sbindir}/radsecproxy |
dac81cfd | 91 | %attr(755,root,root) %{_bindir}/radsecproxy-conf |
f34dc1af | 92 | %attr(755,root,root) %{_bindir}/radsecproxy-hash |
c3996559 | 93 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
2e3a7f8e | 94 | %{_mandir}/man5/radsecproxy.conf.5* |
aaedaf6f JR |
95 | %{_mandir}/man8/radsecproxy.8* |
96 | %{_mandir}/man8/radsecproxy-hash.8* |