Skip to contentSkip to conversation

bind-utils: Install nslookup

PATCH In review Adrian Bunk 2 participants 2 messages Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bind-utils: Install nslookup

nslookup was undeprecated 15 years ago,
and installing bind-utils should replace the busybox version.

---
 meta/recipes-connectivity/bind/bind_9.11.5.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-connectivity/bind/bind_9.11.5.bb +5 -3
index 11990ee27e..67672792b1 100644
@@ -73,8 +73,6 @@ do_install_prepend() {
 
 do_install_append() {
 
-	rm "${D}${bindir}/nslookup"
-	rm "${D}${mandir}/man1/nslookup.1"
 	rmdir "${D}${localstatedir}/run"
 	rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 	install -d -o bind "${D}${localstatedir}/cache/bind"
@@ -118,8 +116,12 @@ CONFFILES_${PN} = " \
 	${sysconfdir}/bind/db.root \
 	"
 
+ALTERNATIVE_${PN}-utils = "nslookup"
+ALTERNATIVE_LINK_NAME[nslookup] = "${bindir}/nslookup"
+ALTERNATIVE_PRIORITY = "100"
+
 PACKAGE_BEFORE_PN += "${PN}-utils"
-FILES_${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig ${bindir}/nsupdate"
+FILES_${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig ${bindir}/nslookup ${bindir}/nsupdate"
 FILES_${PN}-dev += "${bindir}/isc-config.h"
 FILES_${PN} += "${sbindir}/generate-rndc-key.sh"
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Adrian Bunk

nslookup was undeprecated 15 years ago,
and installing bind-utils should replace the busybox version.

Thanks, I have this locally too but got side-tracked so I haven't posted my v2 series, I should get to that today.

Signature · 1 line
Tom