[oe-commits] Shiqun Lin : bind: clean host path in isc-config.sh

git at git.openembedded.org git at git.openembedded.org
Wed Nov 26 17:07:08 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: c2332d304a2c872e97653c980b090efa2181123b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c2332d304a2c872e97653c980b090efa2181123b

Author: Shiqun Lin <Shiqun.Lin at windriver.com>
Date:   Tue Oct 21 04:12:51 2014 -0400

bind: clean host path in isc-config.sh

* /usr/bin/isc-config.sh
* /usr/bin/bind9-config - hardlink to isc-config.sh

Signed-off-by: Shiqun Lin <Shiqun.Lin at windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>

---

 meta/recipes-connectivity/bind/bind_9.9.5.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-connectivity/bind/bind_9.9.5.bb b/meta/recipes-connectivity/bind/bind_9.9.5.bb
index 73f386e..635d277 100644
--- a/meta/recipes-connectivity/bind/bind_9.9.5.bb
+++ b/meta/recipes-connectivity/bind/bind_9.9.5.bb
@@ -51,6 +51,13 @@ FILES_${PN}-utils = "${bindir}/host ${bindir}/dig"
 FILES_${PN}-dev += "${bindir}/isc-config.h"
 FILES_${PN} += "${sbindir}/generate-rndc-key.sh"
 
+do_install_prepend() {
+	# clean host path in isc-config.sh before the hardlink created
+	# by "make install":
+	#   bind9-config -> isc-config.sh
+	sed -i -e "s,${STAGING_LIBDIR},${libdir}," ${S}/isc-config.sh
+}
+
 do_install_append() {
 	rm "${D}${bindir}/nslookup"
 	rm "${D}${mandir}/man1/nslookup.1"



More information about the Openembedded-commits mailing list