Accepting request 229622 from home:michal-m:branches:network:utilities

- Move arp, ifconfig, netstat and route to a -deprecated subpackage
  (fate#317196, fate#317197)
- Drop the rarp tool, which has been broken since kernel 2.3

OBS-URL: https://build.opensuse.org/request/show/229622
OBS-URL: https://build.opensuse.org/package/show/network:utilities/net-tools?expand=0&rev=41
This commit is contained in:
Lars Vogdt 2014-04-12 14:29:43 +00:00 committed by Git OBS Bridge
parent f122076506
commit 7f6483a36d
2 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Apr 10 12:33:41 UTC 2014 - mmarek@suse.cz
- Move arp, ifconfig, netstat and route to a -deprecated subpackage
(fate#317196, fate#317197)
- Drop the rarp tool, which has been broken since kernel 2.3
-------------------------------------------------------------------
Thu Jul 25 14:41:14 CEST 2013 - ms@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package net-tools
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -96,6 +96,18 @@ Authors:
Peter Tobias <tobias@et-inf.fho-emden.de>
Olaf Kirch <okir@suse.de>
%package deprecated
Summary: Deprecated Networking Utilities
Group: Productivity/Networking/Other
%description deprecated
This package contains the arp, ifconfig, netstat and route utilities,
which have been replaced by tools from the iproute2 package:
* arp -> ip [-r] neigh
* ifconfig -> ip a
* netstat -> ss [-r]
* route -> ip r
%prep
%setup -q
cp %{S:3} lib/
@ -171,7 +183,7 @@ for tool in \
%ifarch s390
plipconfig slattach \
%endif
nisdomainname ypdomainname mii-tool
nisdomainname ypdomainname mii-tool rarp
do
rm -f $RPM_BUILD_ROOT/*bin/$tool
rm -f $RPM_BUILD_ROOT/%{_mandir}/man*/$tool.*
@ -181,6 +193,21 @@ mv $RPM_BUILD_ROOT/%{_mandir}/de_DE $RPM_BUILD_ROOT/%{_mandir}/de
mv $RPM_BUILD_ROOT/%{_mandir}/fr_FR $RPM_BUILD_ROOT/%{_mandir}/fr
%find_lang %{name} --all-name --with-man
# generate the filelist for net-tools-deprecated
echo '%%defattr(-,root,root)' >deprecated.list
for tool in arp ifconfig netstat route; do
for dir in bin sbin; do
if test -x $RPM_BUILD_ROOT/$dir/$tool; then
break
fi
done
echo /$dir/$tool >>deprecated.list
find $RPM_BUILD_ROOT/%_mandir -name "$tool.*"\
-printf '%_mandir/%%P*\n' >>deprecated.list
done
cat deprecated.list
sed 's/^/%%exclude /' deprecated.list >>%name.lang
%clean
rm -rf $RPM_BUILD_ROOT
@ -191,4 +218,6 @@ rm -rf $RPM_BUILD_ROOT
%_mandir/man*/*
%config(noreplace) /etc/xinetd.d/netstat
%files deprecated -f deprecated.list
%changelog