]> git.pld-linux.org Git - SPECS.git/blob - radsecproxy.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.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 Summary(pl.UTF-8):      Proxy RADIUS, poza zwyczajowym transportem UDP, obsługujące także TLS (RadSec)
5 Name:           radsecproxy
6 Version:        1.8.1
7 Release:        1
8 License:        BSD
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
13 Source1:        %{name}.init
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)
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 %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).
40
41 %prep
42 %setup -q
43
44 %{__rm} -r autom4te.cache
45
46 %build
47 %{__aclocal}
48 %{__autoconf}
49 %{__automake}
50 %configure
51
52 %{__make}
53
54 %install
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}
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
63
64 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
65 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
66
67 install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/chkconfig --add %{name}
74 %service %{name} restart "RADIUS secure proxy"
75
76 %preun
77 if [ "$1" = "0" ]; then
78         %service %{name} stop
79         /sbin/chkconfig --del %{name}
80 fi
81
82 %files
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*
This page took 0.200985 seconds and 3 git commands to generate.