beaglebone-getting-started: active bone101 webserver on boot
[glsdk/meta-ti-glsdk.git] / recipes-misc / payload / bonescript.bb
1 DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"
3 PR = "r6"
5 inherit allarch
7 # Ask Jason
8 LICENSE = "MIT"
9 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
11 SRCREV = "0b264f3144cb6385e33346dec02692d71844898d"
12 SRC_URI = "git://github.com/jadonk/bonescript.git \
13            file://bonescript-git \
14           "
15 S = "${WORKDIR}/git"
17 do_install() {
18         install -m 0644 ${WORKDIR}/bonescript-git ${S}/.git/config
19         cp $(cat .git/objects/info/alternates)/pack/* .git/objects/pack
20         rm -f ${S}/.git/objects/info/alternates
21         echo ${SRCREV} > .git/refs/heads/master
22         git checkout master || true
23         install -d ${D}${localstatedir}/lib/cloud9/
24         cp -a ${S}/* ${D}${localstatedir}/lib/cloud9/
25         cp -a ${S}/.git ${D}${localstatedir}/lib/cloud9/
26 }
28 RDEPENDS_${PN} = "nodejs cloud9"
29 RRECOMMENDS_${PN} = "git"
30 FILES_${PN} += "${localstatedir}"