init-tempmon_1.0.bb 937 Bytes
Newer Older
1 2 3 4 5 6 7
SUMMARY = "Extra initscripts for the Elphel 10393 board"
DESCRIPTION = "Simple camera temperature monitor"

AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/"

PRIORITY = "optional"
8 9
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
10 11 12 13 14 15 16 17 18 19 20 21 22

SRCDATE = "20160516"

PV = "${SRCDATE}"
PR = "r0"

SRC_URI = "file://init_tempmon \
           file://init_tempmon.py \
          "

S = "${WORKDIR}/"

INITSCRIPT_NAME = "init_tempmon"
23
INITSCRIPT_PARAMS = "defaults 94"
24 25 26 27 28 29 30

RDEPENDS_${PN} += "python-core"

FILES_${PN} = "\
           /etc/* \
           /usr/* \
          "
31
PACKAGES = " init-tempmon"
32 33 34 35 36 37 38

#This needs to get the script into rc?.d/
inherit update-rc.d

do_install_append() {
    install -d ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/init_tempmon ${D}${sysconfdir}/init.d
39 40
    install -d ${D}${bindir}
    install -m 0755 ${S}/init_tempmon.py ${D}${bindir}
41
}