blob: 4557eaedaccfd9db961e7f0b50f41bd2fef9ad61 (
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
36
37
38
|
DESCRIPTION = "Scripting tools for the BeagleBoard and BeagleBone"
PR = "r12"
inherit allarch systemd
# Ask Jason
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
SRCREV = "8118a541e8927f48de2cf9ec203aa1caf88ec1f3"
SRC_URI = "git://github.com/jadonk/bonescript.git \
file://bonescript-git \
file://bone101.service \
"
S = "${WORKDIR}/git"
do_install() {
install -m 0644 ${WORKDIR}/bonescript-git ${S}/.git/config
cp $(cat .git/objects/info/alternates)/pack/* .git/objects/pack
rm -f ${S}/.git/objects/info/alternates
echo ${SRCREV} > .git/refs/heads/master
git checkout master || true
install -d ${D}${localstatedir}/lib/cloud9/
cp -a ${S}/* ${D}${localstatedir}/lib/cloud9/
cp -a ${S}/.git ${D}${localstatedir}/lib/cloud9/
install -d ${D}${base_libdir}/systemd/system
install -m 0644 ${WORKDIR}/bone101.service ${D}${base_libdir}/systemd/system
}
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "bone101.service"
FILES_${PN} += "${localstatedir} ${base_libdir}/systemd/system"
CONFFILES_${PN} += "${localstatedir}/lib/cloud9/.git/config"
RDEPENDS_${PN} = "nodejs cloud9"
RRECOMMENDS_${PN} = "git"
|