]> git.pld-linux.org Git - packages/radsecproxy.git/blame - radsecproxy.spec
- sync with upstream git
[packages/radsecproxy.git] / radsecproxy.spec
CommitLineData
f2a23b56
PG
1# TODO:
2# - own UID/GID
3617ef69 3Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
2e3a7f8e 4Summary(pl.UTF-8): Proxy RADIUS, poza zwyczajowym transportem UDP, obsługujące także TLS (RadSec)
3617ef69 5Name: radsecproxy
7012eba1 6Version: 1.9.0
2e3a7f8e
JB
7Release: 1
8License: BSD
c3996559 9Group: Networking/Daemons/Radius
2e3a7f8e 10#Source0Download: https://github.com/radsecproxy/radsecproxy/releases
450155b6 11Source0: https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz
7012eba1 12# Source0-md5: 4d4df9b333d4e901b7fefcddeabc9ce0
c3996559 13Source1: %{name}.init
8d228d83 14Source2: %{name}.logrotate
aaedaf6f 15Patch0: git.patch
2e3a7f8e
JB
16URL: https://github.com/radsecproxy/radsecproxy
17BuildRequires: autoconf >= 2.50
97b0f481 18BuildRequires: automake
e985cb9c 19BuildRequires: nettle-devel
54298ea9 20Requires(post,preun): /sbin/chkconfig
2e3a7f8e 21Requires: openssl >= 1.0.0b
54298ea9 22Requires: rc-scripts >= 0.4.3.0
2e3a7f8e 23Obsoletes: radsecproxy-upstart
3617ef69
PG
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27radsecproxy is a generic RADIUS proxy that in addition to to usual
28RADIUS UDP transport, also supports TLS (RadSec). The aim is for the
29proxy to have sufficient features to be flexible, while at the same
30time to be small, efficient and easy to configure. Currently the
2e3a7f8e 31executable 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
35radsecproxy to ogólne proxy RADIUS, które, poza zwyczajowym
36transportem UDP RADIUS, obsługuje także TLS (RadSec). Celem projektu
37jest dostarczenie wystarczająco dużej funkcjonalności, aby było
38elastyczne, a jednocześnie małe, wydajne i łatwe do skonfigurowania.
39Obecnie rozmiar binarki pod Linuksem to tylko około 48 kB, a w czasie
40dział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
57rm -rf $RPM_BUILD_ROOT
c3996559 58install -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 64cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
c3996559 65
54298ea9
ER
66install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
67cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
c3996559 68
dac81cfd
AO
69install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
70
3617ef69 71%clean
231bfe5c 72rm -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
79if [ "$1" = "0" ]; then
54298ea9
ER
80 %service %{name} stop
81 /sbin/chkconfig --del %{name}
c3996559
PG
82fi
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*
This page took 0.038484 seconds and 5 git commands to generate.