mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-10 04:30:00 +00:00
mdns: Unpick directory changes during install
Be explicit about where we're taking the installation pieces from rather than having the complexity of mixed build/source pieces based on current directory and then confusing anyone who tries to append to do_install. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -66,42 +66,36 @@ TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
MDNS_BUILDDIR = "build/${@bb.utils.contains('PACKAGECONFIG','debug','debug','prod', d)}"
|
||||
|
||||
do_install () {
|
||||
cd mDNSPosix
|
||||
|
||||
install -d ${D}${sbindir}
|
||||
install ${MDNS_BUILDDIR}/mdnsd ${D}${sbindir}
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${includedir}
|
||||
install -d ${D}${libdir}
|
||||
install -m 0644 ${MDNS_BUILDDIR}/libdns_sd.so ${D}${libdir}/libdns_sd.so.1
|
||||
install -d ${D}${mandir}/man5
|
||||
install -d ${D}${mandir}/man8
|
||||
install -d ${D}${sbindir}
|
||||
install -d ${D}${sysconfdir}
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -d ${D}${INIT_D_DIR}
|
||||
|
||||
install ${B}/mDNSPosix/${MDNS_BUILDDIR}/mdnsd ${D}${sbindir}
|
||||
|
||||
install -m 0644 ${B}/mDNSPosix/${MDNS_BUILDDIR}/libdns_sd.so ${D}${libdir}/libdns_sd.so.1
|
||||
ln -s libdns_sd.so.1 ${D}${libdir}/libdns_sd.so
|
||||
|
||||
install -d ${D}${includedir}
|
||||
install -m 0644 ../mDNSShared/dns_sd.h ${D}${includedir}
|
||||
install -m 0644 ${B}/mDNSShared/dns_sd.h ${D}${includedir}
|
||||
install -m 0644 ${B}/mDNSShared/mDNSResponder.8 ${D}${mandir}/man8/mdnsd.8
|
||||
|
||||
install -d ${D}${mandir}/man8
|
||||
install -m 0644 ../mDNSShared/mDNSResponder.8 ${D}${mandir}/man8/mdnsd.8
|
||||
install -m 0755 ${B}/Clients/build/dns-sd ${D}${bindir}
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ../Clients/build/dns-sd ${D}${bindir}
|
||||
|
||||
install -d ${D}${libdir}
|
||||
oe_libinstall -C ${MDNS_BUILDDIR} -so libnss_mdns-0.2 ${D}${libdir}
|
||||
oe_libinstall -C ${B}/mDNSPosix/${MDNS_BUILDDIR} -so libnss_mdns-0.2 ${D}${libdir}
|
||||
ln -s libnss_mdns-0.2.so ${D}${libdir}/libnss_mdns.so.2
|
||||
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 nss_mdns.conf ${D}${sysconfdir}
|
||||
install -m 0644 ${B}/mDNSPosix/nss_mdns.conf ${D}${sysconfdir}
|
||||
install -m 0644 ${B}/mDNSPosix/nss_mdns.conf.5 ${D}${mandir}/man5
|
||||
install -m 0644 ${B}/mDNSPosix/libnss_mdns.8 ${D}${mandir}/man8
|
||||
|
||||
install -d ${D}${mandir}/man5
|
||||
install -m 0644 nss_mdns.conf.5 ${D}${mandir}/man5
|
||||
|
||||
install -d ${D}${mandir}/man8
|
||||
install -m 0644 libnss_mdns.8 ${D}${mandir}/man8
|
||||
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${UNPACKDIR}/mdns.service ${D}${systemd_system_unitdir}
|
||||
|
||||
install -d ${D}${INIT_D_DIR}
|
||||
install mdnsd.sh ${D}${INIT_D_DIR}/mdns
|
||||
install ${B}/mDNSPosix/mdnsd.sh ${D}${INIT_D_DIR}/mdns
|
||||
}
|
||||
|
||||
pkg_postinst:${PN}-libnss-mdns () {
|
||||
|
||||
Reference in New Issue
Block a user