Add update-alternatives in pkg_postrm too
authorOyvind Repvik <nail@nslu2-linux.org>
Fri, 5 Aug 2005 01:38:36 +0000 (01:38 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 5 Aug 2005 01:38:36 +0000 (01:38 +0000)
packages/openssh/openssh_4.0p1.bb

index 47225eb..2146813 100644 (file)
@@ -11,7 +11,7 @@ used to provide applications with a secure communication channel."
 HOMEPAGE = "http://www.openssh.org/"
 LICENSE = "BSD"
 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.gz \
            file://configure.patch;patch=1 \
@@ -79,6 +79,14 @@ pkg_postinst_openssh-ssh() {
        update-alternatives --install ${bindir}/ssh ssh ssh.${PN} 90
 }
 
+pkg_postrm_openssh-ssh() {
+        update-alternatives --remove ${bindir}/ssh ssh.${PN}
+}
+
+pkg_postrm_openssh-scp() {
+        update-alternatives --remove ${bindir}/scp scp.${PN}
+}
+
 pkg_postrm_openssh-sshd() {
 if test "x$D" != "x"; then
        exit 1