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