]> git.pld-linux.org Git - packages/radsecproxy.git/blob - radsecproxy.spec
202372d10699746c8c3bc5df39520bf5b39a9d95
[packages/radsecproxy.git] / radsecproxy.spec
1 # TODO:
2 # - own UID/GID
3 Summary:        RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
4 Name:           radsecproxy
5 Version:        1.6.8
6 Release:        1
7 License:        GPLv2+ or BSD-like
8 Group:          Networking/Daemons/Radius
9 Source0:        http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.xz
10 # Source0-md5:  36872d5411438fbc0da58e2f1fbbf180
11 Source1:        %{name}.init
12 Source2:        %{name}.logrotate
13 Patch0:         %{name}-docbook2x.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)
24
25 %description
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.
32
33 %package upstart
34 Summary:        Upstart job description for %{name}
35 Summary(pl.UTF-8):      Opis zadania Upstart dla %{name}
36 Group:          Daemons
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       upstart >= 0.6
39
40 %description upstart
41 Upstart job description for %{name}.
42
43 %description upstart -l pl.UTF-8
44 Opis zadania Upstart dla %{name}.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49
50 %build
51 %{__aclocal}
52 %{__autoconf}
53 %{__automake}
54 %configure \
55         --enable-fticks
56 # Some trash comes with tar:
57 %{__make} clean
58 %{__make}
59 # FIXME:
60 mv ______radsecproxy.conf\ ____.5 radsecproxy.conf.5
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
65         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
71
72 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
73 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
74
75 install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post
81 /sbin/chkconfig --add %{name}
82 %service %{name} restart "RADIUS secure proxy"
83
84 %preun
85 if [ "$1" = "0" ]; then
86         %service %{name} stop
87         /sbin/chkconfig --del %{name}
88 fi
89
90 %files
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog README
93 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
94 %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
95 %attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
96 %attr(755,root,root) %{_sbindir}/radsecproxy
97 %attr(755,root,root) %{_bindir}/radsecproxy-conf
98 %attr(755,root,root) %{_bindir}/radsecproxy-hash
99 %attr(754,root,root) /etc/rc.d/init.d/%{name}
100 %{_mandir}/man1/*
101 %{_mandir}/man5/*
This page took 0.098985 seconds and 2 git commands to generate.