tightvnc: provide vncviewer alternative to provide more flexibility
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 3 Nov 2008 21:59:24 +0000 (19:59 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 5 Nov 2008 11:12:02 +0000 (09:12 -0200)
packages/vnc/tightvnc_1.3.9.bb

index ec6a705..3f11763 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.tightvnc.com/"
 DEPENDS = "virtual/libx11 zlib libxmu libxaw"
 LICENSE = "GPL"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/vnc-tight/${PN}-${PV}_unixsrc.tar.gz \
            file://Makefile"
@@ -23,3 +23,12 @@ do_install () {
        install -d ${D}${bindir}
        install ${PN}viewer ${D}${bindir}
 }
+
+pkg_postinst_${PN}-viewer () {
+        update-alternatives --install ${bindir}/vncviewer vncviewer tightvncviewer 100
+}
+
+
+pkg_prerm_${PN}-viewer () {
+        update-alternatives --remove ${bindir}/vncviewer vncviewer tightvncviewer 100
+}