1 Summary: Client to configure an IPv6 tunnel to Hexago's migration broker
6 Group: Applications/System
7 Source0: http://ftp.debian.org/debian/pool/main/t/tspc/%{name}_%{version}.orig.tar.gz
8 # Source0-md5: 65183cae002feaacd8bc92d6a5404cc2
10 Patch0: %{name}-PLD.patch
11 BuildRequires: rpmbuild(macros) >= 1.228
12 Requires(post,preun): /sbin/chkconfig
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Connecting to the IPv6 Internet requires either a native connection or
17 the cooperation of a friendly server to provide you with a tunnel.
19 Tunnel Server Protocol Client (tspc), is a daemon to automate the
20 setup and maintenance of an IPv6 tunnel. This client will connect to
21 any migration broker which uses Hexago's implementation.
30 CFLAGS="%{rpmcflags} -I../../include -I../../platform/linux" \
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},/etc/sysconfig}
38 configdir=%{_sysconfdir}/tsp \
39 install_bin=$RPM_BUILD_ROOT%{_sbindir} \
40 installdir=$RPM_BUILD_ROOT%{_prefix}
42 mv $RPM_BUILD_ROOT%{_prefix}/template $RPM_BUILD_ROOT%{_sysconfdir}/tsp
43 mv $RPM_BUILD_ROOT%{_sbindir}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/tsp
44 mv $RPM_BUILD_ROOT%{_prefix}/man/* $RPM_BUILD_ROOT%{_mandir}
46 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
47 touch $RPM_BUILD_ROOT/etc/sysconfig/%{name}
50 rm -rf $RPM_BUILD_ROOT
53 /sbin/chkconfig --add %{name}
54 %service %{name} restart
57 if [ "$1" = "0" ]; then
58 %service -q %{name} stop
59 /sbin/chkconfig --del %{name}
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_sbindir}/%{name}
65 %attr(754,root,root) /etc/rc.d/init.d/%{name}
66 %dir %{_sysconfdir}/tsp
67 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tsp/*.sh
68 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tsp/*.conf
69 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}