[oe-commits] [meta-openembedded] 33/38: netkit-telnet: Switch to update-alternatives
git at git.openembedded.org
git at git.openembedded.org
Fri Jun 15 04:49:17 UTC 2018
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 877934f93e3e5dfdb6b2426e1c8072a1c6fd843e
Author: Jeremy Puhlman <jpuhlman at mvista.com>
AuthorDate: Wed Jun 13 02:53:03 2018 -0700
netkit-telnet: Switch to update-alternatives
Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
.../recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
index c03b8d9..9fe3d6e 100644
--- a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
+++ b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
@@ -50,15 +50,11 @@ do_install () {
install -p -m644 ${WORKDIR}/telnet-xinetd ${D}/etc/xinetd.d/telnet
}
-pkg_postinst_${PN} () {
-#!/bin/sh
- update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100
-}
+inherit update-alternatives
-pkg_prerm_${PN} () {
-#!/bin/sh
- update-alternatives --remove telnet telnet.${PN} 100
-}
+ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_${PN} = "telnet"
+ALTERNATIVE_LINK_NAME[telnet] = "${bindir}/telnet"
SRC_URI[md5sum] = "d6beabaaf53fe6e382c42ce3faa05a36"
SRC_URI[sha256sum] = "9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list