summaryrefslogtreecommitdiff
path: root/recipes-devtools/node-red
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2020-05-21 08:44:40 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-05-21 13:05:31 +0300
commit1f8aaf8a9104af92b86dac7ac0c1d5c4ad73a224 (patch)
treea9cb671a859458b41c226d7812b7a096d3a7b2c9 /recipes-devtools/node-red
parent0b05e87874108a22f9ffed069c0b98fa9e5f473c (diff)
downloadmeta-mlinux-atmel-1f8aaf8a9104af92b86dac7ac0c1d5c4ad73a224.tar.gz
meta-mlinux-atmel-1f8aaf8a9104af92b86dac7ac0c1d5c4ad73a224.tar.bz2
meta-mlinux-atmel-1f8aaf8a9104af92b86dac7ac0c1d5c4ad73a224.zip
Remove duplicate
Diffstat (limited to 'recipes-devtools/node-red')
-rw-r--r--recipes-devtools/node-red/node-red_0.15.3.bb59
1 files changed, 0 insertions, 59 deletions
diff --git a/recipes-devtools/node-red/node-red_0.15.3.bb b/recipes-devtools/node-red/node-red_0.15.3.bb
deleted file mode 100644
index bacf9fd..0000000
--- a/recipes-devtools/node-red/node-red_0.15.3.bb
+++ /dev/null
@@ -1,59 +0,0 @@
-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"
-RDEPENDS_${PN} += "bash"
-PR = "r0"
-
-inherit npm-base
-
-
-S = "${WORKDIR}"
-
-do_install() {
-
- # npm install locally
- oe_runnpm install --prefix ./ node-red@0.15.3
-
- # npm install more stuff
- oe_runnpm install --prefix./node_modules/node-red nodemailer
- # Build patched serialport.
- # Original is https://registry.npmjs.org/serialport/-/serialport-1.7.4.tgz
- oe_runnpm install --prefix ./node_modules/node-red http://multitech.net/mlinux/sources/node-red-serialport-1.7.4-mt1.tgz
-
- # 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
-
- # remove x86_64 serialport 0.0.5
- rm -rf ./node_modules/node-red/node_modules/node-red-node-serialport
-
- # install node-red
- install -d ${D}/opt/node-red
- cp -r ./node_modules/node-red/* ${D}/opt/node-red/
-}
-pkg_preinst_${PN}() {
- if grep 'Application Execution Platform with mLinux' /etc/issue ; then
- ((aep=1))
- fi
- ls /etc/init.d >/tmp/init.txt
-
- if ((aep == 1)) ; then
- logger -t opkg -s -p user.error 'Application Execution Platform detected in /etc/issue -- this node-red package is for mLinux not AEP'
- exit 1
- fi
-}
-
-FILES_${PN} += "/opt/node-red"