summaryrefslogtreecommitdiff
path: root/net-tools.spec
blob: a10e6334c421891d7fc295ecd3d9def31fd7def8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
Summary:	Basic Networking Tools
Summary(es):	Herramientas básicas de Red
Summary(ja):	¥Í¥Ã¥È¥ï¡¼¥¯¤ò¥»¥Ã¥È¥¢¥Ã¥×¤¹¤ë¤¿¤á¤Î´ðËÜŪ¤Ê¥Ä¡¼¥ë
Summary(pl):	Podstawowe narzêdzia do obs³ugi i konfiguracji sieci
Summary(pt_BR):	Ferramentas básicas de Rede
Summary(ru):	âÁÚÏ×ÙÅ ÓÅÔÅ×ÙÅ ÐÒÏÇÒÁÍÍÙ
Summary(uk):	âÁÚÏצ ÐÒÏÇÒÁÍÉ ÍÅÒÅÖ¦
Name:		net-tools
Version:	1.60
Release:	15.2
License:	GPL
Group:		Networking/Admin
Source0:	http://www.tazenda.demon.co.uk/phil/net-tools/%{name}-%{version}.tar.bz2
# Source0-md5:	888774accab40217dde927e21979c165
Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5:	9cee6ac0a07a0bf34fbc71add1eb2ead
Patch0:		%{name}-config.patch
Patch1:		%{name}-man.patch
Patch2:		%{name}-ipvs.patch
Patch3:		%{name}-et.patch
Patch4:		%{name}-no_multiline.patch
Patch5:		%{name}-x25_address_is_struct.patch
Patch6:		%{name}-make_config_h.patch
Patch7:		%{name}-mii.patch
Patch8:		%{name}-gcc34.patch
Patch9:		%{name}-nameif.patch
Patch10:	%{name}-inet6-lookup.patch
Patch11:	%{name}-ipx.patch
Patch12:	%{name}-manydevs.patch
Patch13:	%{name}-get_name.patch
URL:		http://www.tazenda.demon.co.uk/phil/net-tools/
BuildRequires:	gettext-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_bindir		/bin
%define		_sbindir	/sbin

%description
This is a collection of the basic tools necessary for setting up
networking on a Linux machine. It includes ifconfig, route, netstat,
rarp, and some other minor tools.

%description -l es
Esta es una colección de herramientas básicas necesarias para la
configuración de la red en una máquina Linux. Incluye ifconfig, route,
netstat, rarp, y algunas otras herramientas menores.

%description -l pl
Pakiet ten zawiera zbiór podstawowych narzêdzi do konfigurowania
sieci. Znajduj± siê tutaj: ifconfig, route, netstat, rarp oraz inne -
mniej wa¿ne aplikacje.

%description -l ja
net-tools ¥Ñ¥Ã¥±¡¼¥¸¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤ò¥»¥Ã¥È¥¢¥Ã¥×¤¹¤ë´ðËÜŪ¤Ê¥Ä¡¼¥ë¤ò
´Þ¤ó¤Ç¤¤¤Þ¤¹: arp¡¢rarp¡¢ifconfig¡¢netstat¡¢ethers ¤½¤·¤Æ route ¤Ç¤¹¡£

%description -l pt_BR
Essa é uma coleção de ferramentas básicas necessárias para a
configuração da rede em uma máquina Linux. Inclui ifconfig, route,
netstat, rarp, e algumas outras ferramentas menores.

%description -l ru
üÔÏ ÎÁÂÏÒ ÂÁÚÏ×ÙÈ ÐÒÏÇÒÁÍÍ, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ÕÓÔÁÎÏ×ËÉ É ÎÁÓÔÒÏÊËÉ
ÓÅÔÉ. ïÎ ×ËÌÀÞÁÅÔ ifconfig, netstat, route É ÄÒÕÇÉÅ ÐÒÏÇÒÁÍÍÙ.

ðÒÏÇÒÁÍÍÙ ifconfig É route ÄÌÑ ÑÄÅÒ 2.4.x Ñ×ÌÑÀÔÓÑ ÕÓÔÁÒÅ×ÛÉÍÉ, Ô.Ë.
ÎÅ ÐÏÚ×ÏÌÑÀÔ ÕÐÒÁ×ÌÑÔØ ×ÓÅÍÉ ×ÏÚÍÏÖÎÏÓÔÑÍÉ, ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÍÉ ÜÔÉÍÉ
ÑÄÒÁÍÉ. ÷ÚÁÍÅÎ ÉÈ ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ÓÉÓÔÅÍÙ ÒÅËÏÍÅÎÄÕÅÔÓÑ ÐÏÌØÚÏ×ÁÔØÓÑ
ÐÒÏÇÒÁÍÍÏÊ ip ÉÚ ÐÁËÅÔÁ iproute2.

%description -l uk
ãÅ ÎÁÂ¦Ò ÂÁÚÏ×ÉÈ ÐÒÏÇÒÁÍ, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÎƦÇÕÒÕ×ÁÎÎÑ ÍÅÒÅÖ¦. ÷¦Î
×ËÌÀÞÁ¤ ifconfig, netstat, route ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ.

ðÒÏÇÒÁÍÉ ifconfig ÔÁ route ÄÌÑ ÑÄÅÒ 2.4.x ¤ ÚÁÓÔÁÒ¦ÌÉÍÉ, ÔÏÍÕ ÝÏ ÎÅ
ÄÏÚ×ÏÌÑÀÔØ ËÅÒÕ×ÁÔÉ ×Ó¦ÍÁ ÍÏÖÌÉ×ÏÓÔÑÍÉ, Ñ˦ ÎÁÄÁÀÔØ Ã¦ ÑÄÒÁ. úÁͦÓÔØ
ÎÉÈ ÄÌÑ ËÏÎƦÇÕÒÕ×ÁÎÎÑ ÍÅÒÅÖ¦ ÒÅËÏÍÅÎÄÕ¤ÔØÓÑ ËÏÒÉÓÔÕ×ÁÔÉÓØ ÐÒÏÇÒÁÍÏÀ
ip Ú ÐÁËÅÔÕ iproute2.

%package -n slattach
Summary:	slattach - attach a network interface to a serial line
Summary(pl):	slattach - do³±cz interfejs sieciowy do lini szeregowej
Group:		Networking/Admin
Requires:	%{name} = %{version}

%description -n slattach
Slattach is a tiny little program that can be used to put a normal
terminal ("serial") line into one of several "network" modes, thus
allowing you to use it for point-to-point links to other computers.

%description -n slattach -l pl
Slattach jest prostym programem, który umo¿liwia zamianê zwyk³ej linii
terminala ("szeregowej") w jeden z kilku trybów "sieciowych" przez co
umo¿liwia na po³±czenia point-to-point z innym komputerem.

%package -n plipconfig
Summary:	plipconfig - fine tune PLIP device parameters
Summary(pl):	plipconfig - dostrajanie parametrów urz±dzenia PLIP
Group:		Networking/Admin
Requires:	%{name} = %{version}

%description -n plipconfig
Plipconfig is used to (hopefully) improve PLIP performance by changing
the default timing parameters used by the PLIP protocol. Results are
dependent on the parallel port hardware, cable, and the CPU speed of
each machine on each end of the PLIP link.

If the single interface argument is given, plipconfig displays the
status of the given interface only. Otherwise, it will try to set the
options.

%description -n plipconfig -l pl
Plipconfig jest u¿ywany do poprawienia wydajno¶ci PLIP poprzez zmianê
domy¶lnych czasowych parametrów u¿ywanych w protokole PLIP. Rezultaty
zale¿± od hardware portu równoleg³ego, kabla, szybko¶ci CPU ka¿dej
maszyny po³±czonej poprzez PLIP.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

mv po/et_EE.po po/et.po

%build
%{__make} COPTS="%{rpmcflags} -Wall" I18N=1

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}

%{__make} install \
	BASEDIR=$RPM_BUILD_ROOT \
	INSTALL="install" \
	mandir=%{_mandir} \
	I18N=1

bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}

# standardize localized man dirs
mv -f $RPM_BUILD_ROOT%{_mandir}/{de_DE/man1/*,de/man1}
rmdir $RPM_BUILD_ROOT%{_mandir}/de_DE/man1
mv -f $RPM_BUILD_ROOT%{_mandir}/{de_DE/*,de}
mv -f $RPM_BUILD_ROOT%{_mandir}/{fr_FR,fr}
# we can do it safely as no pt/pt_PT man pages appeared here yet
mv $RPM_BUILD_ROOT%{_mandir}/{pt_BR,pt}

cat > $RPM_BUILD_ROOT%{_sysconfdir}/mactab <<EOF
# Each line here contains an interface name and a Ethernet MAC address. Like:
#lan 00:13:d3:05:15:d2
EOF

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc READ*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mactab
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/arp
%attr(755,root,root) %{_sbindir}/ifconfig
%attr(755,root,root) %{_sbindir}/mii-tool
%attr(755,root,root) %{_sbindir}/rarp
%attr(755,root,root) %{_sbindir}/route
%attr(755,root,root) %{_sbindir}/nameif

%lang(de) %{_mandir}/de/man[15]/*
%lang(de) %{_mandir}/de/man8/[!ps]*
%lang(es) %{_mandir}/es/man[15]/*
%lang(es) %{_mandir}/es/man8/[!ps]*
%lang(fi) %{_mandir}/fi/man[15]/*
# No fi man8
%lang(fr) %{_mandir}/fr/man[15]/*
%lang(fr) %{_mandir}/fr/man8/[!ps]*
%lang(hu) %{_mandir}/hu/man[15]/*
%lang(hu) %{_mandir}/hu/man8/[!ps]*
%lang(id) %{_mandir}/id/man[15]/*
%lang(id) %{_mandir}/id/man8/[!ps]*
%lang(it) %{_mandir}/it/man[15]/*
%lang(it) %{_mandir}/it/man8/[!ps]*
%lang(ja) %{_mandir}/ja/man[15]/*
%lang(ja) %{_mandir}/ja/man8/[!ps]*
# No nl man[15]
%lang(nl) %{_mandir}/nl/man8/[!ps]*
%lang(pt) %{_mandir}/pt/man[15]/*
%lang(pt) %{_mandir}/pt/man8/[!ps]*
%lang(pl) %{_mandir}/pl/man[15]/*
%lang(pl) %{_mandir}/pl/man8/[!ps]*

%{_mandir}/man[15]/*
%{_mandir}/man8/[!ps]*

%files -n slattach
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/slattach
%lang(de) %{_mandir}/de/man8/slattach.8*
%lang(fr) %{_mandir}/fr/man8/slattach.8*
%lang(ja) %{_mandir}/ja/man8/slattach.8*
%lang(pl) %{_mandir}/pl/man8/slattach.8*
%{_mandir}/man8/slattach.8*

%files -n plipconfig
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/plipconfig
%lang(de) %{_mandir}/de/man8/plipconfig.8*
%lang(fr) %{_mandir}/fr/man8/plipconfig.8*
%lang(ja) %{_mandir}/ja/man8/plipconfig.8*
%{_mandir}/man8/plipconfig.8*