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