netkit-telnet: use u-a so it doesn't conflict with busybox:
authorKoen Kooi <koen@openembedded.org>
Sun, 23 Nov 2008 22:34:16 +0000 (23:34 +0100)
committerKoen Kooi <koen@openembedded.org>
Sun, 23 Nov 2008 22:34:16 +0000 (23:34 +0100)
root@omap3evm:~# ls /usr/bin/telnet -la
lrwxrwxrwx  1 root root 17 Oct 26 14:14 /usr/bin/telnet -> ../../bin/busybox

packages/netkit-telnet/netkit-telnet_0.17.bb

index f5ac239..f15a885 100644 (file)
@@ -2,7 +2,7 @@ SECTION = "base"
 DESCRIPTION = "netkit-telnet includes the telnet daemon and client."
 DEPENDS = "ncurses"
 LICENSE = "BSD"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz \
            file://netkit-telnet-debian_0.17-36.diff;patch=1 \
@@ -22,6 +22,16 @@ do_compile () {
 
 do_install () {
     install -d ${D}${bindir}
-    install -m 0755 telnet/telnet ${D}${bindir}/telnet
+    install -m 0755 telnet/telnet ${D}${bindir}/telnet.${PN}
+}
+
+pkg_postinst_${PN} () {
+#!/bin/sh
+    update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ #!/bin/sh
+   update-alternatives --remove telnet telnet.${PN} 100
 }