pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

new package for turbovnc



here is a new package for turbovnc 
built from the last sources...  tested on NetBSD-9_RC1 amd64
it installs an entry in the /etc/inetd.conf pointing to an xdmcp server at localhost

===========================================================

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	turbovnc
#	turbovnc/patches
#	turbovnc/patches/patch-unix_Xvnc_CMakeLists.txt
#	turbovnc/patches/patch-unix_vncviewer_vncviewer.in
#	turbovnc/DEINSTALL
#	turbovnc/DESCR
#	turbovnc/INSTALL
#	turbovnc/Makefile
#	turbovnc/PLIST
#	turbovnc/buildlink3.mk
#	turbovnc/distinfo
#
echo c - turbovnc
mkdir -p turbovnc > /dev/null 2>&1
echo c - turbovnc/patches
mkdir -p turbovnc/patches > /dev/null 2>&1
echo x - turbovnc/patches/patch-unix_Xvnc_CMakeLists.txt
sed 's/^X//' >turbovnc/patches/patch-unix_Xvnc_CMakeLists.txt << 'END-of-turbovnc/patches/patch-unix_Xvnc_CMakeLists.txt'
X$NetBSD$
X
X--- unix/Xvnc/CMakeLists.txt.orig	2019-09-06 16:45:24.000000000 +0000
X+++ unix/Xvnc/CMakeLists.txt
X@@ -92,9 +92,9 @@ endfunction()
X if(TVNC_SYSTEMX11)
X 	include_directories(${X11_X11_INCLUDE_PATH} ${X11_Xau_INCLUDE_PATH}
X 		${X11_Xdmcp_INCLUDE_PATH} ${X11_Xkbfile_INCLUDE_PATH})
X-	string(REGEX REPLACE "X11" "Xfont2" X11_Xfont2_LIB ${X11_X11_LIB})
X-	string(REGEX REPLACE "X11" "fontenc" X11_Fontenc_LIB ${X11_X11_LIB})
X-	string(REGEX REPLACE "X11" "pixman-1" X11_Pixman_LIB ${X11_X11_LIB})
X+	set(X11_Pixman_LIB /usr/X11R7/lib/libpixman-1.so)
X+	set(X11_Xfont2_LIB /usr/X11R7/lib/libXfont2.so)
X+	set(X11_Fontenc_LIB /usr/X11R7/lib/libfontenc.so)
X else()
X 	include_directories(${CMAKE_CURRENT_BINARY_DIR}/X_include)
X 	set(X11_Xau_LIB Xau)
END-of-turbovnc/patches/patch-unix_Xvnc_CMakeLists.txt
echo x - turbovnc/patches/patch-unix_vncviewer_vncviewer.in
sed 's/^X//' >turbovnc/patches/patch-unix_vncviewer_vncviewer.in << 'END-of-turbovnc/patches/patch-unix_vncviewer_vncviewer.in'
X$NetBSD$
X
X--- unix/vncviewer/vncviewer.in.orig	2019-09-06 16:45:24.000000000 +0000
X+++ unix/vncviewer/vncviewer.in
X@@ -2,15 +2,10 @@
X set -e
X 
X BINDIR=`dirname $0`
X-if [ "$JAVA_HOME" = "" ]; then
X-	JAVA=java
X-else
X-	JAVA="$JAVA_HOME/bin/java"
X-fi
X+export JAVA_HOME=/usr/pkg/java/openjdk8
X+JAVA="$JAVA_HOME/bin/java"
X+
X TVNC_JAVADIR=@CMAKE_INSTALL_FULL_JAVADIR@
X-if [ -d $BINDIR/../java ]; then
X-	TVNC_JAVADIR=$BINDIR/../java
X-fi
X 
X # Attempt to figure out where libjawt.so lives
X ARCH=@CPU_TYPE@
X@@ -55,7 +50,6 @@ fi
X if [ "$JAWT_PATH" = "" ]; then
X 	echo WARNING: Could not find libjawt.so.  Some features may not work properly.
X else
X-	echo libjawt.so path: $JAWT_PATH
X 	LD_LIBRARY_PATH=$JAWT_PATH:$LD_LIBRARY_PATH
X 	export LD_LIBRARY_PATH
X fi
END-of-turbovnc/patches/patch-unix_vncviewer_vncviewer.in
echo x - turbovnc/DEINSTALL
sed 's/^X//' >turbovnc/DEINSTALL << 'END-of-turbovnc/DEINSTALL'
Xt=/tmp/$$
Xcase ${STAGE} in
XDEINSTALL)
X	sed -e "/Xvnc/d" /etc/inetd.conf > $t
X	mv $t /etc/inetd.conf
X	/etc/rc.d/inetd restart
X;;
Xesac
Xrm -f $t
END-of-turbovnc/DEINSTALL
echo x - turbovnc/DESCR
sed 's/^X//' >turbovnc/DESCR << 'END-of-turbovnc/DESCR'
XAbout TurboVNC
X==============
X
XVirtual Network Computing (VNC) is a remote display system that allows you to
Xview and interact with a desktop environment that is running on a remote
Xcomputer.  Using VNC, you can run graphical applications on a remote machine
Xand send only the pixels generated by those applications to your local machine.
XVNC is platform-independent and supports a wide variety of operating systems
Xand architectures as both servers and clients.
X
XTurboVNC is a high-speed version of VNC derived from TightVNC.  It contains
Xa variant of Tight encoding that is tuned to maximize performance for image-
Xintensive applications (such as VirtualGL, video applications, and image
Xeditors) while still providing excellent performance for other types of
Xapplications.  TurboVNC, in combination with VirtualGL, provides a complete
Xsolution for remotely displaying 3D applications with interactive performance.
X
XRefer to the TurboVNC User's Guide and man pages for a more thorough
Xdescription of the components that make up TurboVNC.
X
XFor credits see =>  https://github.com/TurboVNC/turbovnc
X
X======for the system to compile, needs libjpeg-turbo be built with java support===========
X
X.if     ${PKGPATH:Mgraphics/libjpeg-turbo}
XLIBS+=			-ljpeg
XCPPFLAGS+=		-I${PKG_JAVA_HOME}/include
XPKG_JVM_DEFAULT=	openjdk8
XCONFIGURE_ARGS+=	 --with-java
XGENERATE_PLIST+=	echo share/classes/turbojpeg.jar;
X.include		"../../mk/java-vm.mk"
X.endif
X
X========================in /etc/mk.conf==================================================
END-of-turbovnc/DESCR
echo x - turbovnc/INSTALL
sed 's/^X//' >turbovnc/INSTALL << 'END-of-turbovnc/INSTALL'
Xt=/tmp/$$
Xcase ${STAGE} in
XPOST-INSTALL)
X	sed -e "/Xvnc/d" /etc/inetd.conf > $t
X	echo "rfb stream tcp nowait root /usr/pkg/bin/Xvnc Xvnc -inetd -ac -retro -nomt -query localhost -once -geometry 1164x652 -depth 16 -securitytypes none" >> $t
X	mv $t /etc/inetd.conf
X	/etc/rc.d/inetd restart
X;;
Xesac
Xrm -f $t
END-of-turbovnc/INSTALL
echo x - turbovnc/Makefile
sed 's/^X//' >turbovnc/Makefile << 'END-of-turbovnc/Makefile'
X# $NetBSD$
X
XGITHUB_PROJECT=	turbovnc
XDISTNAME=	2.2.3
XPKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
XCATEGORIES=	net
XMASTER_SITES=	${MASTER_SITE_GITHUB:=TurboVNC/}
XDIST_SUBDIR=	${GITHUB_PROJECT}
X
XMAINTAINER=	nervoso%k1.com.br@localhost
XHOMEPAGE=	https://github.com/TurboVNC/turbovnc/
XCOMMENT=	vnc viewer and server using gitub turbovnc
X
XWRKSRC=		${WRKDIR}/turbovnc-2.2.3
XUSE_CMAKE=	yes
XUSE_LANGUAGES=	c c++
X
XPKG_JVM_DEFAULT=openjdk8
X
XCFLAGS+=	-I${PKG_JAVA_HOME}/include
XCFLAGS+=	-I${PKG_JAVA_HOME}/include/netbsd
X
XCMAKE_ARGS+=	-DDEFAULT_TJPEG_INCLUDE_DIR=${LOCALBASE}/include
XCMAKE_ARGS+=	-DTJPEG_JAR=/usr/pkg/share/classes/turbojpeg.jar
XCMAKE_ARGS+=	-DTVNC_SYSTEMX11=ON
XCMAKE_ARGS+=	-DTVNC_SYSTEMLIBS=ON
XCMAKE_ARGS+=	-DTJPEG_JNILIBRARY=/usr/pkg/lib/libturbojpeg.so
XCMAKE_ARGS+=	-DICONV_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.iconv}/include
XCMAKE_ARGS+=	-DICONV_LIBRARIES:PATH=${BUILDLINK_PREFIX.iconv}/lib
X
X.include "../../converters/libiconv/buildlink3.mk"
X.include "../../security/openssl/buildlink3.mk"
X.include "../../graphics/libjpeg-turbo/buildlink3.mk"
X.include "../../x11/libXcursor/buildlink3.mk"
X.include "../../x11/libXdamage/buildlink3.mk"
X.include "../../x11/libXft/buildlink3.mk"
X.include "../../x11/libXrandr/buildlink3.mk"
X.include "../../x11/libXinerama/buildlink3.mk"
X.include "../../x11/libXi/buildlink3.mk"
X.include "../../x11/libXcomposite/buildlink3.mk"
X.include "../../x11/libXfont2/buildlink3.mk"
X.include "../../x11/libX11/buildlink3.mk"
X.include "../../x11/libXext/buildlink3.mk"
X.include "../../x11/pixman/buildlink3.mk"
X.include "../../graphics/freetype2/buildlink3.mk"
X.include "../../mk/java-vm.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-turbovnc/Makefile
echo x - turbovnc/PLIST
sed 's/^X//' >turbovnc/PLIST << 'END-of-turbovnc/PLIST'
X@comment $NetBSD$
Xbin/Xvnc
Xbin/checkshmpixmaps
Xbin/vncconnect
Xbin/vncpasswd
Xbin/vncserver
Xbin/vncviewer
Xetc/turbovncserver-security.conf
Xetc/turbovncserver.conf
Xman/man1/Xserver.1
Xman/man1/Xvnc.1
Xman/man1/vncconnect.1
Xman/man1/vncpasswd.1
Xman/man1/vncserver.1
Xman/man1/vncviewer.1
Xshare/doc/TurboVNC/LICENSE.txt
Xshare/doc/TurboVNC/README.txt
Xshare/doc/TurboVNC/index.html
Xshare/doc/TurboVNC/newconn-java.png
Xshare/doc/TurboVNC/newconn-win.png
Xshare/doc/TurboVNC/somerights20.png
Xshare/doc/TurboVNC/turbovnc.css
Xshare/doc/TurboVNC/unixauth-java.png
Xshare/doc/TurboVNC/unixauth-win.png
Xshare/doc/TurboVNC/vgltransportservernetwork.png
Xshare/doc/TurboVNC/vncauth-java.png
Xshare/doc/TurboVNC/vncauth-win.png
Xshare/doc/TurboVNC/x11transport.png
Xshare/turbovnc/classes/README.md
Xshare/turbovnc/classes/VncViewer.jar
Xshare/turbovnc/classes/VncViewer.jnlp
Xshare/turbovnc/classes/favicon.ico
Xshare/turbovnc/classes/libturbojpeg.so
Xshare/turbovnc/classes/libturbovnchelper.so
X@pkgdir share/examples/rc.d
END-of-turbovnc/PLIST
echo x - turbovnc/buildlink3.mk
sed 's/^X//' >turbovnc/buildlink3.mk << 'END-of-turbovnc/buildlink3.mk'
X# $NetBSD$
X
XBUILDLINK_TREE+=	turbovnc
X
X.if !defined(TURBOVNC_BUILDLINK3_MK)
XTURBOVNC_BUILDLINK3_MK:=
X
XBUILDLINK_API_DEPENDS.turbovnc+=	turbovnc>=2.2.3
XBUILDLINK_PKGSRCDIR.turbovnc?=	../../net/turbovnc
X
X.include "../../converters/libiconv/buildlink3.mk"
X.include "../../security/openssl/buildlink3.mk"
X.include "../../graphics/libjpeg-turbo/buildlink3.mk"
X.include "../../x11/libXcursor/buildlink3.mk"
X.include "../../x11/libXdamage/buildlink3.mk"
X.include "../../x11/libXft/buildlink3.mk"
X.include "../../x11/libXrandr/buildlink3.mk"
X.include "../../x11/libXinerama/buildlink3.mk"
X.include "../../x11/libXi/buildlink3.mk"
X.include "../../x11/libXcomposite/buildlink3.mk"
X.include "../../x11/libXfont2/buildlink3.mk"
X.include "../../x11/libX11/buildlink3.mk"
X.include "../../x11/libXext/buildlink3.mk"
X.include "../../x11/pixman/buildlink3.mk"
X.include "../../graphics/freetype2/buildlink3.mk"
X.endif	# TURBOVNC_BUILDLINK3_MK
X
XBUILDLINK_TREE+=	-turbovnc
END-of-turbovnc/buildlink3.mk
echo x - turbovnc/distinfo
sed 's/^X//' >turbovnc/distinfo << 'END-of-turbovnc/distinfo'
X$NetBSD$
X
XSHA1 (turbovnc/2.2.3.tar.gz) = e226b19e45052f7b680592ec3ad3158968c50b75
XRMD160 (turbovnc/2.2.3.tar.gz) = a45fc8dfe771ce3ad7f966babba60aff8d84a6e5
XSHA512 (turbovnc/2.2.3.tar.gz) = 93788a1809dda8e4274b536e5d1a7c9818836e3989c253955314b003b64ea4eb1e6dfaf71129c6405d278ad5a628fb249213cd00ea45c290362ce406783d7dfc
XSize (turbovnc/2.2.3.tar.gz) = 8961821 bytes
XSHA1 (patch-unix_Xvnc_CMakeLists.txt) = 4bb0e7e3fae31a7be308b9b73d7c90e66049437c
XSHA1 (patch-unix_Xvnc_programs_Xserver_CMakeLists.txt) = 94f9b843257586c7ecac50511a20d4941e3e33e3
XSHA1 (patch-unix_vncserver.in) = fae2d85e0b4d6384690b30f8c43f6eae810d516b
XSHA1 (patch-unix_vncviewer_vncviewer.in) = 0f3fd4fba5b163b1ecfd78a801c6a427db59e0d5
END-of-turbovnc/distinfo
exit





Home | Main Index | Thread Index | Old Index