debian/0000755000000000000000000000000011763705707007203 5ustar debian/watch0000644000000000000000000000044211763705575010237 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://sf.net/vncsnapshot/vncsnapshot-(.*)-src\.tar\.gz debian/source/0000755000000000000000000000000011763705620010475 5ustar debian/source/format0000644000000000000000000000001411763705620011703 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000045011763705575011246 0ustar vncsnapshot for Debian ---------------------- The original distribution includes a vncpasswd binary which this package has omitted. This is because the dependency on vnc-common ensures that vncpasswd is available. -- Roberto C. Sanchez , Fri, 3 Jun 2005 20:07:32 -0400 debian/rules0000755000000000000000000000275011763705620010261 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs cp vncsnapshot $(CURDIR)/debian/vncsnapshot/usr/bin cp vncsnapshot.man1 $(CURDIR)/debian/vncsnapshot/usr/share/man/man1/vncsnapshot.1 # 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_testdir dh_testroot dh_installchangelogs CHANGE-LOG.txt dh_installdocs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/docs0000644000000000000000000000010311763705575010053 0ustar BUGS CHANGE-LOG.txt README RELEASE-NOTES-1.1.txt RELEASE-NOTES.txt debian/compat0000644000000000000000000000000211763705620010373 0ustar 9 debian/copyright0000644000000000000000000000074011763705575011142 0ustar This package was debianized by Roberto C. Sanchez on Fri, 3 Jun 2005 20:07:32 -0400. It was downloaded from http://vncsnapshot.sourceforge.net/ Copyright Holder: Copyright (c) 2004 Grant McDorman License: You are free to distribute this software under the terms of the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL'. debian/dirs0000644000000000000000000000003311763705575010066 0ustar usr/bin usr/share/man/man1 debian/patches/0000755000000000000000000000000011763705620010624 5ustar debian/patches/02_argument_tunnel_broken.patch0000644000000000000000000000316211763705620016717 0ustar From: Subject: argument parsing (-tunnel) broken --- vncsnapshot-1.2a.orig/tunnel.c +++ vncsnapshot-1.2a/tunnel.c @@ -106,6 +106,8 @@ if (!runCommand(cmd)) return False; + fprintf(stderr, "Successfully runCommand(%s)\n", cmd); + return True; } @@ -115,11 +117,16 @@ { char *pdisplay; + fprintf(stderr, "processTunnelArgs:"); + showArgs(*pargc, argv); + if (tunnelArgIndex >= *pargc - 1) usage(); - pdisplay = strchr(argv[*pargc - 1], ':'); - if (pdisplay == NULL || pdisplay == argv[*pargc - 1]) + fprintf(stderr, "tAI=%d: %s\n", tunnelArgIndex, argv[tunnelArgIndex]); + fprintf(stderr, "tAI+1: %s\n", argv[tunnelArgIndex+1]); + pdisplay = strchr(argv[tunnelArgIndex + 1], ':'); + if (pdisplay == NULL || pdisplay == argv[tunnelArgIndex + 1]) usage(); *pdisplay++ = '\0'; @@ -130,12 +137,15 @@ if (*remotePort < 100) *remotePort += SERVER_PORT_OFFSET; - sprintf(lastArgv, "localhost:%d", localPort); + sprintf(lastArgv, "localhost::%d", localPort); /* see argsresources.c, GetArgsAndResources, Two colons comment */ - *remoteHost = argv[*pargc - 1]; - argv[*pargc - 1] = lastArgv; + *remoteHost = argv[tunnelArgIndex + 1]; + + argv[tunnelArgIndex + 1] = lastArgv; removeArgs(pargc, argv, tunnelArgIndex, 1); + showArgs(*pargc, argv); + } static void --- vncsnapshot-1.2a.orig/argsresources.c +++ vncsnapshot-1.2a/argsresources.c @@ -337,3 +337,10 @@ *((Bool *)arg) = value; return 1; } + +void showArgs(int argc, char** argv) { + int i; + for (i=0; i Subject: cannot capture vnc screen on amd64 diff -Naur vncsnapshot-1.2a.orig/rfb.h vncsnapshot-1.2a/rfb.h --- vncsnapshot-1.2a.orig/rfb.h 2009-07-08 07:47:53.000000000 +0800 +++ vncsnapshot-1.2a/rfb.h 2009-07-03 23:52:53.000000000 +0800 @@ -34,7 +34,7 @@ // Define the CARD* types as used in X11/Xmd.h -typedef unsigned long CARD32; +typedef unsigned int CARD32; typedef unsigned short CARD16; typedef short INT16; typedef unsigned char CARD8; debian/patches/tunnel.patch0000644000000000000000000000304211763705620013151 0ustar --- vncsnapshot-1.2a.orig/tunnel.c +++ vncsnapshot-1.2a/tunnel.c @@ -106,6 +106,8 @@ if (!runCommand(cmd)) return False; + fprintf(stderr, "Successfully runCommand(%s)\n", cmd); + return True; } @@ -115,11 +117,16 @@ { char *pdisplay; + fprintf(stderr, "processTunnelArgs:"); + showArgs(*pargc, argv); + if (tunnelArgIndex >= *pargc - 1) usage(); - pdisplay = strchr(argv[*pargc - 1], ':'); - if (pdisplay == NULL || pdisplay == argv[*pargc - 1]) + fprintf(stderr, "tAI=%d: %s\n", tunnelArgIndex, argv[tunnelArgIndex]); + fprintf(stderr, "tAI+1: %s\n", argv[tunnelArgIndex+1]); + pdisplay = strchr(argv[tunnelArgIndex + 1], ':'); + if (pdisplay == NULL || pdisplay == argv[tunnelArgIndex + 1]) usage(); *pdisplay++ = '\0'; @@ -130,12 +137,15 @@ if (*remotePort < 100) *remotePort += SERVER_PORT_OFFSET; - sprintf(lastArgv, "localhost:%d", localPort); + sprintf(lastArgv, "localhost::%d", localPort); /* see argsresources.c, GetArgsAndResources, Two colons comment */ - *remoteHost = argv[*pargc - 1]; - argv[*pargc - 1] = lastArgv; + *remoteHost = argv[tunnelArgIndex + 1]; + + argv[tunnelArgIndex + 1] = lastArgv; removeArgs(pargc, argv, tunnelArgIndex, 1); + showArgs(*pargc, argv); + } static void --- vncsnapshot-1.2a.orig/argsresources.c +++ vncsnapshot-1.2a/argsresources.c @@ -337,3 +337,10 @@ *((Bool *)arg) = value; return 1; } + +void showArgs(int argc, char** argv) { + int i; + for (i=0; i libjpeg-dev (Closes: #644970) -- Bill Allombert Wed, 06 Jun 2012 18:51:38 +0200 vncsnapshot (1.2a-5) unstable; urgency=low * New maintainer (Closes: #483484) * cannot capture vnc screen on amd64 (Closes: #536181) * argument parsing (-tunnel) broken (Closes: #514310) -- Benoit Mortier Fri, 13 Nov 2009 19:08:53 +0100 vncsnapshot (1.2a-4) unstable; urgency=low * Orphaning this package. Maintainer set to Debian QA Group. -- Roberto C. Sanchez Thu, 10 Sep 2009 20:43:46 -0400 vncsnapshot (1.2a-3) unstable; urgency=low * Change dependency on vnc-common to recommendation on vnc4server or tightvncserver (Closes: #469428) -- Roberto C. Sanchez Sat, 08 Mar 2008 21:54:51 -0500 vncsnapshot (1.2a-2) unstable; urgency=low * Updated to standards version 3.7.3 (no changes needed). * Updated to debhelper compatibility level 5. * Update maintainer email address. * debian/watch: Switch to Debian QA's SourceForge redirector. * debian/control: Switch Homepage to be a proper control field. * Make lintian happy with proper call to 'make clean' -- Roberto C. Sanchez Sat, 5 Jan 2008 12:09:33 -0500 vncsnapshot (1.2a-1) unstable; urgency=low * Initial Release. * Resolve ITP (Closes: #311874) -- Roberto C. Sanchez Fri, 3 Jun 2005 20:07:32 -0400 debian/control0000644000000000000000000000134311763705707010607 0ustar Source: vncsnapshot Section: x11 Priority: optional Maintainer: Benoit Mortier Build-Depends: debhelper (>= 9), libjpeg-dev, zlib1g-dev Standards-Version: 3.9.3 Homepage: http://vncsnapshot.sourceforge.net/ Vcs-Browser: http://vncsnapshot.cvs.sourceforge.net/viewvc/vncsnapshot/ Package: vncsnapshot Architecture: any Depends: ${shlibs:Depends} Recommends: vnc4server | tightvncserver Description: A utility that takes JPEG snapshots from VNC servers VNC Snapshot is a command-line program for VNC. It will save a JPEG image of the VNC server's screen. . To use this you must be able to connect directly to the VNC server via a TCP connection. It does not yet work for connections tunnelled over SSH.