]> git.pld-linux.org Git - SPECS.git/blob - ptrtd.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / ptrtd.spec
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)
4 Name:           ptrtd
5 Version:        0.5.2
6 Release:        1
7 License:        BSD
8 Group:          Networking/Daemons
9 Source0:        http://v6web.litech.org/ptrtd/dist/%{name}-%{version}.tar.gz
10 # Source0-md5:  bfe026445fdc4fe509a9c70ec4551744
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 URL:            http://v6web.litech.org/ptrtd/
14 BuildRequires:  autoconf
15 PreReq:         rc-scripts
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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.
26
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.
34
35 %prep
36 %setup -q
37
38 %build
39 %{__autoconf}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,/etc/sysconfig}
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ptrtd
51 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ptrtd
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 /sbin/chkconfig --add ptrtd
58
59 %preun
60 if [ "$1" = "0 "]; then
61         /etc/rc.d/init.d/ptrtd stop >&2
62         /sbin/chkconfig --del ptrtd
63 fi
64
65 %postun
66 if [ "$1" -ge "1" ]; then
67         /etc/rc.d/init.d/ptrtd condrestart >&2
68 fi
69
70 %files
71 %defattr(644,root,root,755)
72 %doc README
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
This page took 1.437328 seconds and 3 git commands to generate.