summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-devtools/node-red/node-red_0.11.1.bb40
-rw-r--r--recipes-devtools/node-red/node-red_0.9.1.bb33
2 files changed, 40 insertions, 33 deletions
diff --git a/recipes-devtools/node-red/node-red_0.11.1.bb b/recipes-devtools/node-red/node-red_0.11.1.bb
new file mode 100644
index 0000000..9e441c6
--- /dev/null
+++ b/recipes-devtools/node-red/node-red_0.11.1.bb
@@ -0,0 +1,40 @@
+DESCRIPTION = "Node-RED"
+HOMEPAGE = "http://nodered.org"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+DEPENDS = "nodejs nodejs-native"
+PR = "r0"
+
+inherit npm
+
+S = "${WORKDIR}"
+
+do_install() {
+
+ # npm install locally
+ oe_runnpm install --prefix ./ node-red@0.11.1
+
+ # npm install more stuff
+ oe_runnpm install --prefix ./node_modules/node-red serialport nodemailer
+
+ # modules needed for loragw
+ oe_runnpm install --prefix ./node_modules/node-red extend dissolve node-constants
+
+ # install m2x node
+ oe_runnpm install --prefix ./node_modules/node-red node-red-m2x
+
+ # remove dupe deps
+ oe_runnpm dedupe
+
+ # remove Raspberry PI node
+ rm ./node_modules/node-red/nodes/core/hardware/36-rpi-gpio.html
+ rm ./node_modules/node-red/nodes/core/hardware/36-rpi-gpio.js
+ rm ./node_modules/node-red/nodes/core/hardware/nrgpio
+ rm ./node_modules/node-red/nodes/core/hardware/nrgpio.py
+
+ # install node-red
+ install -d ${D}/opt/node-red
+ cp -r ./node_modules/node-red/* ${D}/opt/node-red/
+}
+
+FILES_${PN} += "/opt/node-red"
diff --git a/recipes-devtools/node-red/node-red_0.9.1.bb b/recipes-devtools/node-red/node-red_0.9.1.bb
deleted file mode 100644
index dbcc5d4..0000000
--- a/recipes-devtools/node-red/node-red_0.9.1.bb
+++ /dev/null
@@ -1,33 +0,0 @@
-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"