summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-03 01:57:26 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-03 01:57:26 +0000
commit7feb94249bb07813ec71081a2aa9bb7f422074d3 (patch)
tree8d5e22d707d562d0ecdfdace4e971328aacb2f3e /net-misc/ssvnc
parentCommented the opensync use flag description has it's disable until a new vers... (diff)
downloadgentoo-2-7feb94249bb07813ec71081a2aa9bb7f422074d3.tar.gz
gentoo-2-7feb94249bb07813ec71081a2aa9bb7f422074d3.tar.bz2
gentoo-2-7feb94249bb07813ec71081a2aa9bb7f422074d3.zip
Initial package by me.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ssvnc')
-rw-r--r--net-misc/ssvnc/ChangeLog11
-rw-r--r--net-misc/ssvnc/files/ssvnc-1.0.22-build.patch61
-rw-r--r--net-misc/ssvnc/files/ssvnc-1.0.22-optional-java.patch30
-rw-r--r--net-misc/ssvnc/metadata.xml8
-rw-r--r--net-misc/ssvnc/ssvnc-1.0.22.ebuild56
5 files changed, 166 insertions, 0 deletions
diff --git a/net-misc/ssvnc/ChangeLog b/net-misc/ssvnc/ChangeLog
new file mode 100644
index 000000000000..9dfa3f1640d5
--- /dev/null
+++ b/net-misc/ssvnc/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ChangeLog,v 1.1 2009/02/03 01:57:26 vapier Exp $
+
+*ssvnc-1.0.22 (03 Feb 2009)
+
+ 03 Feb 2009; Mike Frysinger <vapier@gentoo.org>
+ +files/ssvnc-1.0.22-build.patch, +files/ssvnc-1.0.22-optional-java.patch,
+ +metadata.xml, +ssvnc-1.0.22.ebuild:
+ Initial package by me.
+
diff --git a/net-misc/ssvnc/files/ssvnc-1.0.22-build.patch b/net-misc/ssvnc/files/ssvnc-1.0.22-build.patch
new file mode 100644
index 000000000000..b61c972562c7
--- /dev/null
+++ b/net-misc/ssvnc/files/ssvnc-1.0.22-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/man1
+-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)
+- 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.22-optional-java.patch b/net-misc/ssvnc/files/ssvnc-1.0.22-optional-java.patch
new file mode 100644
index 000000000000..0d1b9e3940f1
--- /dev/null
+++ b/net-misc/ssvnc/files/ssvnc-1.0.22-optional-java.patch
@@ -0,0 +1,30 @@
+--- a/Makefile
++++ b/Makefile
+@@ -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)/ssvnc.1 $(ROOT)$(PREFIX)/$(MANDIR)
+ ./wr_tool $(ROOT)$(PREFIX)/$(BIN)/ssvnc $(PREFIX)/$(LIB)/ssvnc
+ ./wr_tool $(ROOT)$(PREFIX)/$(BIN)/tsvnc $(PREFIX)/$(LIB)/tsvnc
diff --git a/net-misc/ssvnc/metadata.xml b/net-misc/ssvnc/metadata.xml
new file mode 100644
index 000000000000..04cfecd9dc9b
--- /dev/null
+++ b/net-misc/ssvnc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>vapier@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/ssvnc/ssvnc-1.0.22.ebuild b/net-misc/ssvnc/ssvnc-1.0.22.ebuild
new file mode 100644
index 000000000000..e44e0d136486
--- /dev/null
+++ b/net-misc/ssvnc/ssvnc-1.0.22.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ssvnc-1.0.22.ebuild,v 1.1 2009/02/03 01:57:26 vapier Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="VNC viewer that adds encryption security to VNC connections"
+HOMEPAGE="http://www.karlrunge.com/x11vnc/ssvnc.html"
+SRC_URI="mirror://sourceforge/ssvnc/${P}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="java"
+
+RDEPEND="sys-libs/zlib
+ media-libs/jpeg
+ dev-libs/openssl
+ java? ( virtual/jre )
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXaw
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libXt"
+DEPEND="${RDEPEND}
+ java? ( virtual/jdk )
+ x11-misc/imake"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-build.patch
+ epatch "${FILESDIR}"/${P}-optional-java.patch
+ sed -i \
+ -e '/CXXDEBUGFLAGS =/s:-O2:$(CXXFLAGS):' \
+ -e '/CDEBUGFLAGS =/s:-O2:$(CFLAGS):' \
+ vnc_unixsrc/vncviewer/Makefile
+ sed -i \
+ -e "/^LIB/s:lib/:$(get_libdir)/:" \
+ -e $(use java || echo '/^JSRC/s:=.*:=:') \
+ Makefile
+}
+
+src_compile() {
+ emake || die
+ emake all || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc README
+}