summaryrefslogtreecommitdiff
path: root/packages/netkit-telnet
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-11-23 23:34:16 +0100
committerKoen Kooi <koen@openembedded.org>2008-11-23 23:34:16 +0100
commitca49ddc747b497304e3d19dae8d14f987cf79a3f (patch)
tree316d790a6726b05a539772a3c52b1664f36f49f7 /packages/netkit-telnet
parent3c8bf3a7484c1645de5c4cfa5c502895c97aef25 (diff)
netkit-telnet: use u-a so it doesn't conflict with busybox:
root@omap3evm:~# ls /usr/bin/telnet -la lrwxrwxrwx 1 root root 17 Oct 26 14:14 /usr/bin/telnet -> ../../bin/busybox
Diffstat (limited to 'packages/netkit-telnet')
-rw-r--r--packages/netkit-telnet/netkit-telnet_0.17.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/netkit-telnet/netkit-telnet_0.17.bb b/packages/netkit-telnet/netkit-telnet_0.17.bb
index f5ac239039..f15a88593f 100644
--- a/packages/netkit-telnet/netkit-telnet_0.17.bb
+++ b/packages/netkit-telnet/netkit-telnet_0.17.bb
@@ -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
}