]> git.pld-linux.org Git - packages/radsecproxy.git/blame - radsecproxy.spec
- update upstart deps
[packages/radsecproxy.git] / radsecproxy.spec
CommitLineData
a275063f
PG
1####
2# TODO:
3# - docbook2x is required for manual build
3617ef69
PG
4Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
5Name: radsecproxy
80e19a82 6Version: 1.4.2
96b7959b 7Release: 1
c3996559
PG
8License: GPLv2+ or BSD-like
9Group: Networking/Daemons/Radius
231bfe5c 10Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz
80e19a82 11# Source0-md5: ccdff609c72c0862235b9119323345a8
c3996559 12Source1: %{name}.init
8d228d83 13Source2: %{name}.logrotate
ea7330c0 14Source3: %{name}.upstart
3617ef69 15URL: http://software.uninett.no/radsecproxy/
54298ea9 16# For manual creation:
a275063f 17#BuildRequires: docbook2x-to-man
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
46
47%build
f3d3fc05 48%configure
3617ef69
PG
49%{__make}
50
51%install
52rm -rf $RPM_BUILD_ROOT
c3996559 53install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
ea7330c0 54 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
c3996559 55
3617ef69
PG
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
54298ea9 59cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
c3996559 60
54298ea9
ER
61install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
62cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
63cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/init/%{name}.conf
c3996559 64
3617ef69 65%clean
231bfe5c 66rm -rf $RPM_BUILD_ROOT
3617ef69 67
c3996559
PG
68%post
69/sbin/chkconfig --add %{name}
70%service %{name} restart "RADIUS secure proxy"
71
72%preun
73if [ "$1" = "0" ]; then
54298ea9
ER
74 %service %{name} stop
75 /sbin/chkconfig --del %{name}
c3996559
PG
76fi
77
ea7330c0
PG
78%post upstart
79%upstart_post %{name}
80
81%postun upstart
82%upstart_postun %{name}
83
3617ef69
PG
84%files
85%defattr(644,root,root,755)
c3996559
PG
86%doc AUTHORS ChangeLog README
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
a275063f 91%attr(755,root,root) %{_bindir}/catgconf
c3996559 92%attr(754,root,root) /etc/rc.d/init.d/%{name}
3617ef69 93%{_mandir}/man1/*
a275063f
PG
94# With manual created:
95#%{_mandir}/man5/*
ea7330c0
PG
96
97%files upstart
98%defattr(644,root,root,755)
99%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
This page took 0.08883 seconds and 4 git commands to generate.