--- ethtool-6+20090307.orig/debian/copyright +++ ethtool-6+20090307/debian/copyright @@ -0,0 +1,74 @@ +This is the Debian GNU/Linux prepackaged version of "ethtool". + +This package is currently maintained by +Anibal Monsalve Salazar + +Sources obtained from: +http://sourceforge.net/projects/gkernel/ + +Copyright Notices + + amd8111e.c + Copyright (C) 2003 Advanced Micro Devices Inc. + + de2104x.c + Copyright 2001 Sun Microsystems (thockin@sun.com) + + e100.c + e1000.c + Copyright (c) 2002 Intel Corporation + + ethtool-copy.h + Copyright (C) 1998 David S. Miller (davem@redhat.com) + Copyright 2001 Jeff Garzik + Portions Copyright 2001 Sun Microsystems (thockin@sun.com) + Portions Copyright 2002 Intel (eli.kupermann@intel.com, + Portions Copyright 2001 Sun Microsystems (thockin@sun.com) + Portions Copyright 2002 Intel (scott.feldman@intel.com) + + ethtool.8: + Copyright 1999 by David S. Miller. All Rights Reserved. + + ethtool.8: + Portions Copyright 2001 Sun Microsystems + + ethtool.c + Copyright (C) 1998 David S. Miller (davem@dm.cobaltmicro.com) + Portions Copyright 2001 Sun Microsystems + Copyright 2001 Jeff Garzik + Portions Copyright 2002 Intel + + fec_8xx.c + Copyright (C) 2004 Intracom S.A. + + ibm_emac.c + Copyright (c) 2004, 2005 Zultys Technologies + + igb.c + Copyright (c) 2007 Intel Corporation + + ixgb.c + Copyright (c) 2006 Intel Corporation + + ixgbe.c + Copyright (c) 2007 Intel Corporation + + marvell.c + Copyright (C) 2004, 2006 + + natsemi.c + Copyright 2001 Sun Microsystems (thockin@sun.com) + + pcnet32.c + Copyright 2004 IBM Corporation (jklewis@us.ibm.com) + + realtek.c + Copyright 2001 Sun Microsystems (thockin@sun.com) + + vioc.c + Copyright 2006 Fabric7 Systems, Inc + +ethtool is licensed under the GNU General Public License version 2. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License version 2 can be found in `/usr/share/common-licenses/GPL-2'. --- ethtool-6+20090307.orig/debian/README.Debian +++ ethtool-6+20090307/debian/README.Debian @@ -0,0 +1,54 @@ +ethtool for Debian +------------------ + +Most settings that can be controlled through ethtool can be specified +in /etc/network/interfaces. They will then be applied to interfaces +that are brought up automatically at boot time or using the 'ifup' +command. The following settings are supported: + +Link mode (--change): + link-speed + link-duplex half|full + +Ethernet settings (--change): + ethernet-autoneg on|off| + ethernet-port + ethernet-wol [] + +Driver control (--change): + driver-message-level + +Ethernet flow control (--pause): + ethernet-pause-rx on|off + ethernet-pause-tx on|off + ethernet-pause-autoneg on|off + +Protocol offload (--offload): + offload-rx on|off + offload-tx on|off + offload-sg on|off + offload-tso on|off + offload-ufo on|off + offload-gso on|off + offload-lro on|off + +Hardware tuning (--coalesce, --ring): + hardware-irq-coalesce-adaptive-rx on|off + hardware-irq-coalesce-adaptive-tx on|off + hardware-irq-coalesce-rx-usecs + hardware-irq-coalesce-rx-frames + (etc.) + hardware-dma-ring-rx + hardware-dma-ring-rx-mini + hardware-dma-ring-rx-jumbo + hardware-dma-ring-tx + +Example: + +iface eth0 inet dhcp + link-speed 100 + link-duplex full + ethernet-autoneg off + ethernet-wol s 46:65:62:69:61:6e + + -- Ben Hutchings , Sat, 21 Feb 2009 03:48:28 +0000 --- ethtool-6+20090307.orig/debian/rules +++ ethtool-6+20090307/debian/rules @@ -0,0 +1,50 @@ +#! /usr/bin/make -f +# (C) 2001, Eric Delaunay + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + ./autogen.sh + ./configure --prefix=/usr --mandir=/usr/share/man + $(MAKE) all CC=$(CC) CFLAGS="$(CFLAGS)" + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean INSTALL Makefile.in aclocal.m4 configure depcomp ethtool-config.h.in install-sh missing + +binary: binary-arch binary-indep + +binary-indep: +# nothing to do for arch independent binary packages + +binary-arch: build + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=`pwd`/debian/ethtool + dh_strip + mkdir -p debian/ethtool/etc/network/if-pre-up.d + install debian/ethtool.if-pre-up debian/ethtool/etc/network/if-pre-up.d/ethtool + mkdir -p debian/ethtool/etc/network/if-up.d + install debian/ethtool.if-up debian/ethtool/etc/network/if-up.d/ethtool + dh_installman ethtool.8 + dh_installdocs AUTHORS NEWS README + dh_installchangelogs ChangeLog + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +.PHONY: binary-arch binary-indep binary build clean --- ethtool-6+20090307.orig/debian/compat +++ ethtool-6+20090307/debian/compat @@ -0,0 +1 @@ +5 --- ethtool-6+20090307.orig/debian/changelog +++ ethtool-6+20090307/debian/changelog @@ -0,0 +1,155 @@ +ethtool (6+20090307-1) unstable; urgency=low + + * New upstream release + - Includes all our patches + + -- Ben Hutchings Sat, 07 Mar 2009 00:41:14 +0000 + +ethtool (6+20080913-2) unstable; urgency=low + + * Add support for settings specified in /etc/network/interfaces. + Closes: #386125 + * Remove long-outdated driver support status from README.Debian + * Add support for arbitrary link speeds + * Add support for GRO (from Linux 2.6.29) + * Fix debian/rules clean to remove all generated files + + -- Ben Hutchings Thu, 05 Mar 2009 05:49:18 +0000 + +ethtool (6+20080913-1) unstable; urgency=low + + * Add myself to uploaders + * New git pull + - Add support for speeds >65535 Mbps + - Add control of RX flow hashing + - Add control of Large Receive Offload. Closes: #503959 + * Drop changes to support Linux 2.2 on SPARC + * Convert remaining changes to quilt + * Fix wrong long name for -p option in man page. Closes: #488067 + * Fix typos in man page. Closes: #506225 + * Expand package description and fix capitalisation. Closes: #469444 + * Use dh_strip to strip binaries. Closes: #436820 + * Do not override CC or CFLAGS in debian/rules + * Remove unused variables from debian/rules + * Use dh_installman instead of deprecated dh_installmanpages + * Update copyright to refer specifically to GPLv2 + * Bump priority to optional + + -- Ben Hutchings Wed, 26 Nov 2008 02:36:02 +0000 + +ethtool (6+20080227-1) unstable; urgency=low + + * New git pull + - Recent fixes for 10000 support. Closes: #468089 + * Fixed debian/watch + Patch by Raphael Geissert + Closes: #449638 + * Bumped Standards-Version to 3.7.3 + * Added homepage control header + * Running autoconf and automake in debian/rules + * Updated debian/copyright + + -- Anibal Monsalve Salazar Wed, 27 Feb 2008 18:08:04 +1100 + +ethtool (6-0) unstable; urgency=low + + * New upstream release. + * Fixed "Reports 10GbE speed as 'Unknown! (10000)'". Closes: #398438. + * Fixed the following lintian message: + - W: ethtool source: debian-rules-ignores-make-clean-error line 22 + + -- Anibal Monsalve Salazar Sat, 11 Aug 2007 20:43:55 +1000 + +ethtool (5-2) unstable; urgency=low + + * Removed outdated information in package description. + Closes: #389689. + + -- Anibal Monsalve Salazar Fri, 11 May 2007 22:12:08 +1000 + +ethtool (5-1) unstable; urgency=low + + * New maintainer. + * New upstream release. Closes: #380681. + * Set Standards-Version to 3.7.2. + * Set debhelper compatibility to 5. + * Added debian/watch. + + -- Anibal Monsalve Salazar Fri, 27 Oct 2006 13:05:16 +1000 + +ethtool (3-1) unstable; urgency=low + + * New upstream release. Closes: #308954. + * Lintian cleanup (debhelper V4 compatibility, updated standard-version). + + -- Eric Delaunay Tue, 25 Oct 2005 22:50:55 +0000 + +ethtool (2-1) unstable; urgency=low + + * New upstream release (new upstream version scheme using only 1 number). + Closes: #275982. + * Removed autoconf build-dependency (don't patch configure.in not to trigger + an autoconf run when building this package; PRE24_COMPAT option is + directly passed to Makefile through CFLAGS). Closes: #213921. + * Strip binary. Closes: #273715. + * Updated README.Debian. Closes: #213699. + * Don't be so verbose when called with bad arg. Display long help message + (ethtool -h) to stdout. Closes: #256249. + + -- Eric Delaunay Tue, 9 Nov 2004 23:40:54 +0100 + +ethtool (1.8-2) unstable; urgency=low + + * Fixed autoconf troubles. Closes: #211982. + * Fixed package and manpage description about which kernel revision ethtool + is compatible with. Closes: #207798. + + -- Eric Delaunay Wed, 24 Sep 2003 19:23:36 +0200 + +ethtool (1.8-1) unstable; urgency=low + + * New upstream release. Closes: #203577. + * Fixed typo in man page. Closes: #199711. + + -- Eric Delaunay Sun, 17 Aug 2003 19:41:14 +0200 + +ethtool (1.7-1) unstable; urgency=low + + * New upstream release. Closes: #179413. + * Build-Depends on debhelper. Closes: #189636. + + -- Eric Delaunay Thu, 24 Apr 2003 23:08:27 +0200 + +ethtool (1.6-1) unstable; urgency=low + + * New upstream release. + * Moved to utils section. Closes: #145095. + + -- Eric Delaunay Sat, 13 Jul 2002 17:41:06 +0200 + +ethtool (1.5-2) unstable; urgency=low + + * Moved ethtool-sparc22.h into ethtool-util.h to get u8 & u32 defined before + use. Closes: #143431. + + -- Eric Delaunay Sat, 20 Apr 2002 21:50:19 +0200 + +ethtool (1.5-1) unstable; urgency=low + + * New upstream release. + * New maintainer address. + * Updated list of drivers that support ethtool protocol in README.debian + based on infos found in 2.4.18 kernel tree. + + -- Eric Delaunay Sun, 14 Apr 2002 19:24:18 +0200 + +ethtool (1.3-1) unstable; urgency=low + + * Initial release forked from sparc-utils 1.8-2 to enable multi-arch support. + * Updated from ethtool 1.0 to 1.3 to enable 2.4 kernel support. + * Hacked backward compatibility with pre-2.4 kernels for use with sparc Happy + Meal (hme) Ethernet cards. + + -- Eric Delaunay Tue, 2 Oct 2001 20:25:05 +0200 + + --- ethtool-6+20090307.orig/debian/ethtool.if-pre-up +++ ethtool-6+20090307/debian/ethtool.if-pre-up @@ -0,0 +1,12 @@ +#!/bin/sh + +ETHTOOL=/usr/sbin/ethtool + +test -x $ETHTOOL || exit 0 + +# Gather together the mixed bag of settings applied with -s/--change +SETTINGS="\ +${IF_ETHERNET_PORT:+ port $IF_ETHERNET_PORT}\ +${IF_DRIVER_MESSAGE_LEVEL:+ msglvl $IF_DRIVER_MESSAGE_LEVEL}\ +" +[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS --- ethtool-6+20090307.orig/debian/ethtool.if-up +++ ethtool-6+20090307/debian/ethtool.if-up @@ -0,0 +1,46 @@ +#!/bin/sh + +ETHTOOL=/usr/sbin/ethtool + +test -x $ETHTOOL || exit 0 + +# Find settings with a given prefix and print them as they appeared in +# /etc/network/interfaces, only with the prefix removed. +gather_settings () { + env | awk -F= "/^IF_$1/ { + sub(\"^IF_$1\", \"\"); + gsub(\"_\", \"-\"); + print tolower(\$1), \$2 + }" +} + +# Gather together the mixed bag of settings applied with -s/--change +SETTINGS="\ +${IF_LINK_SPEED:+ speed $IF_LINK_SPEED}\ +${IF_LINK_DUPLEX:+ duplex $IF_LINK_DUPLEX}\ +" + +# WOL has an optional pass-key +set -- $IF_ETHERNET_WOL +SETTINGS="$SETTINGS${1:+ wol $1}${2:+ sopass $2}" + +# Autonegotiation can be on|off or an advertising mask +case "$IF_ETHERNET_AUTONEG" in +'') ;; +on|off) SETTINGS="$SETTINGS autoneg $IF_ETHERNET_AUTONEG" ;; +*) SETTINGS="$SETTINGS autoneg on $IF_ETHERNET_AUTONEG" ;; +esac + +[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS + +SETTINGS="$(gather_settings ETHERNET_PAUSE_)" +[ -z "$SETTINGS" ] || $ETHTOOL --pause "$IFACE" $SETTINGS + +SETTINGS="$(gather_settings HARDWARE_IRQ_COALESCE_)" +[ -z "$SETTINGS" ] || $ETHTOOL --coalesce "$IFACE" $SETTINGS + +SETTINGS="$(gather_settings HARDWARE_DMA_RING_)" +[ -z "$SETTINGS" ] || $ETHTOOL --ring "$IFACE" $SETTINGS + +SETTINGS="$(gather_settings OFFLOAD_)" +[ -z "$SETTINGS" ] || $ETHTOOL --offload "$IFACE" $SETTINGS --- ethtool-6+20090307.orig/debian/control +++ ethtool-6+20090307/debian/control @@ -0,0 +1,17 @@ +Source: ethtool +Section: utils +Priority: optional +Maintainer: Anibal Monsalve Salazar +Uploaders: Ben Hutchings +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), autoconf, automake1.9, quilt +Homepage: http://sourceforge.net/projects/gkernel/ + +Package: ethtool +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: sparc-utils (<< 1.9-1) +Description: display or change Ethernet device settings + ethtool can be used to query and change settings such as speed, auto- + negotiation and checksum offload on many network devices, especially + Ethernet devices. --- ethtool-6+20090307.orig/debian/watch +++ ethtool-6+20090307/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/gkernel/ ethtool-([\d]+[\.\d]*).tar.gz