]>
Commit | Line | Data |
---|---|---|
a275063f PG |
1 | #### |
2 | # TODO: | |
3 | # - docbook2x is required for manual build | |
3617ef69 PG |
4 | Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec) |
5 | Name: radsecproxy | |
80e19a82 | 6 | Version: 1.4.2 |
96b7959b | 7 | Release: 1 |
c3996559 PG |
8 | License: GPLv2+ or BSD-like |
9 | Group: Networking/Daemons/Radius | |
231bfe5c | 10 | Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz |
80e19a82 | 11 | # Source0-md5: ccdff609c72c0862235b9119323345a8 |
c3996559 | 12 | Source1: %{name}.init |
8d228d83 | 13 | Source2: %{name}.logrotate |
ea7330c0 | 14 | Source3: %{name}.upstart |
3617ef69 | 15 | URL: http://software.uninett.no/radsecproxy/ |
54298ea9 | 16 | # For manual creation: |
a275063f | 17 | #BuildRequires: docbook2x-to-man |
80e19a82 | 18 | Requires: openssl >= 1.0.0b |
54298ea9 ER |
19 | Requires(post,preun): /sbin/chkconfig |
20 | Requires: rc-scripts >= 0.4.3.0 | |
3617ef69 PG |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | radsecproxy is a generic RADIUS proxy that in addition to to usual | |
25 | RADIUS UDP transport, also supports TLS (RadSec). The aim is for the | |
26 | proxy to have sufficient features to be flexible, while at the same | |
27 | time to be small, efficient and easy to configure. Currently the | |
28 | executable 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 |
32 | Summary: Upstart job description for %{name} | |
33 | Summary(pl.UTF-8): Opis zadania Upstart dla %{name} | |
34 | Group: Daemons | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: upstart >= 0.6 | |
37 | ||
38 | %description upstart | |
39 | Upstart job description for %{name}. | |
40 | ||
41 | %description upstart -l pl.UTF-8 | |
42 | Opis 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 | |
52 | rm -rf $RPM_BUILD_ROOT | |
c3996559 | 53 | install -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 | 59 | cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
c3996559 | 60 | |
54298ea9 ER |
61 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
62 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
63 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/init/%{name}.conf | |
c3996559 | 64 | |
3617ef69 | 65 | %clean |
231bfe5c | 66 | rm -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 | |
73 | if [ "$1" = "0" ]; then | |
54298ea9 ER |
74 | %service %{name} stop |
75 | /sbin/chkconfig --del %{name} | |
c3996559 PG |
76 | fi |
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 |