diff options
author | Jeremy Puhlman <jpuhlman@mvista.com> | 2018-06-13 02:53:03 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-06-14 20:25:16 -0700 |
commit | 877934f93e3e5dfdb6b2426e1c8072a1c6fd843e (patch) | |
tree | f7fa4c43069fe6056bd66a119a995b0fbe7f7c34 /meta-networking/recipes-netkit/netkit-telnet | |
parent | f543763d4e3591db3c57dfaf24e33190e18e0a0f (diff) | |
download | meta-openembedded-877934f93e3e5dfdb6b2426e1c8072a1c6fd843e.tar.gz |
netkit-telnet: Switch to update-alternatives
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-netkit/netkit-telnet')
-rw-r--r-- | meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb | 12 |
1 files 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 c03b8d968..9fe3d6e51 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 () { | |||
50 | install -p -m644 ${WORKDIR}/telnet-xinetd ${D}/etc/xinetd.d/telnet | 50 | install -p -m644 ${WORKDIR}/telnet-xinetd ${D}/etc/xinetd.d/telnet |
51 | } | 51 | } |
52 | 52 | ||
53 | pkg_postinst_${PN} () { | 53 | inherit update-alternatives |
54 | #!/bin/sh | ||
55 | update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100 | ||
56 | } | ||
57 | 54 | ||
58 | pkg_prerm_${PN} () { | 55 | ALTERNATIVE_PRIORITY = "100" |
59 | #!/bin/sh | 56 | ALTERNATIVE_${PN} = "telnet" |
60 | update-alternatives --remove telnet telnet.${PN} 100 | 57 | ALTERNATIVE_LINK_NAME[telnet] = "${bindir}/telnet" |
61 | } | ||
62 | 58 | ||
63 | SRC_URI[md5sum] = "d6beabaaf53fe6e382c42ce3faa05a36" | 59 | SRC_URI[md5sum] = "d6beabaaf53fe6e382c42ce3faa05a36" |
64 | SRC_URI[sha256sum] = "9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00" | 60 | SRC_URI[sha256sum] = "9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00" |