aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend
blob: 9f03781b992a0e6f551796cb95ae7f6ec48048a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += " file://cinder-test-config.init"

do_install:prepend() {
    # Remove nfs cinder-volume backend driver
    sed -e "s/nfsdriver,//" -i ${WORKDIR}/cinder.conf
}

do_install:append() {
    install -m 0755 ${WORKDIR}/cinder-test-config.init ${D}${sysconfdir}/init.d/cinder-test-config
}

PACKAGES += " ${SRCNAME}-test-config"
FILES:${SRCNAME}-test-config = "${sysconfdir}/init.d/cinder-test-config"

RDEPENDS:${SRCNAME}-tests += " ${SRCNAME}-test-config"

INITSCRIPT_PACKAGES += " ${SRCNAME}-test-config"
INITSCRIPT_NAME:${SRCNAME}-test-config = "cinder-test-config"
INITSCRIPT_PARAMS:${SRCNAME}-test-config = "defaults 95 10"