summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2016-04-08 10:07:25 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-04-21 21:33:18 +0200
commitead0d3b0c8635a8d61655a57b9d5e43b86c67b6e (patch)
tree4e1e096cfd4a88e9fda3f017f93bfbe814655547 /meta-oe/recipes-connectivity
parentc073b9a670618f044f3c13311738df1c5b007b07 (diff)
downloadmeta-openembedded-ead0d3b0c8635a8d61655a57b9d5e43b86c67b6e.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>
Diffstat (limited to 'meta-oe/recipes-connectivity')
-rw-r--r--meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb14
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 65013b5c9..34c2969d4 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"
58FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug" 58FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
59 59
60# As this recipe doesn't inherit update-rc.d, we need to add this dependency here 60# As this recipe doesn't inherit update-rc.d, we need to add this dependency here
61RDEPENDS_${PN} += "initscripts-functions" 61RDEPENDS_${PN}_class-target += "initscripts-functions"
62 62
63krb5_do_unpack() { 63krb5_do_unpack() {
64 # ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz 64 # ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz
@@ -77,12 +77,12 @@ do_configure() {
77} 77}
78 78
79do_install_append() { 79do_install_append() {
80 mkdir -p ${D}/etc/init.d ${D}/etc/default 80 mkdir -p ${D}/${sysconfdir}/init.d ${D}/${sysconfdir}/default
81 install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/etc/init.d 81 install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/${sysconfdir}/init.d
82 install -m 0644 ${WORKDIR}/etc/default/* ${D}/etc/default 82 install -m 0644 ${WORKDIR}/etc/default/* ${D}/${sysconfdir}/default
83 83
84 rm -rf ${D}/var/run 84 rm -rf ${D}/${localstatedir}/run
85 mkdir -p ${D}/etc/default/volatiles 85 mkdir -p ${D}/${sysconfdir}/default/volatiles
86 echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \ 86 echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \
87 > ${D}${sysconfdir}/default/volatiles/87_krb5 87 > ${D}${sysconfdir}/default/volatiles/87_krb5
88 if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 88 if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
@@ -102,3 +102,5 @@ pkg_postinst_${PN} () {
102 fi 102 fi
103 fi 103 fi
104} 104}
105
106BBCLASSEXTEND = "native nativesdk"