Subversion Repositories ssvnc

Compare Revisions

Ignore whitespace Rev 16 → Rev 19

/ssvnc/trunk/debian/patches/confusing_-h.dpatch
File deleted
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: ultraftp_path.dpatch
===================================================================
--- ultraftp_path.dpatch (revision 16)
+++ ultraftp_path.dpatch (nonexistent)
@@ -1,48 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## utraftp_path.dpatch by Magnus Holmgren <holmgren@debian.org>
-##
-## DP: Use hardcoded (and correct for the Debian package) path to
-## DP: ultraftp.jar if SSVNC_ULTRA_FTP_JAR is unset.
-
-@DPATCH@
-diff -urNad trunk~/vnc_unixsrc/vncviewer/argsresources.c trunk/vnc_unixsrc/vncviewer/argsresources.c
---- trunk~/vnc_unixsrc/vncviewer/argsresources.c 2009-10-27 04:26:12.000000000 +0100
-+++ trunk/vnc_unixsrc/vncviewer/argsresources.c 2009-10-31 15:22:46.000000000 +0100
-@@ -1624,35 +1624,8 @@
- appData.useBGR233 = 0;
- }
-
-- if (getenv("SSVNC_ULTRA_FTP_JAR") == NULL && programName != NULL) {
-- int len = strlen(programName) + 200;
-- char *q, *jar = (char *) malloc(len);
--
-- sprintf(jar, "%s", programName);
-- q = strrchr(jar, '/');
-- if (q) {
-- struct stat sb;
-- *(q+1) = '\0';
-- strcat(jar, "../lib/ssvnc/util/ultraftp.jar");
-- if (stat(jar, &sb) == 0) {
-- char *put = (char *) malloc(len);
-- sprintf(put, "SSVNC_ULTRA_FTP_JAR=%s", jar);
-- fprintf(stderr, "Setting: %s\n\n", put);
-- putenv(put);
-- } else {
-- sprintf(jar, "%s", programName);
-- q = strrchr(jar, '/');
-- *(q+1) = '\0';
-- strcat(jar, "util/ultraftp.jar");
-- if (stat(jar, &sb) == 0) {
-- char *put = (char *) malloc(len);
-- sprintf(put, "SSVNC_ULTRA_FTP_JAR=%s", jar);
-- fprintf(stderr, "Setting: %s\n\n", put);
-- putenv(put);
-- }
-- }
-- }
-- free(jar);
-+ if (getenv("SSVNC_ULTRA_FTP_JAR") == NULL) {
-+ putenv("SSVNC_ULTRA_FTP_JAR=/usr/lib/ssvnc/util/ultraftp.jar");
- }
-
-
/ultraftp_path.dpatch
Property changes:
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: 00list
===================================================================
--- 00list (revision 16)
+++ 00list (nonexistent)
@@ -1,3 +0,0 @@
-confusing_-h
-ultraftp_path
-bashisms
Index: series
===================================================================
--- series (nonexistent)
+++ series (revision 19)
@@ -0,0 +1,2 @@
+confusing_-h.patch
+ultraftp_path.patch
Index: ultraftp_path.patch
===================================================================
--- ultraftp_path.patch (nonexistent)
+++ ultraftp_path.patch (revision 19)
@@ -0,0 +1,45 @@
+Author: Magnus Holmgren <holmgren@debian.org>
+Description: Use hardcoded (and correct for the Debian package) path to ultraftp.jar
+ if SSVNC_ULTRA_FTP_JAR is unset.
+
+diff -urNad trunk~/vnc_unixsrc/vncviewer/argsresources.c trunk/vnc_unixsrc/vncviewer/argsresources.c
+--- trunk~/vnc_unixsrc/vncviewer/argsresources.c 2009-10-27 04:26:12.000000000 +0100
++++ trunk/vnc_unixsrc/vncviewer/argsresources.c 2009-10-31 15:22:46.000000000 +0100
+@@ -1624,35 +1624,8 @@
+ appData.useBGR233 = 0;
+ }
+
+- if (getenv("SSVNC_ULTRA_FTP_JAR") == NULL && programName != NULL) {
+- int len = strlen(programName) + 200;
+- char *q, *jar = (char *) malloc(len);
+-
+- sprintf(jar, "%s", programName);
+- q = strrchr(jar, '/');
+- if (q) {
+- struct stat sb;
+- *(q+1) = '\0';
+- strcat(jar, "../lib/ssvnc/util/ultraftp.jar");
+- if (stat(jar, &sb) == 0) {
+- char *put = (char *) malloc(len);
+- sprintf(put, "SSVNC_ULTRA_FTP_JAR=%s", jar);
+- fprintf(stderr, "Setting: %s\n\n", put);
+- putenv(put);
+- } else {
+- sprintf(jar, "%s", programName);
+- q = strrchr(jar, '/');
+- *(q+1) = '\0';
+- strcat(jar, "util/ultraftp.jar");
+- if (stat(jar, &sb) == 0) {
+- char *put = (char *) malloc(len);
+- sprintf(put, "SSVNC_ULTRA_FTP_JAR=%s", jar);
+- fprintf(stderr, "Setting: %s\n\n", put);
+- putenv(put);
+- }
+- }
+- }
+- free(jar);
++ if (getenv("SSVNC_ULTRA_FTP_JAR") == NULL) {
++ putenv("SSVNC_ULTRA_FTP_JAR=/usr/lib/ssvnc/util/ultraftp.jar");
+ }
+
+
/ultraftp_path.patch
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: confusing_-h.patch
===================================================================
--- confusing_-h.patch (nonexistent)
+++ confusing_-h.patch (revision 19)
@@ -0,0 +1,37 @@
+Description: Improve handling of -h[e[l[p]]]
+ Catches -he and -hel as well, instead of letting wish print its usage
+ message (that sounds like an error message).
+Author: Magnus Holmgren <holmgren@debian.org>
+Bug-Debian: http://bugs.debian.org/544250
+
+diff -urNad trunk~/scripts/ssvnc trunk/scripts/ssvnc
+--- trunk~/scripts/ssvnc 2009-12-27 21:38:58.000000000 +0100
++++ trunk/scripts/ssvnc 2010-02-06 20:38:41.000000000 +0100
+@@ -8,7 +8,8 @@
+ #
+ # See ssvnc_cmd for details.
+ #
+-if [ "X$1" = "X-help" -o "X$1" = "X-h" ]; then
++helpflag="-help"
++if [ ${#1} -gt 1 -a "$1${helpflag##$1}" = $helpflag ]; then
+ cat << END
+ ssvnc - a GUI wrapper for SSL and SSH VNC connections.
+
+@@ -106,7 +107,7 @@
+ exit 0
+ fi
+ if [ "X$1" = "X-ssh" ]; then
+- if [ "X$2" = "X-help" -o "X$2" = "X-h" ]; then
++ if [ ${#2} -gt 1 -a "$2${helpflag##$2}" = $helpflag ]; then
+ cat << END
+ sshvnc - a GUI wrapper for SSH VNC connections.
+
+@@ -124,7 +125,7 @@
+ fi
+
+ if [ "X$1" = "X-ts" -o "X$1" = "X-tso" ]; then
+- if [ "X$2" = "X-help" -o "X$2" = "X-h" ]; then
++ if [ ${#2} -gt 1 -a "$2${helpflag##$2}" = $helpflag ]; then
+ cat << END
+ tsvnc - a GUI wrapper for SSH VNC connections using x11vnc Terminal Services.
+
/confusing_-h.patch
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property