diff options
author | Daniel Goller <morfic@gentoo.org> | 2005-08-06 14:35:11 +0000 |
---|---|---|
committer | Daniel Goller <morfic@gentoo.org> | 2005-08-06 14:35:11 +0000 |
commit | a2833e9d1dac9d0db0637414890ed968d22f11df (patch) | |
tree | cef04b0cda6ff238e7bf048427621929ffe1f142 /net-misc/tightvnc/files | |
parent | Ugly workaround (diff) | |
download | gentoo-2-a2833e9d1dac9d0db0637414890ed968d22f11df.tar.gz gentoo-2-a2833e9d1dac9d0db0637414890ed968d22f11df.tar.bz2 gentoo-2-a2833e9d1dac9d0db0637414890ed968d22f11df.zip |
Adding 1.3 dev 7
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/tightvnc/files')
4 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/tightvnc/files/digest-tightvnc-1.3_alpha7 b/net-misc/tightvnc/files/digest-tightvnc-1.3_alpha7 new file mode 100644 index 000000000000..068c11b37fa6 --- /dev/null +++ b/net-misc/tightvnc/files/digest-tightvnc-1.3_alpha7 @@ -0,0 +1 @@ +MD5 8e9e63f19d8351a5359c0cc15d96c18c tightvnc-1.3dev7_unixsrc.tar.bz2 1764364 diff --git a/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.diff b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.diff new file mode 100644 index 000000000000..417df8a36990 --- /dev/null +++ b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.diff @@ -0,0 +1,19 @@ +--- vncserver.orig 2004-05-30 17:09:53.000000000 +0200 ++++ vncserver 2004-06-19 14:01:21.386221926 +0200 +@@ -36,13 +36,13 @@ + $geometry = "1024x768"; + $depth = 24; + $desktopName = "X"; +-$vncClasses = "/usr/local/vnc/classes"; ++$vncClasses = "/usr/share/tightvnc/classes"; + $vncUserDir = "$ENV{HOME}/.vnc"; +-$fontPath = "unix/:7100"; ++$fontPath = "unix/:-1"; + $authType = "-rfbauth $vncUserDir/passwd"; + + # Here is another example of setting the font path: +-# $fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"; ++$fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"; + + # X colors database path is optional, uncomment and edit to use: + # $colorPath = "/usr/lib/X11/rgb"; diff --git a/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.security.patch b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.security.patch new file mode 100644 index 000000000000..ab65aec892f9 --- /dev/null +++ b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-gentoo.security.patch @@ -0,0 +1,20 @@ +--- /tmp/vncserver 2003-02-21 17:29:45.000000000 +0000 ++++ vncserver 2003-02-21 17:30:10.000000000 +0000 +@@ -153,15 +153,8 @@ + $desktopLog = "$vncUserDir/$host:$displayNumber.log"; + unlink($desktopLog); + +-# Make an X server cookie - use as the seed the sum of the current time, our +-# PID and part of the encrypted form of the password. Ideally we'd use +-# /dev/urandom, but that's only available on Linux. +- +-srand(time+$$+unpack("L",`cat $vncUserDir/passwd`)); +-$cookie = ""; +-for (1..16) { +- $cookie .= sprintf("%02x", int(rand(256))); +-} ++# Make an X server cookie - use mcookie ++$cookie = `/usr/bin/mcookie`; + + system("xauth -f $xauthorityFile add $host:$displayNumber . $cookie"); + system("xauth -f $xauthorityFile add $host/unix:$displayNumber . $cookie"); diff --git a/net-misc/tightvnc/files/tightvnc-1.3_alpha7-imake-tmpdir.patch b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-imake-tmpdir.patch new file mode 100644 index 000000000000..9d5ccc58ad76 --- /dev/null +++ b/net-misc/tightvnc/files/tightvnc-1.3_alpha7-imake-tmpdir.patch @@ -0,0 +1,37 @@ +--- vnc_unixsrc/Xvnc/config/imake/imake.c.orig 2000-06-11 14:00:51.000000000 +0200 ++++ vnc_unixsrc/Xvnc/config/imake/imake.c 2003-09-01 22:59:25.000000000 +0200 +@@ -913,12 +913,25 @@ + static void get_libc_version(inFile) + FILE* inFile; + { +- char *aout = tmpnam (NULL); ++ char aout[PATH_MAX]; + FILE *fp; + const char *format = "%s -o %s -x c -"; + char *cc; + int len; + char *command; ++ char *tmpdir; ++ int tmpfd; ++ ++ if((tmpdir = getenv("TMPDIR")) != NULL && strlen(tmpdir) < (PATH_MAX-13)) ++ strcpy(aout, tmpdir); ++ else ++ strcpy(aout, "/tmp"); ++ strcat(aout, "/imakeXXXXXX"); ++ ++ if((tmpfd = mkstemp(aout)) == -1) { ++ perror("mkstemp"); ++ abort(); ++ } + + cc = getenv ("CC"); + if (cc == NULL) +@@ -930,6 +943,7 @@ + if (snprintf (command , len, format, cc, aout) == len) + abort (); + ++ close(tmpfd); + fp = popen (command, "w"); + if (fp == NULL || fprintf (fp, "%s\n", libc_c) < 0 + || pclose (fp) != 0) |