]>
Commit | Line | Data |
---|---|---|
a275063f PG |
1 | #### |
2 | # TODO: | |
3 | # - docbook2x is required for manual build | |
3617ef69 PG |
4 | Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec) |
5 | Name: radsecproxy | |
a275063f | 6 | Version: 1.4 |
55a5fa03 | 7 | Release: 1 |
c3996559 PG |
8 | License: GPLv2+ or BSD-like |
9 | Group: Networking/Daemons/Radius | |
231bfe5c | 10 | Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz |
a275063f | 11 | # Source0-md5: 7b5248b2a7a133561cf685730824c893 |
c3996559 | 12 | Source1: %{name}.init |
8d228d83 | 13 | Source2: %{name}.logrotate |
3617ef69 | 14 | URL: http://software.uninett.no/radsecproxy/ |
a275063f PG |
15 | #For manual creation: |
16 | #BuildRequires: docbook2x-to-man | |
3617ef69 PG |
17 | BuildRequires: openssl-devel |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | radsecproxy is a generic RADIUS proxy that in addition to to usual | |
22 | RADIUS UDP transport, also supports TLS (RadSec). The aim is for the | |
23 | proxy to have sufficient features to be flexible, while at the same | |
24 | time to be small, efficient and easy to configure. Currently the | |
25 | executable on Linux is only about 48 Kb, and it uses about 64 Kb | |
26 | (depending on the number of peers) while running. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
f3d3fc05 | 32 | %configure |
3617ef69 PG |
33 | %{__make} |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
c3996559 | 37 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \ |
8d228d83 | 38 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} |
c3996559 | 39 | |
3617ef69 PG |
40 | %{__make} install \ |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
a275063f | 43 | install radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
c3996559 PG |
44 | |
45 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
8d228d83 | 46 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
c3996559 | 47 | |
3617ef69 | 48 | %clean |
231bfe5c | 49 | rm -rf $RPM_BUILD_ROOT |
3617ef69 | 50 | |
c3996559 PG |
51 | %post |
52 | /sbin/chkconfig --add %{name} | |
53 | %service %{name} restart "RADIUS secure proxy" | |
54 | ||
55 | %preun | |
56 | if [ "$1" = "0" ]; then | |
57 | %service %{name} stop | |
58 | /sbin/chkconfig --del %{name} | |
59 | fi | |
60 | ||
3617ef69 PG |
61 | %files |
62 | %defattr(644,root,root,755) | |
c3996559 PG |
63 | %doc AUTHORS ChangeLog README |
64 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf | |
a275063f | 65 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
c3996559 | 66 | %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d |
3617ef69 | 67 | %attr(755,root,root) %{_sbindir}/radsecproxy |
a275063f | 68 | %attr(755,root,root) %{_bindir}/catgconf |
c3996559 | 69 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
3617ef69 | 70 | %{_mandir}/man1/* |
a275063f PG |
71 | # With manual created: |
72 | #%{_mandir}/man5/* |