summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-07-17 19:06:31 -0500
committerJohn Klug <john.klug@multitech.com>2017-07-17 19:06:31 -0500
commit44ee8083e0de33939a38ccf07252be99a0aa235d (patch)
tree9c3ebb4757c1274a2dc47ff5a8ffd2b7f35ec258
parentfb4dec1c41b48eff4f9721d5cbf042ace7c20c61 (diff)
downloadmeta-mlinux-44ee8083e0de33939a38ccf07252be99a0aa235d.tar.gz
meta-mlinux-44ee8083e0de33939a38ccf07252be99a0aa235d.tar.bz2
meta-mlinux-44ee8083e0de33939a38ccf07252be99a0aa235d.zip
Remove AEP stuff from recipe
-rw-r--r--recipes-devtools/node-red/node-red_0.15.3.bb70
1 files changed, 3 insertions, 67 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
index f07197c..ae3d6e7 100644
--- a/recipes-devtools/node-red/node-red_0.15.3.bb
+++ b/recipes-devtools/node-red/node-red_0.15.3.bb
@@ -3,48 +3,19 @@ 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 = "r57"
+PR = "r0"
inherit npm
-#inherit npm-base
-inherit update-rc.d
-
-#SRCREV_FORMAT = "mts-gpio-rmts-mcard-rmts-serial-rgpio-rlora-rserial-rsms"
-
-SRCREV_mtsgpio = "62ab78557a7e26d3014d095ddbcbd4798a4e1529"
-SRCREV_mtsmcard = "7d8047172ab2096cee490b1bed2dd763bc4a98cb"
-SRCREV_mtsserial = "a340f16efff752bf469692e8e94a9adfe227e30a"
-SRCREV_gpio = "eef9c35569898598a42c5cf12a0babd76cf3ae0a"
-SRCREV_lora = "23e4b52099786917c8a47ca9af0b80f4eb0872c1"
-SRCREV_serial = "24bcb6b62cb866606c50d2c08695c098889da56e"
-SRCREV_sms = "442447a0ef1d68e42b61e1e9b3d8a82e766a85e9"
-SRCREV_extras = "90ad126f506f34dcf5a30e7e27b4ff985ac32c8f"
-
-SRC_URI = "file://node-red.init \
- file://update-flows \
- file://ui-red.js.patch;apply=false \
- "
S = "${WORKDIR}"
-INITSCRIPT_NAME = "node-red"
-INITSCRIPT_PARAMS = "defaults 95 21"
-
-do_compile() {
- echo "directory: `pwd`"
-}
-
do_install() {
# npm install locally
- oe_runnpm install --prefix ./ --build-from-source node-red@0.15.2
+ 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 --build-from-source http://multitech.net/mlinux/sources/node-red-serialport-4.0.7-mt1.tgz
+ 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
@@ -52,37 +23,9 @@ do_install() {
# install m2x node
oe_runnpm install --prefix ./node_modules/node-red node-red-m2x
- # install 0.1.7 version of twitter node over default
- oe_runnpm install --prefix ./node_modules/node-red node-red-node-twitter@0.1.7
-
# remove dupe deps
oe_runnpm dedupe
- # patch the red.js uiPort and uiHost values
- patch -p1 <ui-red.js.patch
-
- # remove git repo info from build
- rm -rf mts-gpio/.git
- rm -rf mts-mcard/.git
- rm -rf mts-serial/.git
- rm -rf gpio/.git
- rm -rf lora/.git
- rm -rf serial/.git
- rm -rf sms/.git
-
- # Copy serialport over to the node-red-node-serialport since it doesn't build
- cp -r node_modules/node-red/node_modules/serialport node_modules/node-red/node_modules/node-red-node-serialport/node_modules
-
- # move the modules and nodes to where they need to go
- mv mts-gpio ./node_modules/node-red/node_modules
- mv mts-mcard ./node_modules/node-red/node_modules
- mv mts-serial ./node_modules/node-red/node_modules
- mv gpio ./node_modules/node-red/nodes/core
- mv lora ./node_modules/node-red/nodes/core
- mv serial ./node_modules/node-red/nodes/core
- mv sms ./node_modules/node-red/nodes/core
- cp extras/user-authentication.js ./node_modules/node-red/user-authentication.js
-
# 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
@@ -92,13 +35,6 @@ do_install() {
# install node-red
install -d ${D}/opt/node-red
cp -r ./node_modules/node-red/* ${D}/opt/node-red/
-
- install -d ${D}${sysconfdir}/init.d
- install -m 0755 ${WORKDIR}/node-red.init ${D}${sysconfdir}/init.d/node-red
-
- install -d ${D}${bindir}
- install -m 0755 ${WORKDIR}/update-flows ${D}${bindir}/
-
}
FILES_${PN} += "/opt/node-red"