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