ifupdown: updated to 0.6.8 (current Debian version)
authorMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 4 Jan 2007 08:19:31 +0000 (08:19 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 4 Jan 2007 08:19:31 +0000 (08:19 +0000)
packages/ifupdown/ifupdown-0.6.4/gcc34-fix.patch [deleted file]
packages/ifupdown/ifupdown-0.6.8/.mtn2git_empty [moved from packages/ifupdown/ifupdown-0.6.4/.mtn2git_empty with 100% similarity]
packages/ifupdown/ifupdown-0.6.8/busybox.patch [moved from packages/ifupdown/ifupdown-0.6.4/busybox.patch with 100% similarity]
packages/ifupdown/ifupdown-0.6.8/head-tail.patch [moved from packages/ifupdown/ifupdown-0.6.4/head-tail.patch with 100% similarity]
packages/ifupdown/ifupdown-0.6.8/init [moved from packages/ifupdown/ifupdown-0.6.4/init with 100% similarity]
packages/ifupdown/ifupdown-0.6.8/interfaces [moved from packages/ifupdown/ifupdown-0.6.4/interfaces with 100% similarity]
packages/ifupdown/ifupdown-0.6.8/udhcpc.patch [moved from packages/ifupdown/ifupdown-0.6.4/udhcpc.patch with 67% similarity]
packages/ifupdown/ifupdown-0.6.8/zeroconf.patch [moved from packages/ifupdown/ifupdown-0.6.4/zeroconf.patch with 100% similarity]
packages/ifupdown/ifupdown_0.6.8.bb [moved from packages/ifupdown/ifupdown_0.6.4.bb with 78% similarity]

diff --git a/packages/ifupdown/ifupdown-0.6.4/gcc34-fix.patch b/packages/ifupdown/ifupdown-0.6.4/gcc34-fix.patch
deleted file mode 100644 (file)
index f90e312..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-#
-# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
-#
-
---- ifupdown-0.6.4/execute.c~gcc34-fix 2004-04-28 00:16:45.000000000 +0200
-+++ ifupdown-0.6.4/execute.c   2004-04-28 00:17:11.000000000 +0200
-@@ -167,7 +167,7 @@
-                   case 0: /* child */
-                       execle("/bin/sh", "/bin/sh", "-c", str, NULL, environ);
-                       exit(127);
--                  default: /* parent */
-+                  default:; /* parent */
-               }
-               waitpid(child, &status, 0);
-               if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
\ No newline at end of file
@@ -1,18 +1,20 @@
---- ifupdown/inet.defn.orig    2004-04-29 20:16:07.000000000 +0200
-+++ ifupdown/inet.defn 2004-04-29 20:16:13.000000000 +0200
+Index: ifupdown-0.6.8/inet.defn
+===================================================================
+--- ifupdown-0.6.8.orig/inet.defn      2007-01-04 09:11:43.000000000 +0100
++++ ifupdown-0.6.8/inet.defn   2007-01-04 09:12:51.000000000 +0100
 @@ -81,8 +81,7 @@
          elsif (execable("/sbin/dhclient"))
      pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \
          elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100))
 -    udhcpc -n -p /var/run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \
--           [[-c %clientid%]] \
+-           [[-c %client%]] \
 +    udhcpc -b -p /var/run/udhcpc.%iface%.pid -i %iface% -H `cat /etc/hostname` \
          elsif (execable("/sbin/udhcpc") && mylinuxver() >= mylinux(2,2,0))
-     dhcpcd [[-h %hostname%]] [[-i %vendor%]] [[-I %clientid%]] \
+     dhcpcd [[-h %hostname%]] [[-i %vendor%]] [[-I %client%]] \
             [[-l %leasetime%]] %iface% \
 @@ -91,11 +90,11 @@
    down
-     dhclient3 -r -pf /var/run/dhclient.%iface%.pid -lf /var/run/dhclient.%iface%.leases %iface% \
+     dhclient3 -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
          if (execable("/sbin/dhclient3"))
 -    cat /var/run/dhclient.%iface%.pid | xargs -i kill -TERM {} \
 +    kill -TERM `cat /var/run/dhclient.%iface%.pid` \
@@ -23,4 +25,4 @@
 +    kill -TERM `cat /var/run/udhcpc.%iface%.pid` \
          elsif (execable("/sbin/udhcpc"))
      dhcpcd -k %iface% \
-         elsif (execable("/sbin/dhcpcd"))
\ No newline at end of file
+         elsif (execable("/sbin/dhcpcd"))
similarity index 78%
rename from packages/ifupdown/ifupdown_0.6.4.bb
rename to packages/ifupdown/ifupdown_0.6.8.bb
index bf0c826..53ccb5f 100644 (file)
@@ -1,6 +1,3 @@
-BROKEN = "1"
-# Debian moved to 0.6.7
-
 DESCRIPTION = "High level tools to configure network interfaces \
 This package provides the tools ifup and ifdown which may be used to \
 configure (or, respectively, deconfigure) network interfaces, based on \
@@ -9,12 +6,10 @@ LICENSE = "GPL"
 
 SECTION = "base"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.orig.tar.gz \
-           ${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}-4.8.diff.gz;patch=1 \
+SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.tar.gz \
            file://busybox.patch;patch=1 \
            file://udhcpc.patch;patch=1 \
            file://zeroconf.patch;patch=1 \
-           file://gcc34-fix.patch;patch=1 \
            file://init \
            file://interfaces"
 
@@ -28,9 +23,14 @@ do_compile () {
 do_install () {
        install -d ${D}${sysconfdir}/init.d \
                   ${D}${sysconfdir}/network \
+                  ${D}${mandir}/man8 \
+                  ${D}${mandir}/man5 \
                   ${D}${base_sbindir}
        install -m 0755 ifup ${D}${base_sbindir}/
        ln ${D}${base_sbindir}/ifup ${D}${base_sbindir}/ifdown
        install -m 0644 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking
        install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
+       install -m 0644 ifup.8 ${D}${mandir}/man8
+       install -m 0644 interfaces.5 ${D}${mandir}/man5
+       cd ${D}${mandir}/man8 && ln -s ifup.8 ifdown.8
 }