summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-12-06 18:50:47 -0600
committerJohn Klug <john.klug@multitech.com>2020-06-18 20:16:35 -0500
commit259a97d41c2ae622ca981b16e4a0e941869437c7 (patch)
treea09781f241710ac85e0ac3043dc6c5d69d7699fe /recipes-core
parentba2cd31e7411d5ba9612a14cb7fb2cae882ebef4 (diff)
downloadmeta-mlinux-259a97d41c2ae622ca981b16e4a0e941869437c7.tar.gz
meta-mlinux-259a97d41c2ae622ca981b16e4a0e941869437c7.tar.bz2
meta-mlinux-259a97d41c2ae622ca981b16e4a0e941869437c7.zip
Commissioning recipe with php
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/multitech/commissioning_1.0.0.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-core/multitech/commissioning_1.0.0.bb b/recipes-core/multitech/commissioning_1.0.0.bb
new file mode 100644
index 0000000..22369dc
--- /dev/null
+++ b/recipes-core/multitech/commissioning_1.0.0.bb
@@ -0,0 +1,33 @@
+inherit update-rc.d
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=593c81e8a2bd8b4c4e310d8792372b13"
+
+PACKAGE_ARCH = "all"
+
+RDEPENDS_${PN} += "lighttpd lighttpd-module-fastcgi lighttpd-module-redirect bash"
+RDEPENDS_${PN}-php-fpm += "php-fpm ${PN}"
+PACKAGES =+ "${PN}-php-fpm"
+INITSCRIPT_PACKAGES = "${PN} ${PN}-php-fpm"
+INITSCRIPT_NAME_${PN} = "commission"
+INITSCRIPT_PARAMS_${PN} = "start 9 2 3 4 5 ."
+INITSCRIPT_NAME_${PN}-php-fpm = "commission-php-fpm"
+INITSCRIPT_PARAMS_${PN}-php-fpm = "start 9 2 3 4 5 ."
+
+PR = "r1"
+SRCREV = "${PV}"
+
+FILES_${PN}-php-fpm = "/etc/init.d/commission-php-fpm"
+FILES_${PN} += "/www/"
+
+SRC_URI = "git://git@${MTS_INTERNAL_GIT}/mirrors/commissioning.git;protocol=ssh"
+
+S = "${WORKDIR}/git"
+do_install() {
+ cp -a ${S}/${sysconfdir}/ ${D}/
+ cp -a ${S}/www/ ${D}/
+ cp -a ${S}/${prefix} ${D}/
+ chmod 755 ${D}/etc/init.d/*
+ chmod 755 ${D}/${libexecdir}/commission/*
+ chown -R root:root ${D}/
+}