diff options
author | Roy Li <rongqing.li@windriver.com> | 2016-04-08 10:07:25 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2016-05-02 14:03:01 -0700 |
commit | da664f76fef6b868970a102fffab300e17a87ff0 (patch) | |
tree | fa869072de63af358d7faad6d5629c8882c61019 | |
parent | e317d955ba6fd9f80de43a31f73633365ba6f92b (diff) | |
download | meta-openembedded-contrib-da664f76fef6b868970a102fffab300e17a87ff0.tar.gz |
krb5: add native and nativesdk extend
add native and nativesdk extend, curl-native/nativesdk need them.
replace the hardcode /etc with ${sysconfdir}, /var with ${localstatedir}
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb index 65013b5c940..34c2969d469 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb @@ -58,7 +58,7 @@ FILES_${PN}-doc += "${datadir}/examples" FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug" # As this recipe doesn't inherit update-rc.d, we need to add this dependency here -RDEPENDS_${PN} += "initscripts-functions" +RDEPENDS_${PN}_class-target += "initscripts-functions" krb5_do_unpack() { # ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz @@ -77,12 +77,12 @@ do_configure() { } do_install_append() { - mkdir -p ${D}/etc/init.d ${D}/etc/default - install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/etc/init.d - install -m 0644 ${WORKDIR}/etc/default/* ${D}/etc/default + mkdir -p ${D}/${sysconfdir}/init.d ${D}/${sysconfdir}/default + install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/${sysconfdir}/init.d + install -m 0644 ${WORKDIR}/etc/default/* ${D}/${sysconfdir}/default - rm -rf ${D}/var/run - mkdir -p ${D}/etc/default/volatiles + rm -rf ${D}/${localstatedir}/run + mkdir -p ${D}/${sysconfdir}/default/volatiles echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \ > ${D}${sysconfdir}/default/volatiles/87_krb5 if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then @@ -102,3 +102,5 @@ pkg_postinst_${PN} () { fi fi } + +BBCLASSEXTEND = "native nativesdk" |