summaryrefslogtreecommitdiff
path: root/recipes/mamona/usbnet_0.1.0.bb
blob: 37c4189082d656cb43945a48cbfdeba37ca05f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION = "USB Networking"
HOMEPAGE = "http://dev.openbossa.org/trac/mamona/"
SECTION = "utils"
LICENSE = "GPL"
RDEPENDS = "module-init-tools busybox"
PR = "r1"

PACKAGES = "${PN}"

SRC_URI = 	"file://usbnet \
             file://default/usbnet \
             file://interfaces.usbnet"

inherit update-rc.d

INITSCRIPT_NAME = "usbnet"
INITSCRIPT_PARAMS = "defaults"

# Skipping...
do_configure () {
}

# Skipping...
do_stage () {
}

# Skipping...
do_compile () {
}

do_install () {
    install -d ${D}${sysconfdir}/init.d
    install -d ${D}${sysconfdir}/default
    install -d ${D}${sysconfdir}/network
    install -m 0755 ${WORKDIR}/usbnet ${D}${sysconfdir}/init.d
    install -m 0644 ${WORKDIR}/default/usbnet ${D}${sysconfdir}/default
    install -m 0644 ${WORKDIR}/interfaces.usbnet ${D}${sysconfdir}/network
}