]> git.pld-linux.org Git - SPECS.git/blob - totd.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / totd.spec
1 Summary:        DNS proxy that supports IPv6 <==> IPv4 record translation
2 Summary(pl.UTF-8):      Proxy DNS obsługujący tłumaczenie rekordów IPv6 <==> IPv4
3 Name:           totd
4 Version:        1.5.1
5 Release:        1
6 License:        BSD
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/%{name}-%{version}.tar.gz
9 # Source0-md5:  7edaedae9f6aca5912dd6c123582cf08
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Patch0:         %{name}-Makefile.in.patch
13 Patch1:         %{name}-buildfix.patch
14 URL:            http://www.vermicelli.pasta.cs.uit.no/ipv6/software.html
15 PreReq:         rc-scripts
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Totd is a small DNS proxy nameserver that supports IPv6 only
21 hosts/networks that communicate with the IPv4 world using some
22 translation mechanism. Examples of such translation mechanisms
23 currently in use are:
24 - IPv6/IPv4 Network Address and Packet Translation (NAT-PT)
25   implemented e.g. by Cisco.
26 - Application level translators as the faithd implemented by the KAME
27   project (http://www.kame.net/) or pTRTd
28   (http://v6web.litech.org/ptrtd/)
29
30 %description -l pl.UTF-8
31 Totd to mały serwer proxy dla serwera nazw (DNS) obsługujący hosty i
32 sieci tylko IPv6 komunikujący się ze światem IPv4 przy użyciu jakiegoś
33 mechanizmu tłumaczenia. Przykładami takich mechanizmów tłumaczenia
34 aktualnie będących w użyciu są:
35 - tłumaczenie adresów sieciowych i pakietów IPv6/IPv4 (NAT-PT -
36   Network Address and Packet Translation), zaimplementowane m.in.
37   przez Cisco
38 - tłumaczenie na poziomie aplikacji, jak np. faithd zaimplementowany
39   przez KAME (http://www.kame.net/) albo pTRTd
40   (http://v6web.litech.org/ptrtd/)
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46
47 %build
48 %configure
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_sbindir}
54 install -d $RPM_BUILD_ROOT%{_sysconfdir}
55 install -d $RPM_BUILD_ROOT%{_mandir}/man8
56 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/totd
62 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/totd.conf
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post
68 /sbin/chkconfig --add totd
69
70 %preun
71 if [ "$1" = "0 "]; then
72         /etc/rc.d/init.d/totd stop >&2
73         /sbin/chkconfig --del totd
74 fi
75
76 %postun
77 if [ "$1" -ge "1" ]; then
78         /etc/rc.d/init.d/totd condrestart >&2
79 fi
80
81 %files
82 %defattr(644,root,root,755)
83 %doc README
84 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/totd.conf
85 %attr(754,root,root) /etc/rc.d/init.d/*
86 %attr(755,root,root) %{_sbindir}/*
87 %{_mandir}/*/*
This page took 0.531515 seconds and 3 git commands to generate.