]> git.pld-linux.org Git - packages/radsecproxy.git/blame - radsecproxy.spec
- rel.3 - fticksVISINST support
[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
dac81cfd 5Version: 1.5
60f7c37f 6Release: 3
c3996559
PG
7License: GPLv2+ or BSD-like
8Group: Networking/Daemons/Radius
231bfe5c 9Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz
dac81cfd 10# Source0-md5: c65742a1b471c572ca7f6d11000d41f5
c3996559 11Source1: %{name}.init
8d228d83 12Source2: %{name}.logrotate
ea7330c0 13Source3: %{name}.upstart
714d9de1 14Patch0: %{name}-docbook2x.patch
108ab006 15## will be included in 1.6
f34dc1af 16Patch1: %{name}-fticks.patch
60f7c37f 17Patch2: %{name}-visinst.patch
3617ef69 18URL: http://software.uninett.no/radsecproxy/
54298ea9 19# For manual creation:
714d9de1 20BuildRequires: docbook2X
80e19a82 21Requires: openssl >= 1.0.0b
54298ea9
ER
22Requires(post,preun): /sbin/chkconfig
23Requires: rc-scripts >= 0.4.3.0
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
31executable on Linux is only about 48 Kb, and it uses about 64 Kb
32(depending on the number of peers) while running.
33
ea7330c0
PG
34%package upstart
35Summary: Upstart job description for %{name}
36Summary(pl.UTF-8): Opis zadania Upstart dla %{name}
37Group: Daemons
38Requires: %{name} = %{version}-%{release}
39Requires: upstart >= 0.6
40
41%description upstart
42Upstart job description for %{name}.
43
44%description upstart -l pl.UTF-8
45Opis zadania Upstart dla %{name}.
46
3617ef69
PG
47%prep
48%setup -q
714d9de1 49%patch0 -p1
f34dc1af 50%patch1 -p1
60f7c37f 51%patch2 -p1
3617ef69
PG
52
53%build
714d9de1
PG
54%{__aclocal}
55%{__autoconf}
f34dc1af
PG
56%configure \
57 --enable-fticks
58# Some trash comes with tar:
59%{__make} clean
3617ef69 60%{__make}
f34dc1af
PG
61# FIXME:
62mv ______radsecproxy.conf\ ____.5 radsecproxy.conf.5
3617ef69
PG
63
64%install
65rm -rf $RPM_BUILD_ROOT
c3996559 66install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
ea7330c0 67 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
c3996559 68
3617ef69
PG
69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT
71
54298ea9 72cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
c3996559 73
54298ea9
ER
74install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
75cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
76cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/init/%{name}.conf
c3996559 77
dac81cfd
AO
78install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
79
3617ef69 80%clean
231bfe5c 81rm -rf $RPM_BUILD_ROOT
3617ef69 82
c3996559
PG
83%post
84/sbin/chkconfig --add %{name}
85%service %{name} restart "RADIUS secure proxy"
86
87%preun
88if [ "$1" = "0" ]; then
54298ea9
ER
89 %service %{name} stop
90 /sbin/chkconfig --del %{name}
c3996559
PG
91fi
92
ea7330c0
PG
93%post upstart
94%upstart_post %{name}
95
96%postun upstart
97%upstart_postun %{name}
98
3617ef69
PG
99%files
100%defattr(644,root,root,755)
c3996559
PG
101%doc AUTHORS ChangeLog README
102%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
a275063f 103%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
c3996559 104%attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
3617ef69 105%attr(755,root,root) %{_sbindir}/radsecproxy
dac81cfd 106%attr(755,root,root) %{_bindir}/radsecproxy-conf
f34dc1af 107%attr(755,root,root) %{_bindir}/radsecproxy-hash
c3996559 108%attr(754,root,root) /etc/rc.d/init.d/%{name}
3617ef69 109%{_mandir}/man1/*
dac81cfd 110%{_mandir}/man5/*
ea7330c0
PG
111
112%files upstart
113%defattr(644,root,root,755)
114%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
This page took 0.092531 seconds and 4 git commands to generate.