summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-19 21:39:50 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-19 21:39:50 +0000
commitb26f48abb1382fe91327e49790e80898a724c598 (patch)
tree567a7fecedc4d16115c59c5e4fa0078d52769fac /net-misc/ssvnc
parentMark amd64/x86 stable. (diff)
downloadgentoo-2-b26f48abb1382fe91327e49790e80898a724c598.tar.gz
gentoo-2-b26f48abb1382fe91327e49790e80898a724c598.tar.bz2
gentoo-2-b26f48abb1382fe91327e49790e80898a724c598.zip
Version bump.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ssvnc')
-rw-r--r--net-misc/ssvnc/ChangeLog12
-rw-r--r--net-misc/ssvnc/files/ssvnc-1.0.26-build.patch81
-rw-r--r--net-misc/ssvnc/ssvnc-1.0.26.ebuild60
3 files changed, 152 insertions, 1 deletions
diff --git a/net-misc/ssvnc/ChangeLog b/net-misc/ssvnc/ChangeLog
index ed956e327ad5..513cf1631622 100644
--- a/net-misc/ssvnc/ChangeLog
+++ b/net-misc/ssvnc/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-misc/ssvnc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ChangeLog,v 1.11 2010/04/19 21:39:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ChangeLog,v 1.12 2010/04/19 21:39:50 vapier Exp $
+
+ 19 Apr 2010; Mike Frysinger <vapier@gentoo.org> +ssvnc-1.0.26.ebuild,
+ +files/ssvnc-1.0.26-build.patch:
+ Version bump.
+
+*ssvnc-1.0.26 (19 Apr 2010)
+
+ 19 Apr 2010; Mike Frysinger <vapier@gentoo.org> +ssvnc-1.0.26.ebuild,
+ +files/ssvnc-1.0.26-build.patch:
+ Version bump.
19 Apr 2010; Mike Frysinger <vapier@gentoo.org> ssvnc-1.0.25.ebuild:
Mark amd64/x86 stable.
diff --git a/net-misc/ssvnc/files/ssvnc-1.0.26-build.patch b/net-misc/ssvnc/files/ssvnc-1.0.26-build.patch
new file mode 100644
index 000000000000..b15c384d1f79
--- /dev/null
+++ b/net-misc/ssvnc/files/ssvnc-1.0.26-build.patch
@@ -0,0 +1,81 @@
+--- a/vncstorepw/lim_accept.c
++++ b/vncstorepw/lim_accept.c
+@@ -6,6 +6,7 @@
+ #include <stdlib.h>
+ #include <time.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ /* rename accept something else while we do the includes: */
+ #define accept __accept_5_Moos
+--- a/vncstorepw/unwrap.c
++++ b/vncstorepw/unwrap.c
+@@ -21,6 +21,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <errno.h>
+
+ int db = 0;
+--- 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/ssvnc-1.0.26.ebuild b/net-misc/ssvnc/ssvnc-1.0.26.ebuild
new file mode 100644
index 000000000000..16f7d54ef909
--- /dev/null
+++ b/net-misc/ssvnc/ssvnc-1.0.26.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ssvnc/ssvnc-1.0.26.ebuild,v 1.1 2010/04/19 21:39:50 vapier Exp $
+
+EAPI="2"
+inherit eutils multilib toolchain-funcs
+
+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
+ dev-lang/tk
+ net-misc/stunnel
+ 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 )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.26-build.patch
+
+ sed -i \
+ -e "/^LIB/s:lib/:$(get_libdir)/:" \
+ -e "$(use java || echo '/^JSRC/s:=.*:=:')" \
+ Makefile
+ sed -i \
+ -e '/^CC/s:=.*:+= $(CFLAGS) $(CPPFLAGS) $(LDFLAGS):' \
+ vncstorepw/Makefile
+
+ cp "${FILESDIR}"/Makefile.libvncauth vnc_unixsrc/libvncauth/Makefile
+ cd "${S}"/vnc_unixsrc/vncviewer
+ sed -n '/^SRCS/,/^$/p' Imakefile > Makefile.in
+ cp "${FILESDIR}"/Makefile.vncviewer Makefile
+}
+
+src_compile() {
+ tc-export AR CC CXX RANLIB
+ emake all || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc README
+}