summaryrefslogtreecommitdiffstats
path: root/recipes-example/virt-example/virt-example_1.0.0.bb
blob: 1840d131282683f97e2bad7a24c59ec33f7d1c8f (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
DESCRIPTION = "KVM and libvirt examples"

FILESEXTRAPATHS_append := ":${THISDIR}/files"

SRC_URI = " \
    file://example-container.conf \
    file://example-guest-x86.xml \
    file://example-net.xml \
    file://LICENSE \
    file://pxe/pxelinux.cfg/default \
"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=b52bab7a403562f36be803f11489f1a4"

S = "${WORKDIR}"

DESTDIR = "/usr/share/${PN}/"

FILES_${PN} = " \
    ${DESTDIR}example-container.conf \
    ${DESTDIR}example-guest-x86.xml \
    ${DESTDIR}example-net.xml \
    ${DESTDIR}pxe/pxelinux.cfg/default \
"

do_install() {
    install -d ${D}${DESTDIR}
    install -d ${D}${DESTDIR}pxe/pxelinux.cfg/
    install ${WORKDIR}/pxe/pxelinux.cfg/default ${D}${DESTDIR}pxe/pxelinux.cfg/
    install ${WORKDIR}/example-container.conf ${D}${DESTDIR}
    install ${WORKDIR}/example-guest-x86.xml ${D}${DESTDIR}
    install ${WORKDIR}/example-net.xml ${D}${DESTDIR}
}