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