Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / ifupdown / ifupdown_0.6.4.oe
1 DESCRIPTION = "High level tools to configure network interfaces \
2 This package provides the tools ifup and ifdown which may be used to \
3 configure (or, respectively, deconfigure) network interfaces, based on \
4 the file /etc/network/interfaces."
5 LICENSE = "GPL"
6
7 SECTION = "base"
8
9 SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.orig.tar.gz \
10            ${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}-4.8.diff.gz;patch=1 \
11            file://busybox.patch;patch=1 \
12            file://udhcpc.patch;patch=1 \
13            file://zeroconf.patch;patch=1 \
14            file://gcc34-fix.patch;patch=1 \
15            file://init \
16            file://interfaces"
17
18 EXTRA_OEMAKE = ""
19
20 do_compile () {
21         chmod a+rx *.pl *.sh
22         oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'"
23 }
24
25 do_install () {
26         install -d ${D}/etc/init.d \
27                    ${D}/etc/network \
28                    ${D}/sbin
29         install -m 0755 ifup ${D}/sbin/
30         ln ${D}/sbin/ifup ${D}/sbin/ifdown
31         install -m 0644 ${WORKDIR}/init ${D}/etc/init.d/networking
32         install -m 0644 ${WORKDIR}/interfaces ${D}/etc/network/interfaces
33 }