aboutsummaryrefslogtreecommitdiff
path: root/recipes/mamona/usbnet_0.1.0.bb
blob: 65156a3e3b14638ab34343de8ca27d549e3e1e5a (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_${PN} = "module-init-tools busybox"
PR = "r2"

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
}