56c5a5db8151540cabce2425a2cb6a221d77ca12
[vuplus_openembedded] / ifupdown / ifupdown_0.6.4.oe
1 DEPENDS = "virtual/libc"
2 RDEPENDS = "libc6"
3 DESCRIPTION = "High level tools to configure network interfaces \
4 This package provides the tools ifup and ifdown which may be used to \
5 configure (or, respectively, deconfigure) network interfaces, based on \
6 the file /etc/network/interfaces."
7
8 SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.orig.tar.gz \
9            ${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}-4.6.diff.gz;patch=1 \
10            file://${FILESDIR}/busybox.patch;patch=1 \
11            file://${FILESDIR}/udhcpc.patch;patch=1 \
12            file://${FILESDIR}/zeroconf.patch;patch=1"
13
14 EXTRA_OEMAKE = ""
15
16 do_compile () {
17         chmod a+rx *.pl *.sh
18         oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'"
19 }
20
21 do_install () {
22         install -d ${D}/etc/init.d \
23                    ${D}/etc/network \
24                    ${D}/sbin
25         install -m 0755 ifup ${D}/sbin/
26         ln ${D}/sbin/ifup ${D}/sbin/ifdown
27         install -m 0644 ${FILESDIR}/init ${D}/etc/init.d/networking
28         install -m 0644 ${FILESDIR}/interfaces ${D}/etc/network/interfaces
29 }