summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-04 08:19:54 +0000
committerMike Frysinger <vapier@gentoo.org>2009-12-04 08:19:54 +0000
commitc26bf539d0a9e5777f728ff3ac8dd9656e152977 (patch)
treeed28cfa19d8786c035e38fed4b4e0a7a6a462c8b /net-misc/ssvnc/files
parentFix to compile with linux-2.6.32 kernel. (diff)
downloadgentoo-2-c26bf539d0a9e5777f728ff3ac8dd9656e152977.tar.gz
gentoo-2-c26bf539d0a9e5777f728ff3ac8dd9656e152977.tar.bz2
gentoo-2-c26bf539d0a9e5777f728ff3ac8dd9656e152977.zip
Version bump and avoid imake #289407 by Dmitri Pogosian.
(Portage version: 2.2_rc54/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ssvnc/files')
-rw-r--r--net-misc/ssvnc/files/Makefile.libvncauth5
-rw-r--r--net-misc/ssvnc/files/Makefile.vncviewer5
-rw-r--r--net-misc/ssvnc/files/ssvnc-1.0.24-build.patch61
-rw-r--r--net-misc/ssvnc/files/ssvnc-1.0.24-optional-java.patch41
4 files changed, 112 insertions, 0 deletions
diff --git a/net-misc/ssvnc/files/Makefile.libvncauth b/net-misc/ssvnc/files/Makefile.libvncauth
new file mode 100644
index 000000000000..09406d6fe386
--- /dev/null
+++ b/net-misc/ssvnc/files/Makefile.libvncauth
@@ -0,0 +1,5 @@
+AR ?= ar
+CPPFLAGS += -I. -I../include -D_GNU_SOURCE
+srcs = $(wildcard *.c)
+libvncauth.a: $(srcs:.c=.o)
+ $(AR) rc $@ $^
diff --git a/net-misc/ssvnc/files/Makefile.vncviewer b/net-misc/ssvnc/files/Makefile.vncviewer
new file mode 100644
index 000000000000..46b4a8b6e269
--- /dev/null
+++ b/net-misc/ssvnc/files/Makefile.vncviewer
@@ -0,0 +1,5 @@
+CPPFLAGS += -I. -I../include -D_GNU_SOURCE
+LDLIBS += ../libvncauth/libvncauth.a -lz -ljpeg -lX11 -lXt -lXaw
+include Makefile.in
+all: vncviewer
+vncviewer: $(SRCS:.c=.o)
diff --git a/net-misc/ssvnc/files/ssvnc-1.0.24-build.patch b/net-misc/ssvnc/files/ssvnc-1.0.24-build.patch
new file mode 100644
index 000000000000..8988c2f5b12a
--- /dev/null
+++ b/net-misc/ssvnc/files/ssvnc-1.0.24-build.patch
@@ -0,0 +1,61 @@
+--- a/vncstorepw/vncauth.c
++++ b/vncstorepw/vncauth.c
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/stat.h>
+ #include "d3des.h"
+ #if 0
+--- a/vncstorepw/vncstorepw.c
++++ b/vncstorepw/vncstorepw.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+
+ extern int rfbEncryptAndStorePasswd(char *, char*);
+
+--- a/Makefile
++++ b/Makefile
+@@ -21,11 +21,11 @@
+
+ # N.B. ?= is gnu make specific. Some of the subdir Makefiles are too.
+ #
+-PREFIX ?= /usr/local
+-ROOT ?=
++PREFIX = /usr
++ROOT = $(DESTDIR)
+ BIN = bin
+ LIB = lib/ssvnc
+ MAN = man
+-MANDIR ?= $(MAN)
++MANDIR = share/$(MAN)
+ APPS ?= share/applications
+ BINNAME ?= ssvncviewer
+@@ -66,7 +66,6 @@
+
+ install: all
+ mkdir -p $(ROOT)$(PREFIX)/$(BIN) $(ROOT)$(PREFIX)/$(LIB) $(ROOT)$(PREFIX)/$(MANDIR)/man1
+- strip $(VIEWER)
+ cp -p $(VIEWER) $(ROOT)$(PREFIX)/$(LIB)
+ cp -p $(VNCSPW) $(ROOT)$(PREFIX)/$(LIB)
+ cp -p $(UNWRAP) $(ROOT)$(PREFIX)/$(LIB)
+--- a/vncstorepw/Makefile
++++ b/vncstorepw/Makefile
+@@ -14,7 +14,6 @@
+
+ $(CMD): vncauth.o vncstorepw.o d3des.o
+ PATH=$$PATH:$(EPATH) $(CC) -o $(CMD) vncstorepw.o vncauth.o d3des.o
+- PATH=$$PATH:$(EPATH) strip $(CMD)
+ @ls -l $(CMD)
+
+ $(UNWRAP): unwrap.c
+@@ -41,7 +40,6 @@
+ else \
+ PATH=$$PATH:$(EPATH) $(CC) -o $(ULTDSM) $(CPP_SSL) ultravnc_dsm_helper.c $(LD_SSL) -lcrypto; \
+ fi
+- PATH=$$PATH:$(EPATH) strip $(ULTDSM)
+ @ls -l $(ULTDSM)
+
+ test: $(CMD)
+
diff --git a/net-misc/ssvnc/files/ssvnc-1.0.24-optional-java.patch b/net-misc/ssvnc/files/ssvnc-1.0.24-optional-java.patch
new file mode 100644
index 000000000000..44fddcfe6cdd
--- /dev/null
+++ b/net-misc/ssvnc/files/ssvnc-1.0.24-optional-java.patch
@@ -0,0 +1,41 @@
+--- a/Makefile
++++ b/Makefile
+@@ -44,8 +44,10 @@
+
+ config:
+ sh -c 'type xmkmf'
++ifneq ($(JSRC),)
+ sh -c 'type javac'
+ sh -c 'type jar'
++endif
+ @echo
+ cd $(VSRC)/libvncauth; pwd; xmkmf
+ cd $(VSRC)/vncviewer; pwd; xmkmf
+@@ -55,13 +55,17 @@ config:
+ all:
+ cd $(VSRC)/libvncauth; $(MAKE)
+ cd $(VSRC)/vncviewer; $(MAKE)
++ifneq ($(JSRC),)
+ cd $(JSRC); $(MAKE)
++endif
+ cd $(PSRC); $(MAKE)
+
+ clean:
+ cd $(VSRC)/libvncauth; $(MAKE) clean
+ cd $(VSRC)/vncviewer; $(MAKE) clean
++ifneq ($(JSRC),)
+ cd $(JSRC); $(MAKE) clean
++endif
+ cd $(PSRC); $(MAKE) clean
+
+ install: all
+@@ -72,7 +76,9 @@ install: all
+ cp -p $(LIMACC) $(ROOT)$(PREFIX)/$(LIB)
+ cp -p $(ULTDSM) $(ROOT)$(PREFIX)/$(LIB)
+ cp -pR scripts/* $(ROOT)$(PREFIX)/$(LIB)
++ifneq ($(JSRC),)
+ cp -p $(ARCHIVE) $(ROOT)$(PREFIX)/$(LIB)/util
++endif
+ cp -p $(MAN)/man1/ssvnc.1 $(ROOT)$(PREFIX)/$(MANDIR)/man1
+ ./wr_tool $(ROOT)$(PREFIX)/$(BIN)/ssvnc $(PREFIX)/$(LIB)/ssvnc
+ ./wr_tool $(ROOT)$(PREFIX)/$(BIN)/tsvnc $(PREFIX)/$(LIB)/tsvnc