blob: b627e74229066228d6ce30837287f26cb09c35e5 (
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
|
DESCRIPTION = "Node-RED"
HOMEPAGE = "http://nodered.org"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d6f37569f5013072e9490d2194d10ae6"
inherit npm
PR = "r0"
SRC_URI = "\
npm://registry.npmjs.org;package=${BPN};version=${PV} \
npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json \
file://${BPN}.service \
"
S = "${WORKDIR}/npm"
do_install_append() {
# Service
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system/
# Remove hardware specific files
rm ${D}/${bindir}/${BPN}-pi
rm -rf ${D}/${libdir}/node_modules/${BPN}/bin
}
inherit systemd
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE_${PN} = "${BPN}.service"
FILES_${PN} += "\
${systemd_unitdir} \
"
|