summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/go/go-systemd_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/go/go-systemd_git.bb')
-rw-r--r--recipes-devtools/go/go-systemd_git.bb30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-devtools/go/go-systemd_git.bb b/recipes-devtools/go/go-systemd_git.bb
new file mode 100644
index 00000000..0a5ec249
--- /dev/null
+++ b/recipes-devtools/go/go-systemd_git.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "Go bindings to systemd socket activation, journal, D-Bus, and unit files"
2HOMEPAGE = "https://github.com/coreos/go-systemd"
3SECTION = "devel/go"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5"
6
7PR = "r0"
8SRCNAME = "systemd"
9
10PKG_NAME = "github.com/coreos/go-${SRCNAME}"
11SRC_URI = "git://${PKG_NAME}.git"
12
13SRCREV = "f743bc15d6bddd23662280b4ad20f7c874cdd5ad"
14PV = "2+git${SRCREV}"
15
16S = "${WORKDIR}/git"
17
18do_install() {
19 install -d ${D}${prefix}/local/go/src/${PKG_NAME}
20 cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
21}
22
23SYSROOT_PREPROCESS_FUNCS += "go_systemd_sysroot_preprocess"
24
25go_systemd_sysroot_preprocess () {
26 install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
27 cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
28}
29
30FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"