summaryrefslogtreecommitdiff
path: root/recipes/ifupdown
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@buglabs.net>2010-03-31 15:43:29 +0200
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2010-03-31 15:47:33 +0200
commit920132b42db5454b553b8f360a0be325849692a7 (patch)
treebb128a69d11f6be556edb3888a06b5c52a392357 /recipes/ifupdown
parentd36c91f6167c180674b49635199fb7e9bbf3fbbf (diff)
ifupdown: update to 0.6.10 and do not ship /etc/network/interfaces
Init script was renamed to ifup like it is in ifupdown-ubuntu Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'recipes/ifupdown')
-rw-r--r--recipes/ifupdown/ifupdown-0.6.10/busybox.patch (renamed from recipes/ifupdown/ifupdown-0.6.8/busybox.patch)0
-rw-r--r--recipes/ifupdown/ifupdown-0.6.10/head-tail.patch (renamed from recipes/ifupdown/ifupdown-0.6.8/head-tail.patch)0
-rw-r--r--recipes/ifupdown/ifupdown-0.6.10/init (renamed from recipes/ifupdown/ifupdown-0.6.8/init)0
-rw-r--r--recipes/ifupdown/ifupdown-0.6.10/zeroconf.patch (renamed from recipes/ifupdown/ifupdown-0.6.8/zeroconf.patch)0
-rw-r--r--recipes/ifupdown/ifupdown-0.6.8/interfaces2
-rw-r--r--recipes/ifupdown/ifupdown-0.6.8/udhcpc.patch28
-rw-r--r--recipes/ifupdown/ifupdown_0.6.10.bb (renamed from recipes/ifupdown/ifupdown_0.6.8.bb)14
7 files changed, 8 insertions, 36 deletions
diff --git a/recipes/ifupdown/ifupdown-0.6.8/busybox.patch b/recipes/ifupdown/ifupdown-0.6.10/busybox.patch
index 5619ab7c0a..5619ab7c0a 100644
--- a/recipes/ifupdown/ifupdown-0.6.8/busybox.patch
+++ b/recipes/ifupdown/ifupdown-0.6.10/busybox.patch
diff --git a/recipes/ifupdown/ifupdown-0.6.8/head-tail.patch b/recipes/ifupdown/ifupdown-0.6.10/head-tail.patch
index a86a25d2fb..a86a25d2fb 100644
--- a/recipes/ifupdown/ifupdown-0.6.8/head-tail.patch
+++ b/recipes/ifupdown/ifupdown-0.6.10/head-tail.patch
diff --git a/recipes/ifupdown/ifupdown-0.6.8/init b/recipes/ifupdown/ifupdown-0.6.10/init
index d258d51ff4..d258d51ff4 100644
--- a/recipes/ifupdown/ifupdown-0.6.8/init
+++ b/recipes/ifupdown/ifupdown-0.6.10/init
diff --git a/recipes/ifupdown/ifupdown-0.6.8/zeroconf.patch b/recipes/ifupdown/ifupdown-0.6.10/zeroconf.patch
index 33745db6ff..33745db6ff 100644
--- a/recipes/ifupdown/ifupdown-0.6.8/zeroconf.patch
+++ b/recipes/ifupdown/ifupdown-0.6.10/zeroconf.patch
diff --git a/recipes/ifupdown/ifupdown-0.6.8/interfaces b/recipes/ifupdown/ifupdown-0.6.8/interfaces
deleted file mode 100644
index f1bd92ed2b..0000000000
--- a/recipes/ifupdown/ifupdown-0.6.8/interfaces
+++ /dev/null
@@ -1,2 +0,0 @@
-auto lo
-iface lo inet loopback
diff --git a/recipes/ifupdown/ifupdown-0.6.8/udhcpc.patch b/recipes/ifupdown/ifupdown-0.6.8/udhcpc.patch
deleted file mode 100644
index 5b662e7988..0000000000
--- a/recipes/ifupdown/ifupdown-0.6.8/udhcpc.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-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 %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 %client%]] \
- [[-l %leasetime%]] %iface% \
-@@ -91,11 +90,11 @@
- down
- 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` \
- elsif (execable("/sbin/dhclient"))
- pump -i %iface% -r \
- elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100))
-- cat /var/run/udhcpc.%iface%.pid | xargs -i kill -TERM {} \
-+ kill -TERM `cat /var/run/udhcpc.%iface%.pid` \
- elsif (execable("/sbin/udhcpc"))
- dhcpcd -k %iface% \
- elsif (execable("/sbin/dhcpcd"))
diff --git a/recipes/ifupdown/ifupdown_0.6.8.bb b/recipes/ifupdown/ifupdown_0.6.10.bb
index 53ccb5fe6c..6bc4f472df 100644
--- a/recipes/ifupdown/ifupdown_0.6.8.bb
+++ b/recipes/ifupdown/ifupdown_0.6.10.bb
@@ -8,13 +8,13 @@ SECTION = "base"
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://init \
- file://interfaces"
+ file://init "
EXTRA_OEMAKE = ""
+inherit update-rc.d
+
do_compile () {
chmod a+rx *.pl *.sh
oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'"
@@ -22,15 +22,17 @@ do_compile () {
do_install () {
install -d ${D}${sysconfdir}/init.d \
- ${D}${sysconfdir}/network \
+ ${D}${sysconfdir}/network/run/
${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 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ifup
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
}
+
+INITSCRIPT_NAME = "ifup"
+INITSCRIPT_PARAMS = "start 39 S . stop 39 0 6 1 ."