]> git.pld-linux.org Git - packages/radsecproxy.git/blame - radsecproxy.spec
- up to 1.7.1
[packages/radsecproxy.git] / radsecproxy.spec
CommitLineData
f2a23b56
PG
1# TODO:
2# - own UID/GID
3617ef69
PG
3Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
4Name: radsecproxy
450155b6 5Version: 1.7.1
fec0203d 6Release: 1
c3996559
PG
7License: GPLv2+ or BSD-like
8Group: Networking/Daemons/Radius
450155b6
AO
9Source0: https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 070ec707aa2f351bdc5387b474b58e7a
c3996559 11Source1: %{name}.init
8d228d83 12Source2: %{name}.logrotate
3617ef69 13URL: http://software.uninett.no/radsecproxy/
54298ea9 14# For manual creation:
97b0f481
JK
15BuildRequires: autoconf
16BuildRequires: automake
714d9de1 17BuildRequires: docbook2X
e985cb9c 18BuildRequires: nettle-devel
80e19a82 19Requires: openssl >= 1.0.0b
54298ea9
ER
20Requires(post,preun): /sbin/chkconfig
21Requires: rc-scripts >= 0.4.3.0
3617ef69
PG
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25radsecproxy is a generic RADIUS proxy that in addition to to usual
26RADIUS UDP transport, also supports TLS (RadSec). The aim is for the
27proxy to have sufficient features to be flexible, while at the same
28time to be small, efficient and easy to configure. Currently the
29executable on Linux is only about 48 Kb, and it uses about 64 Kb
30(depending on the number of peers) while running.
31
ea7330c0
PG
32%package upstart
33Summary: Upstart job description for %{name}
34Summary(pl.UTF-8): Opis zadania Upstart dla %{name}
35Group: Daemons
36Requires: %{name} = %{version}-%{release}
37Requires: upstart >= 0.6
38
39%description upstart
40Upstart job description for %{name}.
41
42%description upstart -l pl.UTF-8
43Opis zadania Upstart dla %{name}.
44
3617ef69
PG
45%prep
46%setup -q
47
48%build
714d9de1
PG
49%{__aclocal}
50%{__autoconf}
97b0f481 51%{__automake}
f34dc1af
PG
52%configure \
53 --enable-fticks
54# Some trash comes with tar:
55%{__make} clean
3617ef69
PG
56%{__make}
57
58%install
59rm -rf $RPM_BUILD_ROOT
c3996559 60install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
ea7330c0 61 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
c3996559 62
3617ef69
PG
63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
65
54298ea9 66cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
c3996559 67
54298ea9
ER
68install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
69cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
c3996559 70
dac81cfd
AO
71install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
72
3617ef69 73%clean
231bfe5c 74rm -rf $RPM_BUILD_ROOT
3617ef69 75
c3996559
PG
76%post
77/sbin/chkconfig --add %{name}
78%service %{name} restart "RADIUS secure proxy"
79
80%preun
81if [ "$1" = "0" ]; then
54298ea9
ER
82 %service %{name} stop
83 /sbin/chkconfig --del %{name}
c3996559
PG
84fi
85
3617ef69
PG
86%files
87%defattr(644,root,root,755)
c3996559
PG
88%doc AUTHORS ChangeLog README
89%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
a275063f 90%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
c3996559 91%attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
3617ef69 92%attr(755,root,root) %{_sbindir}/radsecproxy
dac81cfd 93%attr(755,root,root) %{_bindir}/radsecproxy-conf
f34dc1af 94%attr(755,root,root) %{_bindir}/radsecproxy-hash
c3996559 95%attr(754,root,root) /etc/rc.d/init.d/%{name}
3617ef69 96%{_mandir}/man1/*
dac81cfd 97%{_mandir}/man5/*
This page took 0.078493 seconds and 4 git commands to generate.