From 773f94aeeafb4d43f120e7f32cbbb89da35c938dd4491898dfc74c82fc3b7f0e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:11:48 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ethtool?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ethtool-5-buffer-overflow.patch | 16 +++++ ethtool-5.tar.bz2 | 3 + ethtool.changes | 86 ++++++++++++++++++++++++++ ethtool.spec | 106 ++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 235 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ethtool-5-buffer-overflow.patch create mode 100644 ethtool-5.tar.bz2 create mode 100644 ethtool.changes create mode 100644 ethtool.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ethtool-5-buffer-overflow.patch b/ethtool-5-buffer-overflow.patch new file mode 100644 index 0000000..5ce7f2f --- /dev/null +++ b/ethtool-5-buffer-overflow.patch @@ -0,0 +1,16 @@ +--- ethtool.c ++++ ethtool.c +@@ -628,7 +628,13 @@ + } + + if (devname == NULL) ++ { + show_usage(1); ++ } else if (strlen(devname) > IFNAMSIZ - 1) { ++ fprintf(stderr, "Device name \"%s\" exceeds maximum length.\n", ++ devname); ++ exit(1); ++ } + if (strlen(devname) >= IFNAMSIZ) + show_usage(1); + } diff --git a/ethtool-5.tar.bz2 b/ethtool-5.tar.bz2 new file mode 100644 index 0000000..2922382 --- /dev/null +++ b/ethtool-5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:514d81bc167282a1e5c63f04d04f55e8be0d2ed8f271a1ce3671f2cf085e4c55 +size 103917 diff --git a/ethtool.changes b/ethtool.changes new file mode 100644 index 0000000..4f27990 --- /dev/null +++ b/ethtool.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Wed Sep 6 16:29:24 CEST 2006 - mskibbe@suse.de + +- fix bug #202756 - No Buffer Overflow check in Ethtool + +------------------------------------------------------------------- +Mon Sep 4 07:59:08 CEST 2006 - mskibbe@suse.de + +- update to version 5 which includes: + o Security: Avoid potential buffer overflow + o Feature: GSO support + o Feature: skge register dump + +------------------------------------------------------------------- +Thu Aug 31 10:11:50 CEST 2006 - mskibbe@suse.de + +- update to version 4 which + o includes UFO support + o support long options + o includes e1000, pcnet32, tg3 updates + o added PPC4xx EMAC support + o Use hexdump instead of single values for register dump + +------------------------------------------------------------------- +Wed Jan 25 21:35:46 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sat Jan 29 21:08:20 CET 2005 - hvogel@suse.de + +- update to version 3 + +------------------------------------------------------------------- +Mon Aug 23 14:07:30 CEST 2004 - mmj@suse.de + +- Update to ethtool-2 which includes all our patches + +------------------------------------------------------------------- +Thu Jun 24 09:56:57 CEST 2004 - meissner@suse.de + +- Added pcnet32 register dumping LTC#9592/SUSE#42408. + +------------------------------------------------------------------- +Mon May 24 19:43:55 CEST 2004 - meissner@suse.de + +- return error value from test option LTC#7166/SUSE#40960. + +------------------------------------------------------------------- +Sun Jan 11 13:26:29 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Tue Aug 26 19:06:06 CEST 2003 - pthomas@suse.de + +- Upgraded to 1.8 + +------------------------------------------------------------------- +Tue Aug 26 18:13:42 CEST 2003 - pthomas@suse.de + +- Remove the bogus rejection of devices whose names that do not begin + with either 'eth' or 'usb'. + +------------------------------------------------------------------- +Mon Jun 2 15:29:08 CEST 2003 - pthomas@suse.de + +- Add support for AMD-8111. + +------------------------------------------------------------------- +Fri Feb 7 17:17:23 CET 2003 - meissner@suse.de + +- Upgraded to current CVS, which has some e1000 fixes needed by IBM. + +------------------------------------------------------------------- +Thu Feb 6 11:13:31 CET 2003 - meissner@suse.de + +- Upgraded to 1.7: + +------------------------------------------------------------------- +Mon Jun 24 13:46:38 CEST 2002 - pthomas@suse.de + +- Initial package creation. +- Fix most gcc warnings. + + diff --git a/ethtool.spec b/ethtool.spec new file mode 100644 index 0000000..21d0e08 --- /dev/null +++ b/ethtool.spec @@ -0,0 +1,106 @@ +# +# spec file for package ethtool (Version 5) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: ethtool +License: GPL +Group: Productivity/Networking/Diagnostic +Autoreqprov: on +Summary: Examine and Tune Ethernet-Based Network Interfaces +Version: 5 +Release: 3 +URL: http://sourceforge.net/projects/gkernel +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch: %{name}-%{version}-buffer-overflow.patch + +%description +Ethtool is a small utility for examining and tuning ethernet-based +network interfaces. See the man page for more details. + + + +Authors: +-------- + David Miller + Jakub Jelinek + Jeff Garzik + Tim Hockin + +%prep +%setup -q +%patch + +%build +%{suse_update_config -f} +autoreconf --force --install +%define warn_flags -W -Wall -Wstrict-prototypes -Wformat-security -Wpointer-arith +CFLAGS="$RPM_OPT_FLAGS %{warn_flags}" ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} +make + +%install +rm -rf $RPM_BUILD_ROOT +make "DESTDIR=$RPM_BUILD_ROOT" install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_sbindir}/ethtool +%{_mandir}/man8/ethtool.8* +%doc AUTHORS COPYING INSTALL NEWS README ChangeLog + +%changelog -n ethtool +* Wed Sep 06 2006 - mskibbe@suse.de +- fix bug #202756 - No Buffer Overflow check in Ethtool +* Mon Sep 04 2006 - mskibbe@suse.de +- update to version 5 which includes: + o Security: Avoid potential buffer overflow + o Feature: GSO support + o Feature: skge register dump +* Thu Aug 31 2006 - mskibbe@suse.de +- update to version 4 which + o includes UFO support + o support long options + o includes e1000, pcnet32, tg3 updates + o added PPC4xx EMAC support + o Use hexdump instead of single values for register dump +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Sat Jan 29 2005 - hvogel@suse.de +- update to version 3 +* Mon Aug 23 2004 - mmj@suse.de +- Update to ethtool-2 which includes all our patches +* Thu Jun 24 2004 - meissner@suse.de +- Added pcnet32 register dumping LTC#9592/SUSE#42408. +* Mon May 24 2004 - meissner@suse.de +- return error value from test option LTC#7166/SUSE#40960. +* Sun Jan 11 2004 - adrian@suse.de +- build as user +* Tue Aug 26 2003 - pthomas@suse.de +- Upgraded to 1.8 +* Tue Aug 26 2003 - pthomas@suse.de +- Remove the bogus rejection of devices whose names that do not begin + with either 'eth' or 'usb'. +* Mon Jun 02 2003 - pthomas@suse.de +- Add support for AMD-8111. +* Fri Feb 07 2003 - meissner@suse.de +- Upgraded to current CVS, which has some e1000 fixes needed by IBM. +* Thu Feb 06 2003 - meissner@suse.de +- Upgraded to 1.7: +* Mon Jun 24 2002 - pthomas@suse.de +- Initial package creation. +- Fix most gcc warnings. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4