debian/0000775000000000000000000000000011773606624007204 5ustar debian/ifupdown-scripts-zg2.files0000664000000000000000000000007111773606616014247 0ustar ifupdown-scripts-zg2_0.1.20031005-1_all.deb net optional debian/TODO0000664000000000000000000000021211773606616007670 0ustar What still is left to do: - Support GRE Tunnels (probable with a cisco router on the other side) - Support IPSEC - Better Error Handling debian/ifupdown-scripts-zg2.prerm0000664000000000000000000000050611773606616014275 0ustar #!/bin/bash set -e [ -n "$IUDSZG2DEBUG" ] && set -x case "$1" in upgrade) if ! check-ifupdown-scripts-zg2.d-symlinks; then echo "aborting package upgrade, see /etc/network/ifupdown-scripts-zg2.d/00README.linkdir" exit 1 fi ;; remove) kill-ifupdown-scripts-zg2.d-symlinks ;; esac #DEBHELPER# debian/changelog0000664000000000000000000001774311773606616011073 0ustar ifupdown-scripts-zg2 (0.6-1) unstable; urgency=low * add IPv6 support for addresses and routes -- Marc Haber Thu, 28 Jun 2012 21:40:16 +0200 ifupdown-scripts-zg2 (0.4-1) unstable; urgency=low * ACK Didier's NMU * use /bin/bash for init script as well * remove inappropriate variables from link script * adapt README.Debian (Closes: 639109) * use dh instead of cdbs * fix debian/NEWS version number * Standards-Version: 3.9.3 (no changes necessary) * add Vcs-Links to debian/control. Package is now in collab-maint * Source format 3.0 (quilt) * use --oneline in ip link call * vlan: check whether interface with MAC found is actually the Master (Closes: 654815) * fix alphabetical sorting, fix date * new label option to fix DHCP issues -- Marc Haber Wed, 27 Jun 2012 20:52:27 +0200 ifupdown-scripts-zg2 (0.3-4.1) unstable; urgency=low * Non-maintainer upload. * Use bash for ifupdown-scripts-zg2.d/vlan too. Thanks to Joerg Friedrich. Closes: #605232 -- Didier Raboud Mon, 29 Nov 2010 11:33:31 +0100 ifupdown-scripts-zg2 (0.3-4) unstable; urgency=low * remove debian/ifupdown-scripts-zg2.dirs which still created /var/lib/ifupown-scripts-zg2. Thanks to Mika Prokop. Closes: #530640 -- Marc Haber Sun, 31 May 2009 09:02:44 +0200 ifupdown-scripts-zg2 (0.3-3) unstable; urgency=low * fix bug in migration code: make sure that /etc/network/run/ifupdown-scripts-zg2 aktually exists before we move files there. Thanks to Andras Barth. Closes: #529887 -- Marc Haber Fri, 22 May 2009 20:26:32 +0200 ifupdown-scripts-zg2 (0.3-2) unstable; urgency=low * move statedir check from postinst to avoid ifupdown pre-depends. Thanks to Mika Prokop. * do statedir check without /usr. * add vlan to Suggests: -- Marc Haber Sat, 25 Apr 2009 08:12:50 +0200 ifupdown-scripts-zg2 (0.3-1) unstable; urgency=low * move ATM support to examples, I do not use ATM any more and cannot test. * acknowledge udev: We don't rename physical interfaces any more. Instead, we just refuse to take them up if the MAC address doesn't fit. Local admins need to establish their interface names via udev. * Pull set_bool_value from redirects to common-functions. Add proxy-arp script. Thanks to Hilko Bengen. Closes: #300755 * move /var/lib/ifupdown-scripts-zg2 to /etc/network/run/ifupdown-scripts-zg2 * rely on ifupdown to handle this directory properly * depend on ifupdown 0.6.7 or later * Closes: #367076 * Take more care to not take down an active VLAN master interface * Check to take down master interface if last VLAN is taken down * Set master interface up before creating the VLAN. Thanks to Vincent Bernat. Closes: #514907 * Factor out link up/down handling into a dedicated script * Handle bonding interfaces (code mostly untested). Thanks to Vincent Bernat. Closes: #514829 * conditionally source /lib/lsb/init-functions * run only with PATH=/sbin:/bin * only use binaries from /bin and /sbin. Thanks to Kristine Daniels. Closes: #389495 * replace `foo` constructs with $(foo) * run with set -u * eliminate == bashisms * modify package description to mention that other packages might offer similar features. * get rid of the TMPFILE stuff in common-functions, use sed -i instead. * try loading 8021q module befoe checking whether we have VLAN support * remove dh_installinit compatibility hack, we do not need to be backported to woody any more. * Apply patch from Hilko Bengen. Closes: #300752 * use set -e in maintainer scripts instead of bash -e * run autoreconf with current autotools * add automake to Build-Depends * new FSF postal address * move init script to runlevel S * LSBize init script * Required-Start: checkroot, to be consistent with ifupdown * Document this in NEWS * Add example interfaces file. Thanks to Vincent Bernat. Closes: #514822 * ACK Petter's NMU. Closes: #467491 * Move Build-Depends-Indep to Build-Depends. * Add Homepage: field * Add ${misc:Depends} to binary deps * Standards-Version: 3.8.1 (no changes necessary) * debhelper compat level 7 -- Marc Haber Wed, 22 Apr 2009 18:03:40 +0200 ifupdown-scripts-zg2 (0.2-2.1) unstable; urgency=low * Non-maintainer upload to solve release goal. * Add LSB dependency header to init.d scripts (Closes: #467491). -- Petter Reinholdtsen Sat, 5 Apr 2008 22:33:50 +0200 ifupdown-scripts-zg2 (0.2-2) unstable; urgency=low * upload to unstable after pulling wrong version from CVS. Duh. -- Marc Haber Mon, 13 Sep 2004 19:32:27 +0000 ifupdown-scripts-zg2 (0.2-1) experimental; urgency=low * 0.2-1 has suffered multiple rename origes and will not cleanly upgrade from any 0.1 version. It is recommended to purge old versions before installing 0.2. * rename if.d directory to ifupdown-scripts-zg2.d. * fix copyright. * don't zap link dirs, only remove symlinks pointing to ifupdown-scripts-zg2.d. Sorry for this bad goof. Closes: #270237. * Only handle symlinks in subdirectories of /etc/network. * Choose names for symlinks that clearly show that this is our symlink. * Force symlink creation. * Add "no upstream" clause to debian/control. * add debugging hooks to maintainer scripts * change wrong if-pre-down to if-post-down. * don't link 00README files. * remove debian/conffiles. -- Marc Haber Sun, 12 Sep 2004 19:15:05 +0000 ifupdown-scripts-zg2 (0.1-2) experimental; urgency=low * move manpages from .8 to .1 to make lintian happy. * First public release -- Marc Haber Sun, 27 Jun 2004 17:58:23 +0000 ifupdown-scripts-zg2 (0.1-1) experimental; urgency=low * Rename from -tpl to -zg2 since I do no longer work for tpl. * Docs. * Adapt from "scripted" to "manual". * Proper depends clauses to work with official ifupdown. * Major cleanup of the scripts. * Move accounting script to examples. * Include the scripts themselves with the package instead of pulling them from CVS on build time. The scripts in CVS aren't compatible any more anyway. * Major re-work of the symlink handling mechanism. Ship /e/n/if.d-symlink.conf as conffile and scripts to interface conffile with the actual symlink farm. * Architecture: all * Standards-Version: 3.6.1 * First version in CVS -- Marc Haber Sun, 27 Jun 2004 17:28:16 +0000 ifupdown-scripts-tpl (0.1.20021217-0tpl0) unstable; urgency=low * fix bug regarding interface labels on atm interfaces with multiple atm entries -- Marc Haber Tue, 17 Dec 2002 11:08:14 +0000 ifupdown-scripts-tpl (0.1.20021126-0tpl0) unstable; urgency=low * use scripts version that allows dumping routes into other tables -- Marc Haber Tue, 26 Nov 2002 16:40:45 +0000 ifupdown-scripts-tpl (0.1.20021111-0tpl0) unstable; urgency=low * use bug-fixed scripts version -- Marc Haber Mon, 11 Nov 2002 13:50:26 +0000 ifupdown-scripts-tpl (0.1.20021108-0tpl0) unstable; urgency=low * new scripts version for more flexible handling of static routes -- Marc Haber Fri, 8 Nov 2002 14:15:29 +0000 ifupdown-scripts-tpl (0.1.20021009-0tpl0) unstable; urgency=low * new scripts version for ulog-based accounting -- Marc Haber Wed, 9 Oct 2002 09:17:30 +0000 ifupdown-scripts-tpl (0.1.20020829-0tpl0) unstable; urgency=low * added clean script -- Marc Haber Thu, 29 Aug 2002 13:32:05 +0000 ifupdown-scripts-tpl (0.1.20020823-0tpl0) unstable; urgency=low * Initial Version. -- Marc Haber Fri, 23 Aug 2002 14:36:25 +0000 debian/ifupdown-scripts-zg2.init.d0000775000000000000000000000127111773606616014340 0ustar #!/bin/bash set -e STATEDIR="/etc/network/run/ifupdown-scripts-zg2" ### BEGIN INIT INFO # Provides: ifupdown-scripts-zg2 # Required-Start: checkroot # Required-Stop: # X-Start-Before: ifupdown networking # Default-Start: S # Default-Stop: # Short-Description: clean ifupdown-scripts-zg2 state files ### END INIT INFO if [ -r "/lib/lsb/init-functions" ]; then . /lib/lsb/init-functions else echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed" exit 1 fi case "$1" in start|restart) if [ -e $STATEDIR ]; then log_begin_msg -n "Cleaning: $STATEDIR" rm -f $STATEDIR/* log_end_msg 0 fi ;; stop|reload|force-reload) ;; esac debian/control0000664000000000000000000000334711773606616010617 0ustar Source: ifupdown-scripts-zg2 Section: net Priority: optional Maintainer: Marc Haber Build-Depends: debhelper (>= 7.0.50~), automake Standards-Version: 3.9.3 Homepage: http://ftp.debian.org/debian/pool/main/i/ifupdown-scripts-zg2/ Vcs-Git: git://git.debian.org/git/collab-maint/ifupdown-scripts-zg2.git Vcs-Browser: http://git.debian.org/?p=collab-maint/ifupdown-scripts-zg2.git;a=summary Package: ifupdown-scripts-zg2 Architecture: all Depends: ${misc:Depends}, ifupdown (>= 0.6.7), iproute, debianutils (>= 1.6) Suggests: vlan, ndisc6 Provides: ifupdown-scripts Description: Zugschlus' interface scripts for ifupdown's manual method This package contains a set of scripts that are called by ifupdown. They use ifupdown's manual method. Compared to ifupdown's static method, the scripts contained in this package have the following advantages: - CIDR support - support for 802.1q VLAN tagging - built-in handling of static routes Additionally, the code needed to bring down an interface is generated on the fly when the interface is brought up. That way, /etc/network/interfaces changes made while the interface is up don't prevent it from being taken down, allowing "ifdown foo; ifup foo" to activate the changes. . This package is work in progress. Although being in productive use, it is still missing some features, especially regarding source routing, metrics etc. Please feel free to provide patches. . Many of this package's features are implemented in other packages nowadays. However, some features (such as generation of shutdown code at interface init time) are still unique to this package. . This package has its upstream sources maintained in the Debian project, so there is no upstream URL. debian/README.Debian0000664000000000000000000002374511773606616011261 0ustar Zugschlus' interface scripts for ifupdown's manual method ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This package contains a set of scripts that are called by ifupdown. They use ifupdown's manual method. Compared to ifupdown's static method, the scripts contained in this package have the following advantages: - Support for IPv4 and IPv6 - CIDR support - ATM support - support for 802.1q VLAN tagging - search-and-rename ethernet interfaces according to their MAC address - built-in handling of static routes Additionally, the code needed to bring down an interface is generated on the fly when the interface is brought up. That way, /etc/network/interfaces changes made while the interface is up don't prevent it from being taken down, allowing "ifdown foo; ifup foo" to activate the changes. This package is work in progress. Although being in productive use, it is still missing some features, especially regarding source routing, metrics etc. Please feel free to provide patches, especially if they improve the documentation. Options accepted in an "iface foo inet manual" interface stanza ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Option name: accept_redirects Type: boolean Default: Keep system-wide setting Example: accept-redirects 0 If set to 1, the interface accepts redirects. Used by: redirects Option name: address Type: IP/Prefix Default: none, option is mandatory Example: address 127.0.0.1/8 address 2001:db8::100:100/64 IP address to be given to the interface Used by: address Option name: atmarp_$suffix Type: IP VCI Default: none Example: atmarp_otherside 192.168.0.1 0/0/4 Insert the given pair of IP and VCI into the ATM ARP table. VCI is given in the usual card/VPI/VCI format. Order does not matter, but the suffixes need to be different on all atmarp lines. This has not been tested in a very long time Used by: atmarp Option name: brd Type: IP Address or "all0" or "all1" or "none" Default: all1 Example: brd 192.168.0.255 Broadcast address to be given to the Interface. all0 and all1 do the obvious, "none" disables broadcasts. Applies for IPv4 only. Used by: address Option name: device Type: Device Name Default: none, option is mandatory Example: device eth0 Gives the physical device name for the interface. If a "mac" option is present, the interface with the given MAC address is looked up and used if the device name is correct. Use udev's persistent-net feature to associate MAC and interface name; this option is just an additional safetc. If the device is already up or the MAC address is not found, an error is forced. For a VLAN interface, the newly created interface is named after this option as well. If a route option does not give a gateway IP or a target device, the device of the interface is taken as a last resort. Used by: address atm-interfacename common-functions eth-interfacename lo-linkup redirects staticroutes vlan Option name: encapsulation Type: dot1q Default: none Example: encapsulation dot1q Give the encapsulation type for VLAN interfaces. Currently, dot1q is the only value supported. Used by: vlan Option name: flags Type: list of strings Default: none Example: flags secondary Give a flag to an interface. The flag names are written to the state file and can be retrieved from there by other programs. The flag "secondary" is evaluated by address. A secondary IP address must be designated as such by this flag. Otherwise, the interface won't be initialized. This is a precaution against wrong initialization and deinitialization order. Used by: address flags Option name: force-ipv6-rd Type: boolean Default: 0 Example: force-ipv6-rd 1 Explicitly send out an IPv6 router discovery packet on interface initialzation and wait for the answer. This makes sure that we have learned SLAAC IPv6 addresses before we continue. Used by: address Option name: label Type: boolean Default: 1 Example: label 0 In the default behavior, the scripts put a label ("$IF_DEVICE:$IFACE") on an interface if the logical device name differs from the physical one. This is done to make it clear which physical interface a logical one depends on. Unfortunately, this makes numerous DHCP-related packages break in various ways (refer to #617258, #617264). To still allow DHCP to work, use label 0 to cause the scripts to omit the label. Used by: address Option name: mac Type: MAC address Default: none Example: mac 00:0c:6e:68:f2:2e If given, the code that is used to identify a physical interface searches for an interface with the given MAC address. If found, the interface is used. Former versions of ifupdown-scripts-zg2 used to rename the interface to the wanted name. This is no longer done. Use udev's persistent-net feature to establish the association between interface name and MAC address. If not found, an error is forced. If found, but already active with a different name, an error is forced. Used by: eth-interfacename vlan Option name: master Type: Device Name Default: none Example: master eth0 Identify Master interface for VLAN interface. Can be used instead of MAC option. Used by: eth-interfacename vlan Option name: preflft Type: numeric Default: do not set Example: preflft 0 Set preferred lifetime for IP address to n seconds. 0 means that the address is deprecated immediately. Used by: address Option name: proxy-arp Type: boolean Default: Keep system-wide setting Example: proxy-arp 1 If set to 1, Proxy-ARP will be enabled for the interface: Address Resolution Protocol request packets for non-local addresses will then be answered by this interface, provided that received packets to the specified address would not be routed through it. See the Linux Advanced Routing & Traffic Control HOWTO for possible scenarios where this may be useful. Used by: proxy-arp Option name: route_$suffix Type: route_foo prefix gateway/device metric/table or: route_foo ip route and Default: none Example: route_default default 192.168.0.1 route_special ip route 127.0.0.1/8 dev lo route_default default fe80::1%eth0 route_v6 2001:db8:4350:6101::/64 2a01:db8:4071:321d::1 If the string after "route_foo" in the config file does not start with "ip route", the following words are interpreted: prefix - prefix for the route, used as "to" parameter. gateway/device - if IP address, gateway for the route, used as "via" parameter (for IPv6, the gateway string can contain a %iface suffix) otherwise, device for the route, used as "dev" parameter. metric/table - if numeric, metric for the route, used as "metric" parameter. otherwise, table for the route, used as "route" parameter. From these values, appropriate "ip route" command lines are constructed for interface startup and shutdown. This should cover almost all non-exotic cases. For the exotic cases, you can start the string after "route_foo" with "ip route". The remainder of the string is taken as a full ip route command line which will be appended to "ip route add" on interface startup and to "ip route del" on interface shutdown. Order does not matter, but the suffixes need to be different on all route lines. Used by: staticroutes Option name: scope Type: IP address scope Default: none, take default from system Example: scope host Set the scope where the IP address will be valid. Used by: address Option name: scr{up|dn}_$suffix Type: command Default: none Example: see description This options allow to write special commands in /etc/network/interfaces to accomplish things that nobody has thought of while developing these scripts. This is similar to ifupdown's built-in up/down command, but allows the special commands to be issued in the middle of our scripts instead of before the first or after the last script. Additionally, we do some magic on the values, and save the "down" commands to the state file. This way, changes made to /e/n/i while the interface is up are not immediately valid. If the first parameter for a IF_SCRUP line begins with a single quote ', everything until the second single quote ' is treated as a sed expression to modify the command to be executed on iface down. - scrup_1 ':' echo comment - will execute the echo command unchanged on iface up and iface down - scrup_1 echo comment - will execute the echo command on iface up only - scrup_1 's/add /del /' ip addr add dev eth0 127.0.0.1/8 - will execute "ip addr add dev..." on iface up and "ip addr del dev..." on iface down - scrdn_1 ip link set dev eth0 down - will execute the ip command on iface down only The suffixes need to be different on all scr{up|dn} lines, and commands are executed in alphabetically sorted order for scrup, and alphabetically sorted, but reversed order for scrdn. Used by: specialcommands Option name: send-redirects Type: boolean Default: Keep system-wide setting Example: send-redirects 0 If set to 1, the interface issues redirects if necessary. Used by: redirects Option name: type Type: atm, eth, loopback Default: eth Example: type atm Sets the type of interface if that cannot be deduced from other options that might only apply to certain kinds of interface. Used by: atm-interfacename atmarp eth-interfacename lo-linkup Option name: wait-tentative Type: boolean Default: 1 Example: wait-tentative 1 Wait up to 30 seconds for all IP addresses on an interface to leave tentative state Used by: address Option name: verbose Type: Boolean Default: 0 Example: verbose 1 Makes the scripts more verbose on execution for debugging. Used by: common-functions Option name: vlan-id Type: Numeric Default: none Example: vlan-id 5 Sets the dot1q VLAN ID for a VLAN interface. Used by: eth-interfacename vlan -- Marc Haber 2012-06-28 debian/patches/0000755000000000000000000000000011773606624010631 5ustar debian/patches/series0000644000000000000000000000001711773606624012044 0ustar debian-changes debian/patches/debian-changes0000644000000000000000000000664411773606624013416 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ifupdown-scripts-zg2 (0.6-1) unstable; urgency=low . * add IPv6 support for addresses and routes Author: Marc Haber --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ifupdown-scripts-zg2-0.6.orig/scripts/ifupdown-scripts-zg2.d/common-functions +++ ifupdown-scripts-zg2-0.6/scripts/ifupdown-scripts-zg2.d/common-functions @@ -16,7 +16,10 @@ me="$0" [ ${IF_DEBUG:-} ] && echo "$me $IFACE $MODE debug" [ "$METHOD" = "manual" ] || exit 0 -[ "$ADDRFAM" = "inet" ] || exit 0 + +if [ "$ADDRFAM" != "inet" ] && [ "$ADDRFAM" != "inet6" ]; then + exit 0 +fi # common functions for interface scripts @@ -277,10 +280,10 @@ get_if_mac() addrtype() { ADDR="$1" - if echo $ADDR | grep -q '^[0-9\.]\+$'; then + if echo $ADDR | grep -q '^[0-9\./]\+$'; then echo "v4" return 0 - elif echo $ADDR | grep -q '^[0-9a-fA-F\:]\+$'; then + elif echo $ADDR | grep -q '^[0-9a-fA-F\:/]\+$'; then echo "v6" return 0 else --- ifupdown-scripts-zg2-0.6.orig/scripts/ifupdown-scripts-zg2.d/address +++ ifupdown-scripts-zg2-0.6/scripts/ifupdown-scripts-zg2.d/address @@ -10,18 +10,43 @@ # IF_BRD = broadcast address (all1 default, all0/none allowed) # IF_FLAGS = "secondary" # IF_LABEL = set label (1 default) +# IF_FORCE_IPV6_RD = force IPv6 Router Discovery before initializing # IF_WAIT_TENTATIVE = wait for non-tentative IP addresses (1 default) # IF_PREFLFT = preferred lifetime . /etc/network/ifupdown-scripts-zg2.d/common-functions # check that an address has been configured for this interface -# TODO: Maybe check if it actually looks like an IP address? [ -z "${IF_ADDRESS:-}" ] && exit 0 +ADDRTYPE="$(addrtype $IF_ADDRESS)" +if [ "$ADDRTYPE" != "v4" ] && [ "$ADDRTYPE" != "v6" ]; then + abort "address $IF_ADDRESS does not look like an IP address" +fi case "$MODE" in start) - + + # send IPv6 router discovery, making sure that we learn addresses + if [ "${IF_FORCE_IPV6_RD:-0}" = "1" ]; then + if command -v rdisc6 > /dev/null; then + loop=2 + while ! rdisc6 --retry 1 --wait 2000 --single --quiet $IF_DEVICE >/dev/null 2>/dev/null; do + if [ $loop -eq 2 ]; then + verbose "retrying IPv6 RD" + fi + if [ $loop -eq 0 ]; then + verbose "giving up on IPv6 RD" + rdisc6 --retry 1 --wait 2000 --single $IF_DEVICE + break + fi + sleep 1 + loop=$(($loop-1)) + done + else + abort "force-ipv6-rd needs the ndisc6 package" + fi + fi + # build address parameters, parse flags ADDRPARM="dev $IF_DEVICE" debian/ifupdown-scripts-zg2.install0000664000000000000000000000037011773606616014615 0ustar debian/00README.linkdir etc/network/ifupdown-scripts-zg2.d debian/00README.linkdir etc/network/if-up.d debian/00README.linkdir etc/network/if-pre-up.d debian/00README.linkdir etc/network/if-down.d debian/00README.linkdir etc/network/if-post-down.d debian/00README.linkdir0000664000000000000000000000231011773606616011654 0ustar README for a link directory of ifupdown-scripts-zg2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This directory contains symlinks to interface scripts in /etc/network/ifupdown-scripts-zg2.d. The scheme is intended to kind of mimic the system V init script scheme. Since the symlinks carry important information (which interface scripts should be called in which order), they should be considered conffiles. However, dpkg does not currently allow symlinks to conffiles to be contained in packages, and it does not supply any handling for that scheme. If you feel the need to change the symlinks, please do so in the dpkg conffile /etc/network/ifupdown-scripts-zg2.d-symlink.conf and run update-ifupdown-scripts-zg2.d-symlinks to update the symlinks themselves. If you manually change the symlinks without going through /etc/network/ifupdown-scripts-zg2.d-symlink.conf, updating this package will fail since the package checks if the symlinks are in sync with the conffile in the preinst maintainer script. If you think that there is a better way to handle this problem, please get in touch with the package maintainer via the Debian BTS. / Marc Haber, 2003-10-05 debian/ifupdown-scripts-zg2.dirs0000664000000000000000000000003611773606616014107 0ustar /var/lib/ifupdown-scripts-zg2 debian/compat0000664000000000000000000000000211773606616010403 0ustar 7 debian/copyright0000664000000000000000000000150011773606616011134 0ustar Copyright information for ifupdown-scripts-zg2 The first Debian package was created as ifupdown-scripts-tpl, by Marc Haber on Thu, 22 Aug 2002 11:44:46 +0200. Copyright (C) 2002-2003 Marc Haber Contributions by Andreas Ferber Development has been partially sponsored by toplink-plannet GmbH, Karlsruhe, Germany. They stopped sponsoring in June 2003 when Marc Haber was fired. Marc continues development on his own time. Copyright: GNU General Public License, Version 2 A copy of the GNU General Public License is available as /usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. debian/source/0000775000000000000000000000000011773606616010505 5ustar debian/source/format0000664000000000000000000000001411773606616011713 0ustar 3.0 (quilt) debian/NEWS0000664000000000000000000000245711773606616007714 0ustar ifupdown-scripts-zg2 (0.3-1) unstable; urgency=low ifupdown-scripts-zg2 have moved their state files to /etc/network/run. We rely on ifupdown to create this directory in a secure manner so that it is only writeable by root. It is necessary that /etc/init.d/ifupdown-scripts-zg2 runs _after_ /etc/init.d/ifupdown-clean, and _before_ /etc/init.d/ifupdown. On a traditionally configured system, you'll have to take care of that yourself (we try to have the init script's priorities appropriately set). On an LSB system, the ifupdown-clean - ifupdown-scripts-zg2 dependency is forced by LSB headers in ifupdown-scripts-zg2, but the ifupdown-scripts-zg2 - ifupdown dependency can only be forced by LSB headers in ifupdown itself (see #401448). Until this wishlist request against ifupdown is addressed, you'll need to double-check yourself. ATM support has been moved to examples (and is thus deactivated in the package) since I do not have access to Linux ATM equipment any more and cannot do any tests. The scripts do not rename interfaces any more. Interfaces with a wrong MAC address are not taken up. If you want to rename interfaces, please do so via udev (/etc/udev/rules.d/70-persistent-net.rules) -- Marc Haber Sun, 3 Dec 2006 18:04:54 +0100 debian/ifupdown-scripts-zg2.preinst0000664000000000000000000000052411773606616014634 0ustar #!/bin/bash set -e [ -n "$IUDSZG2DEBUG" ] && set -x CHECKIFDSYMLINKS="/usr/bin/check-ifupdown-scripts-zg2.d-symlinks" #if [ "$1" = "configure" ]; then if [ -x $CHECKIFDSYMLINKS ] && ! $CHECKIFDSYMLINKS; then echo >&2 "aborting package installation, see /etc/network/ifupdown-scripts-zg2.d/00README.linkdir" exit 1 fi #fi #DEBHELPER# debian/rules0000775000000000000000000000016611773606616010270 0ustar #!/usr/bin/make -f %: dh $@ override_dh_installinit: dh_installinit --no-start --update-rcd-params="start 18 S ." debian/examples0000664000000000000000000000006111773606616010743 0ustar scripts/examples/if-scripts interfaces-example debian/ifupdown-scripts-zg2.postinst0000664000000000000000000000176711773606616015045 0ustar #!/bin/bash set -e [ -n "$IUDSZG2DEBUG" ] && set -x STATEPDIR="/etc/network/run" STATEDIR="$STATEPDIR/ifupdown-scripts-zg2" OLDSTATEDIR="/var/lib/ifupdown-scripts-zg2" if [ "$1" = "configure" ]; then update-ifupdown-scripts-zg2.d-symlinks if [ -d "$OLDSTATEDIR" ]; then # OLDSTATEDIR stll exists, migrate state files from there if ! [ -d "$STATEPDIR" ]; then echo >&2 "ERR: missing $STATEPDIR. Is ifupdown configured?" exit 1 fi [ -d "$STATEDIR" ] || mkdir -m 755 "$STATEDIR" for file in $(ls ${OLDSTATEDIR}/*.state 2>/dev/null); do if ! [ -e "$STATEDIR/$(basename $file)" ]; then mv "$file" "$STATEDIR/$(basename $file)" else echo >&2 "ERR: $(basename $file) exists in both $STATEDIR and $OLDSTATEDIR. This should not happen." exit 1 fi done # OLDSTATEDIR should be empty now if [ "$(ls -A $OLDSTATEDIR | wc -l)" != 0 ]; then echo >&2 "ERR: $OLDSTATEDIR not empty." exit 1 fi rmdir "$OLDSTATEDIR" fi fi #DEBHELPER#