tightvnc-java (1.2.7-8) debian-dir only changes

Summary

 debian/changelog              |   83 +++++++++++++++++++++++++++++++++
 debian/control                |   20 ++++++++
 debian/copyright              |   60 ++++++++++++++++++++++++
 debian/jtightvncviewer.pod    |   18 +++++++
 debian/jtightvncviewer.sh     |   28 +++++++++++
 debian/rules                  |  103 ++++++++++++++++++++++++++++++++++++++++++
 debian/tightvnc-java.dirs     |    3 +
 debian/tightvnc-java.docs     |    1 
 debian/tightvnc-java.manpages |    1 
 debian/tightvnc-java.postinst |   18 +++++++
 debian/tightvnc-java.prerm    |   11 ++++
 11 files changed, 346 insertions(+)

    
download this patch

Patch contents

--- tightvnc-java-1.2.7.orig/debian/tightvnc-java.postinst
+++ tightvnc-java-1.2.7/debian/tightvnc-java.postinst
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" ]; then
+    MAN=/usr/share/man/man1
+    BIN=/usr/bin
+    update-alternatives --install \
+	$BIN/vncviewer       vncviewer       $BIN/jtightvncviewer 40 \
+	--slave \
+	$MAN/vncviewer.1.gz  vncviewer.1.gz  $MAN/jtightvncviewer.1.gz \
+	--slave \
+	$MAN/xvncviewer.1.gz xvncviewer.1.gz $MAN/jtightvncviewer.1.gz \
+	--slave \
+	$BIN/xvncviewer      xvncviewer      $BIN/jtightvncviewer
+fi
+
+#DEBHELPER#
+
+exit 0
--- tightvnc-java-1.2.7.orig/debian/tightvnc-java.manpages
+++ tightvnc-java-1.2.7/debian/tightvnc-java.manpages
@@ -0,0 +1 @@
+debian/jtightvncviewer.1
--- tightvnc-java-1.2.7.orig/debian/copyright
+++ tightvnc-java-1.2.7/debian/copyright
@@ -0,0 +1,60 @@
+This package was debianized by Ola Lundqvist <opal@debian.org> on
+Tue, 19 Dec 2000 20:15:28 +0100.
+
+It was downloaded from
+	http://www.tightvnc.com/
+
+Copyright (C) 2001,2002 HorizonLive.com, Inc.  All Rights Reserved.
+Copyright (C) 2001,2002 Constantin Kaplinsky.  All Rights Reserved.
+Copyright (C) 1999 AT&T Laboratories Cambridge.  All Rights Reserved.
+
+This software is distributed under the GNU General Public Licence as published
+by the Free Software Foundation.  See the file LICENCE.TXT for the conditions
+under which this software is made available.  VNC also contains code from other
+sources.  See the Acknowledgements section (see README), and the individual
+files for details of the conditions under which they are made available.
+
+On Debian Linux systems, the complete text of the GNU General Public
+License can be found in '/usr/share/common-licenses/GPL'.
+
+ACKNOWLEDGEMENTS
+================
+
+This distribution contains public domain DES software by Richard
+Outerbridge.
+This is:
+
+    Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge.
+    (GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992.
+
+
+This distribution contains software from the X Window System, Version 11,
+Release 6.  This is:
+
+    Copyright (C) 1994 X Consortium
+
+    Permission is hereby granted, free of charge, to any person obtaining a
+    copy of this software and associated documentation files (the
+    "Software"), to deal in the Software without restriction, including
+    without limitation the rights to use, copy, modify, merge, publish,
+    distribute, sublicense, and/or sell copies of the Software, and to
+    permit persons to whom the Software is furnished to do so, subject to
+    the following conditions:
+
+    The above copyright notice and this permission notice shall be included
+    in all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+    IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
+    OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+    ARISING FROM, OUT OF OR IN CONNEC- TION WITH THE SOFTWARE OR THE USE OR
+    OTHER DEALINGS IN THE SOFTWARE.
+
+    Except as contained in this notice, the name of the X Consortium shall
+    not be used in advertising or otherwise to promote the sale, use or
+    other deal- ings in this Software without prior written authorization
+    from the X Consor- tium.
+
+    X Window System is a trademark of X Consortium, Inc.
--- tightvnc-java-1.2.7.orig/debian/jtightvncviewer.pod
+++ tightvnc-java-1.2.7/debian/jtightvncviewer.pod
@@ -0,0 +1,18 @@
+=head1 NAME
+
+jvncviewer -- Command line starter of the Java VNC viewer
+
+=head1 SYNOPSIS
+
+jvncviewer HOST[:(DISPLAY#|:PORT#)]
+
+=head1 AUTHOR
+
+Author of this manpage is Ola Lundqvist <opal@debian.org>
+
+=head1 SEE ALSO
+
+java(1)
+vncserver(1)
+
+=cut
--- tightvnc-java-1.2.7.orig/debian/tightvnc-java.prerm
+++ tightvnc-java-1.2.7/debian/tightvnc-java.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" ] ; then
+    BIN=/usr/bin
+    update-alternatives --remove \
+	vncviewer $BIN/jtightvncviewer
+fi
+
+#DEBHELPER#
+
+exit 0
--- tightvnc-java-1.2.7.orig/debian/tightvnc-java.dirs
+++ tightvnc-java-1.2.7/debian/tightvnc-java.dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/sbin
+usr/share/java
--- tightvnc-java-1.2.7.orig/debian/tightvnc-java.docs
+++ tightvnc-java-1.2.7/debian/tightvnc-java.docs
@@ -0,0 +1 @@
+README
--- tightvnc-java-1.2.7.orig/debian/rules
+++ tightvnc-java-1.2.7/debian/rules
@@ -0,0 +1,103 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=4
+
+DEST=$(CURDIR)/debian/tightvnc-java
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/vnc-java.sgml > vnc-java.1
+	pod2man --section=1 \
+		--release="Java TightVNC " \
+		--date="`date`" \
+		debian/jtightvncviewer.pod > debian/jtightvncviewer.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+	-rm debian/*.1
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package.
+# java
+	mkdir -p $(DEST)/usr/share/tightvnc-java
+	$(MAKE) install \
+		INSTALL_DIR=$(DEST)/usr/share/tightvnc-java
+	# Fix for making it more policy compliant.
+	mv $(DEST)/usr/share/tightvnc-java/VncViewer.jar \
+		$(DEST)/usr/share/java/tightvncviewer-1.2.7.jar
+	ln -s ../java/tightvncviewer.jar \
+		$(DEST)/usr/share/tightvnc-java/VncViewer.jar
+	ln -s tightvncviewer-1.2.7.jar \
+		$(DEST)/usr/share/java/tightvncviewer.jar
+	# Install command line.
+	install -m 755 debian/jtightvncviewer.sh \
+		$(DEST)/usr/bin/jtightvncviewer
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+#	dh_testversion
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installinit
+	dh_installcron
+	dh_installman
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	# You may want to make some executables suid here.
+#	dh_suidregister
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+#	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- tightvnc-java-1.2.7.orig/debian/changelog
+++ tightvnc-java-1.2.7/debian/changelog
@@ -0,0 +1,83 @@
+tightvnc-java (1.2.7-8) unstable; urgency=low
+
+  * Corrected bashism. Closes: #530206.
+
+ -- Ola Lundqvist <opal@debian.org>  Sun, 27 Sep 2009 14:39:30 +0200
+
+tightvnc-java (1.2.7-7) unstable; urgency=low
+
+  * Remove dependency on jikes and kaffe. Closes: #528066.
+
+ -- Ola Lundqvist <opal@debian.org>  Sun, 27 Sep 2009 14:37:19 +0200
+
+tightvnc-java (1.2.7-6) unstable; urgency=low
+
+  * Recorrection of bashism. Paranthesis was put in wrong direction.
+    Closes: #465370.
+
+ -- Ola Lundqvist <opal@debian.org>  Fri, 13 Jun 2008 08:08:37 +0200
+
+tightvnc-java (1.2.7-5) unstable; urgency=low
+
+  * Applied patch from Chris Lamb <chris@chris-lamb.co.uk> to correct a
+    bashism, closes: #465370.
+  * Changed so that it actually depends on debhelper.
+  * Bumped standards version to 3.7.2.
+
+ -- Ola Lundqvist <opal@debian.org>  Sun, 11 May 2008 14:41:05 +0200
+
+tightvnc-java (1.2.7-4) unstable; urgency=low
+
+  * Updated because of changes in kaffe, closes: #348366.
+  * Updated to standards version 3.6.2.
+  * Updated to debhelper compatibility 4.
+  * Now use dh_installman instead of dh_installmanpages.
+
+ -- Ola Lundqvist <opal@debian.org>  Sat, 28 Jan 2006 21:40:56 +0100
+
+tightvnc-java (1.2.7-3) unstable; urgency=low
+
+  * Fixed so it works with older java engines, closes: #175761.
+    Thanks to "C. Scott Ananian" <cananian@sincerity-forever.lcs.mit.edu>
+    for the suggested fix.
+  * Fixed rules file so it can build with recent jikes and kaffe packages.
+  * Added versioned build dependency on debhelper.
+  * Updated standards version to 3.6.1.
+
+ -- Ola Lundqvist <opal@debian.org>  Thu, 22 Jul 2004 23:44:59 +0200
+
+tightvnc-java (1.2.7-2) unstable; urgency=low
+
+  * Now really builds using jikes and kaffe, closes: #175671.
+  * Build-depends-indep instead of build depends.
+  * Added command line program.
+  * No longer depends on tightvncserver, just suggest it.
+  * Now provides vnc-viewer.
+
+ -- Ola Lundqvist <opal@debian.org>  Thu,  6 Feb 2003 10:37:09 +0100
+
+tightvnc-java (1.2.7-1) unstable; urgency=low
+
+  * Created this package using vnc-java as the source, closes: #172709.
+
+ -- Ola Lundqvist <opal@debian.org>  Sun, 15 Dec 2002 12:26:58 +0100
+
+vnc-java (3.3.3r2-3) unstable; urgency=low
+
+  * Applied the tightvnc patches version 1.2.1, closes: #106163.
+
+ -- Ola Lundqvist <opal@debian.org>  Mon, 01 Oct 2001 10:56:37 +0200
+
+vnc-java (3.3.3r2-2) unstable; urgency=low
+
+  * Fixed some dependencies, closes: Bug#80335.
+  * Now builds with jikes instead (thanks to Colin Watson <cjw44@flatline.org.uk>),
+    closes: Bug#80349.
+
+ -- Ola Lundqvist <opal@debian.org>  Tue, 19 Dec 2000 20:15:28 +0100
+
+vnc-java (3.3.3r2-1) unstable; urgency=low
+
+  * Initial Release, closes: Bug#79759.
+
+ -- Ola Lundqvist <opal@debian.org>  Tue, 19 Dec 2000 20:15:28 +0100
--- tightvnc-java-1.2.7.orig/debian/control
+++ tightvnc-java-1.2.7/debian/control
@@ -0,0 +1,20 @@
+Source: tightvnc-java
+Section: contrib/web
+Priority: optional
+Maintainer: Ola Lundqvist <opal@debian.org>
+Build-Depends: debhelper (>> 4.0)
+Build-Depends-indep: default-jdk
+Standards-Version: 3.7.2
+
+Package: tightvnc-java
+Architecture: all
+Suggests: tightvncserver
+Provides: vnc-viewer
+Description: TightVNC java applet and command line program
+ VNC stands for Virtual Network Computing. It is, in essence, a remote
+ display system which allows you to view a computing `desktop' environment
+ not only on the machine where it is running, but from anywhere on the
+ Internet and from a wide variety of machine architectures.
+ .
+ This is the vnc java applet files that the tightvncserver
+ can distribute to the client.
--- tightvnc-java-1.2.7.orig/debian/jtightvncviewer.sh
+++ tightvnc-java-1.2.7/debian/jtightvncviewer.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+if [ "$1" = "--help" ] || [ "$1" = "-help" ] ; then
+    echo "USAGE: jvncviewer HOST[:(DISPLAY#|:PORT#)]"
+    exit 0
+fi
+
+PT=$(echo "$1" | grep "::")
+if [ -n "$PT" ] ; then
+    HOST=$(echo "$PT" | sed -e "s/::.*//;")
+    PORT=$(echo "$PT" | sed -e "s/.*:://;")
+else
+    PT=$(echo "$1" | grep ":")
+    if [ -n "$PT" ] ; then 
+	HOST=$(echo "$PT" | sed -e "s/:.*//;")
+	P=$(echo "$PT" | sed -e "s/.*://;")
+	PORT=$(echo "5900+$P" | bc)
+    else
+	HOST="$1"
+	PORT=5900
+    fi
+fi
+
+echo $HOST $PORT
+
+export CLASSPATH=/usr/share/java/tightvncviewer.jar
+
+java VncViewer HOST $HOST PORT $PORT