mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-21 05:57:05 +00:00
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>
This commit is contained in:
@@ -58,7 +58,7 @@ FILES_${PN}-doc += "${datadir}/examples"
|
|||||||
FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
|
FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
|
||||||
|
|
||||||
# As this recipe doesn't inherit update-rc.d, we need to add this dependency here
|
# 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() {
|
krb5_do_unpack() {
|
||||||
# ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz
|
# ${P}-signed.tar contains ${P}.tar.gz.asc and ${P}.tar.gz
|
||||||
@@ -77,12 +77,12 @@ do_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
mkdir -p ${D}/etc/init.d ${D}/etc/default
|
mkdir -p ${D}/${sysconfdir}/init.d ${D}/${sysconfdir}/default
|
||||||
install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/etc/init.d
|
install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/${sysconfdir}/init.d
|
||||||
install -m 0644 ${WORKDIR}/etc/default/* ${D}/etc/default
|
install -m 0644 ${WORKDIR}/etc/default/* ${D}/${sysconfdir}/default
|
||||||
|
|
||||||
rm -rf ${D}/var/run
|
rm -rf ${D}/${localstatedir}/run
|
||||||
mkdir -p ${D}/etc/default/volatiles
|
mkdir -p ${D}/${sysconfdir}/default/volatiles
|
||||||
echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \
|
echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \
|
||||||
> ${D}${sysconfdir}/default/volatiles/87_krb5
|
> ${D}${sysconfdir}/default/volatiles/87_krb5
|
||||||
if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||||
@@ -102,3 +102,5 @@ pkg_postinst_${PN} () {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user