summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-10-23 15:09:47 +0000
committerMike Frysinger <vapier@gentoo.org>2002-10-23 15:09:47 +0000
commitec890208e117270697afc32858f1960f0c27b3c5 (patch)
treec7e71ed021b23e14bbc0174415cc0ea0b3e8be68 /net-misc
parentinitial version (diff)
downloadhistorical-ec890208e117270697afc32858f1960f0c27b3c5.tar.gz
historical-ec890208e117270697afc32858f1960f0c27b3c5.tar.bz2
historical-ec890208e117270697afc32858f1960f0c27b3c5.zip
Initial ebuild
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rfb/ChangeLog8
-rw-r--r--net-misc/rfb/files/digest-rfb-0.6.11
-rw-r--r--net-misc/rfb/files/gcc3.x-rfb-0.6.1.patch200
-rw-r--r--net-misc/rfb/rfb-0.6.1.ebuild40
4 files changed, 249 insertions, 0 deletions
diff --git a/net-misc/rfb/ChangeLog b/net-misc/rfb/ChangeLog
new file mode 100644
index 000000000000..c752c1271022
--- /dev/null
+++ b/net-misc/rfb/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-misc/rfb
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rfb/ChangeLog,v 1.1 2002/10/23 15:09:47 vapier Exp $
+
+*rfb-0.6.1 (23 Oct 2002)
+
+ 23 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/net-misc/rfb/files/digest-rfb-0.6.1 b/net-misc/rfb/files/digest-rfb-0.6.1
new file mode 100644
index 000000000000..f83cf7181f22
--- /dev/null
+++ b/net-misc/rfb/files/digest-rfb-0.6.1
@@ -0,0 +1 @@
+MD5 1b5c806cd98f90501ec234784d5ffd0d rfb-0.6.1.tar.gz 324505
diff --git a/net-misc/rfb/files/gcc3.x-rfb-0.6.1.patch b/net-misc/rfb/files/gcc3.x-rfb-0.6.1.patch
new file mode 100644
index 000000000000..985faf8d3ee6
--- /dev/null
+++ b/net-misc/rfb/files/gcc3.x-rfb-0.6.1.patch
@@ -0,0 +1,200 @@
+--- ./lib/Framebuffer.cc.orig 2002-09-29 17:27:45.000000000 -0400
++++ ./lib/Framebuffer.cc 2002-09-29 17:28:37.000000000 -0400
+@@ -161,7 +161,7 @@
+ unsigned int r,
+ unsigned int g,
+ unsigned int b,
+- unsigned int m = 255 )
++ unsigned int m )
+ {
+ FramebufferPixel(this,x,y).setColor(r,g,b,m);
+ }
+@@ -172,7 +172,7 @@
+ unsigned int &r,
+ unsigned int &g,
+ unsigned int &b,
+- unsigned int m = 255 )
++ unsigned int m )
+ {
+ FramebufferPixel(this,x,y).getColor(r,g,b,m);
+ }
+@@ -181,7 +181,7 @@
+ void FramebufferPixel::setColor( unsigned int r,
+ unsigned int g,
+ unsigned int b,
+- unsigned int m = 255 )
++ unsigned int m )
+ {
+ unsigned int r_max = fb->pixelFormat.red_max;
+ unsigned int g_max = fb->pixelFormat.green_max;
+@@ -246,7 +246,7 @@
+ void FramebufferPixel::getColor( unsigned int &r,
+ unsigned int &g,
+ unsigned int &b,
+- unsigned int m = 255 )
++ unsigned int m )
+ {
+ unsigned int r_max = fb->pixelFormat.red_max;
+ unsigned int g_max = fb->pixelFormat.green_max;
+@@ -288,10 +288,10 @@
+
+
+ int saveFramebufferAsPPM( int file, Framebuffer *fb,
+- int x0 = 0,
+- int y0 = 0,
+- int width = -1,
+- int height = -1 ) {
++ int x0,
++ int y0,
++ int width,
++ int height ) {
+ if ( width < 0 ) width = fb->width;
+ if ( height < 0 ) height = fb->height;
+ char tmp[255] = "";
+--- ./lib/rfb.cc.orig 2002-09-29 17:34:41.000000000 -0400
++++ ./lib/rfb.cc 2002-09-29 17:34:51.000000000 -0400
+@@ -28,7 +28,7 @@
+ /* CARD16 */
+ /**************************************************/
+
+-CARD16::CARD16( unsigned int _value = 0 )
++CARD16::CARD16( unsigned int _value )
+ {
+ value[1] = _value;
+ _value >>= 8;
+@@ -55,7 +55,7 @@
+ /* CARD32 */
+ /**************************************************/
+
+-CARD32::CARD32( unsigned int _value = 0 )
++CARD32::CARD32( unsigned int _value )
+ {
+ value[3] = _value;
+ _value >>= 8;
+--- ./lib/rfbServer.cc.orig 2002-09-29 17:37:06.000000000 -0400
++++ ./lib/rfbServer.cc 2002-09-29 17:41:36.000000000 -0400
+@@ -22,8 +22,12 @@
+ #include "rfbServer.h"
+ #include <stdlib.h>
+ #include <string.h>
++#include <iostream>
+ #include "d3des.h"
+
++using std::cerr;
++using std::cout;
++using std::endl;
+
+ namespace rfb {
+
+--- ./include/rfbServer.h.orig 2002-09-29 17:29:06.000000000 -0400
++++ ./include/rfbServer.h 2002-09-29 17:34:19.000000000 -0400
+@@ -26,6 +26,7 @@
+ #include "Framebuffer.h"
+
+ #include <list>
++using std::list;
+
+ namespace rfb {
+
+--- ./include/rfbClient.h.orig 2002-09-29 17:36:15.000000000 -0400
++++ ./include/rfbClient.h 2002-09-29 17:36:33.000000000 -0400
+@@ -257,7 +257,7 @@
+
+ protected:
+ Rectangle rectangle;
+- friend ClientStateDecodingRaw;
++ friend class rfb::ClientStateDecodingRaw;
+ };
+
+
+--- ./x0rfbserver/xclass++.h.orig 2002-09-29 17:49:18.000000000 -0400
++++ ./x0rfbserver/xclass++.h 2002-09-29 17:49:24.000000000 -0400
+@@ -2,7 +2,7 @@
+ #define _hexonet_xclass_plusplus_
+
+ #include <map>
+-
++using std::map;
+
+ #define LAYOUT_HINTS map< OXFrame*, OLayoutHints* > layoutHints
+
+--- ./x0rfbserver/XUpdateScanner.cc.orig 2002-09-29 17:50:40.000000000 -0400
++++ ./x0rfbserver/XUpdateScanner.cc 2002-09-29 17:51:12.000000000 -0400
+@@ -18,6 +18,10 @@
+ * USA.
+ */
+
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
+ #include <X11/Xlib.h>
+--- ./x0rfbserver/x0rfbserver.cc.orig 2002-09-29 17:51:53.000000000 -0400
++++ ./x0rfbserver/x0rfbserver.cc 2002-09-29 17:52:23.000000000 -0400
+@@ -18,6 +18,10 @@
+ * USA.
+ */
+
++#include <iostream>
++using std::cerr;
++using std::endl;
++
+ #include "rfbServer.h"
+ #include "version.h"
+ #include "OXAbout.h"
+--- ./xrfbviewer/OXViewerApplet.h.orig 2002-09-29 17:44:49.000000000 -0400
++++ ./xrfbviewer/OXViewerApplet.h 2002-09-29 17:45:02.000000000 -0400
+@@ -31,6 +31,7 @@
+ #include "ConnectionInfo.h"
+
+ #include <map>
++using std::map;
+
+ class OXCompositeFrame;
+
+--- ./xrfbviewer/xclass++.h.orig 2002-09-29 17:44:53.000000000 -0400
++++ ./xrfbviewer/xclass++.h 2002-09-29 17:45:10.000000000 -0400
+@@ -2,7 +2,7 @@
+ #define _hexonet_xclass_plusplus_
+
+ #include <map>
+-
++using std::map;
+
+ #define LAYOUT_HINTS map< OXFrame*, OLayoutHints* > layoutHints
+
+--- ./xrfbviewer/OXViewerApplet.cc.orig 2002-09-29 17:47:01.000000000 -0400
++++ ./xrfbviewer/OXViewerApplet.cc 2002-09-29 17:47:32.000000000 -0400
+@@ -25,6 +25,8 @@
+ #include "OXConnectionDetails.h"
+
+ #include <iostream>
++using std::cout;
++using std::endl;
+
+ #include <sys/types.h>
+ #include <fcntl.h>
+--- ./rfbcat/rfbcat.cc.orig 2002-09-29 17:54:27.000000000 -0400
++++ ./rfbcat/rfbcat.cc 2002-09-29 17:54:43.000000000 -0400
+@@ -21,6 +21,8 @@
+ #include "rfbClient.h"
+
+ #include <iostream>
++using std::cerr;
++using std::endl;
+ #include <fstream>
+
+ #include <stdio.h>
+--- Makefile 2002-09-29 21:44:39.000000000 -0400
++++ Makefile.orig 2002-09-29 21:44:29.000000000 -0400
+@@ -49,7 +49,7 @@
+ rfbcat: librfb.a
+ cd rfbcat && $(MAKE) -e $(ENVIRONMENT) $@
+
+-xvncconnect:
++xvncconnect: librfb.a
+ cd xvncconnect && $(MAKE) -e $(ENVIRONMENT) $@
+
+ clean:
diff --git a/net-misc/rfb/rfb-0.6.1.ebuild b/net-misc/rfb/rfb-0.6.1.ebuild
new file mode 100644
index 000000000000..1f14d87d920d
--- /dev/null
+++ b/net-misc/rfb/rfb-0.6.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rfb/rfb-0.6.1.ebuild,v 1.1 2002/10/23 15:09:47 vapier Exp $
+
+DESCRIPTION="comprehensive collection of rfb enabled tools and applications"
+HOMEPAGE="http://forums.hexonet.com/"
+SRC_URI="http://download.hexonet.com/software/rfb/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+IUSE=""
+
+DEPEND="x11-libs/xclass"
+
+S="${WORKDIR}/${P}"
+
+# todo: make this guy use zlib rather than the build in zlib functions ?
+
+src_compile() {
+ cd ${S}
+ patch -p0<${FILESDIR}/gcc3.x-rfb-0.6.1.patch
+
+ make depend || die "make depend failed"
+ make CXXFLAGS="-DUSE_ZLIB_WARREN -I../include ${CXXFLAGS}" || die "make failed"
+}
+
+src_install() {
+# dolib lib/librfb.a #does anything other than rfb use this ?
+
+ dobin rfbcat/rfbcat x0rfbserver/x0rfbserver \
+ xrfbviewer/{xplayfbs,xrfbviewer}
+ for f in rfbcat x0rfbserver xvncconnect xrfbviewer ; do
+ dobin ${f}/${f}
+ done
+
+ doman man/man1/*
+
+ dodoc README
+ dohtml rfm_fbs.1.0.html
+}