debian/0000755000000000000000000000000012214355616007173 5ustar debian/copyright0000644000000000000000000000373612212161665011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://0pointer.de/lennart/projects/ifmetric/ Files: * Copyright: 2003 Lennart Poettering License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2003-2006 Chris Hanson 2013 Michael Shuler License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. debian/patches/0000755000000000000000000000000012212733124010612 5ustar debian/patches/series0000644000000000000000000000006112212154532012024 0ustar ifmetric.c_typo nlrequest.c_packet-too-small_fix debian/patches/nlrequest.c_packet-too-small_fix0000644000000000000000000000120512212733124017100 0ustar Description: Fix "NETLINK: Packet too small or truncated!" error. Author: Benedek László Bug-Debian: http://bugs.debian.org/514197 Index: ifmetric/src/nlrequest.c =================================================================== --- ifmetric.orig/src/nlrequest.c 2013-09-05 14:10:42.000000000 -0500 +++ ifmetric/src/nlrequest.c 2013-09-05 14:19:06.573420862 -0500 @@ -44,7 +44,7 @@ for (;;) { int bytes; - char replybuf[2048]; + char replybuf[4096]; struct nlmsghdr *p = (struct nlmsghdr *) replybuf; if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) { debian/patches/ifmetric.c_typo0000644000000000000000000000201212212733024013625 0ustar Description: Correct spelling-error-in-binary s/Recieved/Received/ Author: Michael Shuler Index: ifmetric/src/ifmetric.c =================================================================== --- ifmetric.orig/src/ifmetric.c 2013-09-04 18:37:59.000000000 -0500 +++ ifmetric/src/ifmetric.c 2013-09-04 19:08:38.539750778 -0500 @@ -38,7 +38,7 @@ case RTA_OIF: if (RTA_PAYLOAD(a) != sizeof(int)) { - fprintf(stderr, "NETLINK: Recieved corrupt RTA_OIF payload.\n"); + fprintf(stderr, "NETLINK: Received corrupt RTA_OIF payload.\n"); return -1; } @@ -102,7 +102,7 @@ case RTA_PRIORITY: if (RTA_PAYLOAD(a) != sizeof(int)) { - fprintf(stderr, "NETLINK: Recieved corrupt RTA_PRIORITY payload.\n"); + fprintf(stderr, "NETLINK: Received corrupt RTA_PRIORITY payload.\n"); return NULL; } debian/watch0000644000000000000000000000040412211712726010216 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ http://0pointer.de/lennart/projects/ifmetric/ (?:.*/)?ifmetric[_\-\.]?(\d\S+)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian/source/0000755000000000000000000000000012211746067010474 5ustar debian/source/format0000644000000000000000000000001412211712726011675 0ustar 3.0 (quilt) debian/ifmetric.if-up0000644000000000000000000000016312211712726011733 0ustar #!/bin/sh if [ -x /usr/sbin/ifmetric -a "${IF_METRIC}" ]; then /usr/sbin/ifmetric "${IFACE}" "${IF_METRIC}" fi debian/upstream_changelog0000644000000000000000000000060312212135311012746 0ustar Upstream changelog included for Debian packaging from: http://0pointer.de/lennart/projects/ifmetric/#news ==News== Sat Jan 24 2004: Version 0.3 release; fix compatibility with Linux 2.6 Sat Aug 23 2003: Version 0.2b release; URL fix Sat Aug 23 2003: Version 0.2 released; changes include updated documentation, build system, contact information Mon Aug 4 2003: Version 0.1 released debian/changelog0000644000000000000000000000323712214355616011052 0ustar ifmetric (0.3-3) unstable; urgency=low * New maintainer. Closes: #721769 * Update to standards-version 3.9.4. * Update to compat 9 for hardening build flags. * Remove empty debian/{pre,post}{inst,rm} files. * Add debian/source/format - 3.0 (quilt). * Add Vcs-* and Homepage fields to debian/control. * Update debian/copyright to machine readable format. * Switch debian/copyright license reference from GPL symlink to GPL-2. * Move debian/ifmetric.ifup to debian/ifmetric.if-up. * Add debian/watch file. * Switch from cdbs to dh. * Add debian/source/local-options to keep build source clean. * Patch src/ifmetric.c for s/Recieved/Received/ typo. * Add debian/upstream_changelog from homepage News section. * Add patch to fix "NETLINK: Packet too small or truncated!" error. Thanks to Benedek László for the patch. Closes: #514197, LP: #896584 -- Michael Shuler Thu, 05 Sep 2013 14:53:17 -0500 ifmetric (0.3-2) unstable; urgency=low * debian/control: bump standards-version (no changes). * debian/copyright: update FSF address. -- Chris Hanson Tue, 17 Jan 2006 01:02:42 -0500 ifmetric (0.3-1) unstable; urgency=low * New upstream version. * Add ifup script implementing "metric" keyword. (closes: Bug#224396) -- Chris Hanson Mon, 5 Apr 2004 23:08:00 -0400 ifmetric (0.2b-2) unstable; urgency=low * Add build-dependency on lynx. (closes: Bug#219689) -- Chris Hanson Sun, 9 Nov 2003 00:24:15 -0500 ifmetric (0.2b-1) unstable; urgency=low * Initial packaging. (closes: Bug#205448) -- Chris Hanson Tue, 28 Oct 2003 00:01:21 -0500 debian/control0000644000000000000000000000134612212130546010571 0ustar Source: ifmetric Section: net Priority: extra Maintainer: Michael Shuler Build-Depends: debhelper (>= 9), lynx Standards-Version: 3.9.4 Homepage: http://0pointer.de/lennart/projects/ifmetric/ Vcs-Git: git://anonscm.debian.org/collab-maint/ifmetric.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/ifmetric.git Package: ifmetric Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Set routing metrics for a network interface ifmetric is a Linux tool for setting the metrics of all IPv4 routes attached to a given network interface at once. This may be used to change the priority of routing IPv4 traffic over the interface. Lower metrics correlate with higher priorities. debian/ifmetric.dirs0000644000000000000000000000002412211712726011650 0ustar etc/network/if-up.d debian/compat0000644000000000000000000000000212211712726010365 0ustar 9 debian/ifmetric.docs0000644000000000000000000000000712211712726011640 0ustar README debian/rules0000755000000000000000000000030412212136036010237 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_installchangelogs: dh_installchangelogs dh_installchangelogs debian/upstream_changelog