blob: dbcc5d47d1a49a0c169e68d74402b62e551d9125 (
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
|
DESCRIPTION = "Node-RED"
HOMEPAGE = "http://nodered.org"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
DEPENDS = "nodejs nodejs-native"
PR = "r0"
inherit npm
# tag 0.9.1
SRCREV = "da1321f1dea0545ed9782d7fa6a18b855bafd8d9"
SRC_URI = "git://github.com/node-red/node-red.git \
"
S = "${WORKDIR}/git"
do_install() {
# npm install dependencies
oe_runnpm install --production
# npm install more stuff
# nodemailer 0.7.1 is latest that can be used with node 0.8.x
oe_runnpm install serialport@1.4.2 nodemailer@0.7.1
# remove dupe deps
oe_runnpm dedupe
# install node-red
install -d ${D}/opt/node-red
cp -r * ${D}/opt/node-red/
}
FILES_${PN} += "/opt/node-red"
|