1 # TODO: unify preun/postun
2 Summary: Portable Transport-layer Relay Translator daemon
3 Summary(pl.UTF-8): Przenośny demon TRT (Transport-layer Relay Translator)
8 Group: Networking/Daemons
9 Source0: http://v6web.litech.org/ptrtd/dist/%{name}-%{version}.tar.gz
10 # Source0-md5: bfe026445fdc4fe509a9c70ec4551744
12 Source2: %{name}.sysconfig
13 URL: http://v6web.litech.org/ptrtd/
14 BuildRequires: autoconf
16 Requires(post,preun): /sbin/chkconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The portable Transport Relay Translator daemon (pTRTd) is a method of
21 allowing IPv6 hosts to communicate with IPv4 hosts. It is a TRT as
22 specified by RFC 3142, similar to the Faith package implemented by the
23 KAME project. However, unlike Faith, it doesn't depend on special
24 support in the kernel IPv6 stack, and thus should be fairly easy to
25 port to most Unix-like operating systems.
27 %description -l pl.UTF-8
28 Przenośny demon Transport Relay Translator (pTRTd) to metoda
29 umożliwienia hostom IPv6 komunikowania się z hostami IPv4. Jest to TRT
30 zgodne z RFC 3142, podobne do pakietu Faith zaimplementowanego przez
31 projekt KAME. Jednak, w przeciwieństwie do Faith, nie polega na
32 specjalnym wsparciu w stosie IPv6 w jądrze, przez co powinien być dość
33 łatwy w portowaniu na większość uniksowych systemów operacyjnych.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,/etc/sysconfig}
48 DESTDIR=$RPM_BUILD_ROOT
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ptrtd
51 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ptrtd
54 rm -rf $RPM_BUILD_ROOT
57 /sbin/chkconfig --add ptrtd
60 if [ "$1" = "0 "]; then
61 /etc/rc.d/init.d/ptrtd stop >&2
62 /sbin/chkconfig --del ptrtd
66 if [ "$1" -ge "1" ]; then
67 /etc/rc.d/init.d/ptrtd condrestart >&2
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_sbindir}/*
74 %attr(754,root,root) /etc/rc.d/init.d/*
75 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ptrtd