2021-01-04 20:22:01 +03:00
|
|
|
Summary: Networking Tools
|
|
|
|
Name: net-tools
|
2022-02-22 20:54:18 +03:00
|
|
|
Version: 2.10
|
|
|
|
Release: 1%{?dist}
|
2021-01-04 20:22:01 +03:00
|
|
|
License: GPLv2+
|
2020-08-07 06:17:52 +03:00
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
2021-01-04 20:22:01 +03:00
|
|
|
Group: System Environment/Base
|
|
|
|
URL: https://sourceforge.net/projects/net-tools/
|
2022-02-22 20:54:18 +03:00
|
|
|
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.xz
|
2020-08-07 06:17:52 +03:00
|
|
|
Conflicts: toybox
|
2021-01-04 20:22:01 +03:00
|
|
|
Obsoletes: inetutils
|
|
|
|
Provides: hostname = %{version}-%{release}
|
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%description
|
|
|
|
The Net-tools package is a collection of programs for controlling the network subsystem of the Linux kernel.
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%prep
|
2022-02-22 20:54:18 +03:00
|
|
|
%autosetup -p1
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%build
|
|
|
|
yes "" | make config
|
|
|
|
sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
|
|
|
|
-e 's|HAVE_AFINET6 0|HAVE_AFINET6 1|g' \
|
|
|
|
-e 's|HAVE_MII 0|HAVE_MII 1|g' config.h
|
|
|
|
sed -i -e 's|#define HAVE_HWSTRIP 1|#define HAVE_HWSTRIP 0|g' \
|
|
|
|
-e 's|#define HAVE_HWTR 1|#define HAVE_HWTR 0|g' config.h
|
|
|
|
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
|
|
|
|
-e 's|# HAVE_AFINET6=0|HAVE_AFINET6=1|g' \
|
|
|
|
-e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make
|
|
|
|
sed -i 's|#include <netinet/ip.h>|//#include <netinet/ip.h>|g' iptunnel.c
|
|
|
|
make
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%install
|
2022-02-22 20:54:18 +03:00
|
|
|
make BASEDIR=%{buildroot} install
|
|
|
|
mv %{buildroot}/bin/ifconfig %{buildroot}/sbin/ifconfig
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%license COPYING
|
|
|
|
/bin/*
|
|
|
|
/sbin/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%changelog
|
2022-02-22 20:54:18 +03:00
|
|
|
* Thu Feb 17 2022 Rachel Menge <rachelmenge@microsoft.com> - 2.10-1
|
|
|
|
- Update to 2.10
|
|
|
|
|
2021-12-17 20:46:27 +03:00
|
|
|
* Thu Dec 16 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.60-16
|
|
|
|
- Removing the explicit %%clean stage.
|
|
|
|
|
2021-01-04 20:22:01 +03:00
|
|
|
* Fri Dec 11 2020 Joe Schmitt <joschmit@microsoft.com> - 1.60-15
|
|
|
|
- Provide hostname.
|
|
|
|
|
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 1.60-14
|
2020-08-07 06:17:52 +03:00
|
|
|
- Added %%license line automatically
|
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Mon Apr 13 2020 Eric Li <eli@microsoft.com> 1.60-13
|
|
|
|
- Update Source0: and delete sha1. Verified license. Fixed URL.
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 1.60-12
|
|
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Mon Oct 02 2017 Alexey Makhalov <amakhalov@vmware.com> 1.60-11
|
|
|
|
- Added conflicts toybox
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Wed Dec 14 2016 Alexey Makhalov <amakhalov@vmware.com> 1.60-10
|
|
|
|
- Fix compilation issue with linux-4.9
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 1.60-9
|
|
|
|
- Remove iputils deps.
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Tue Oct 04 2016 ChangLee <changLee@vmware.com> 1.60-8
|
|
|
|
- Modified %check
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.60-7
|
|
|
|
- GA - Bump release of all rpms
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Thu Feb 4 2016 Alexey Makhalov <amakhalov@vmware.com> 1.60-6
|
|
|
|
- Apply all patches from 1.60-26ubuntu1.
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Fri Jan 22 2016 Alexey Makhalov <amakhalov@vmware.com> 1.60-5
|
|
|
|
- Added net-tools-1.60-manydevs.patch
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Fri Nov 6 2015 Alexey Makhalov <amakhalov@vmware.com> 1.60-4
|
|
|
|
- Added ipv6 support. Include hostname and dnshostname.
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Thu Oct 22 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.60-3
|
|
|
|
- Added changes to replace inetutils with net-tools
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Thu Jul 30 2015 Divya Thaluru <dthaluru@vmware.com> 1.60-2
|
|
|
|
- Disable building with parallel threads
|
2021-01-04 20:22:01 +03:00
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Mon Jul 13 2015 Divya Thaluru <dthaluru@vmware.com> 1.60-1
|
|
|
|
- Initial build. First version
|