diff options
author | gahr <gahr@FreeBSD.org> | 2008-05-15 23:08:17 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-05-15 23:08:17 +0800 |
commit | ab2178d645b8b5dc80453671128eba17da85cc48 (patch) | |
tree | bc97c1d8a1f690b171f02f93d5def54939179fb8 /net | |
parent | 6d967f7d5489ad587c707d61f962e2f2e9755460 (diff) | |
download | freebsd-ports-gnome-ab2178d645b8b5dc80453671128eba17da85cc48.tar.gz freebsd-ports-gnome-ab2178d645b8b5dc80453671128eba17da85cc48.tar.zst freebsd-ports-gnome-ab2178d645b8b5dc80453671128eba17da85cc48.zip |
- New port: jrdesktop
jrdesktop is an open source software for viewing and/or controlling
a remote PC. Besides then screenshots, keyboard and mouse events transfer,
jrdesktop includes many additional features (file transfer, data compression,
color conversion, ...).
http://jrdesktop.sourceforge.net/
Approved by: miwi (mentor)
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/jrdesktop/Makefile | 37 | ||||
-rw-r--r-- | net/jrdesktop/distinfo | 3 | ||||
-rw-r--r-- | net/jrdesktop/files/jrdesktop-server.in | 14 | ||||
-rw-r--r-- | net/jrdesktop/files/jrdesktop-viewer.in | 13 | ||||
-rw-r--r-- | net/jrdesktop/files/patch-src-src-jrdesktop_SysTray.java | 10 | ||||
-rw-r--r-- | net/jrdesktop/pkg-descr | 6 |
7 files changed, 84 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index b860b7b716b4..7d0ef2669c1c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -248,6 +248,7 @@ SUBDIR += jakarta-commons-net SUBDIR += java-beepcore SUBDIR += jcifs + SUBDIR += jrdesktop SUBDIR += jsch SUBDIR += jumpgate SUBDIR += jwhois diff --git a/net/jrdesktop/Makefile b/net/jrdesktop/Makefile new file mode 100644 index 000000000000..81422debd932 --- /dev/null +++ b/net/jrdesktop/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: jrdesktop +# Date created: May 7 2008 +# Whom: gahr +# +# $FreeBSD$ +# + +PORTNAME= jrdesktop +PORTVERSION= 0.2.0011 +CATEGORIES= net java +MASTER_SITES= SF +DISTNAME= ${PORTNAME}-${PORTVERSION}.src + +MAINTAINER= gahr@FreeBSD.org +COMMENT= View and/or control a remote PC + +USE_JAVA= yes +JAVA_VERSION= 1.6+ +USE_ANT= yes +USE_ZIP= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}/src + +PLIST_FILES= %%JAVAJARDIR%%/jrdesktop.jar \ + bin/jrdesktop-server \ + bin/jrdesktop-viewer + +do-install: + ${INSTALL_DATA} ${WRKSRC}/dist/jrdesktop.jar ${JAVAJARDIR} + ${INSTALL_SCRIPT} ${FILESDIR}/jrdesktop-server.in ${PREFIX}/bin/jrdesktop-server + ${INSTALL_SCRIPT} ${FILESDIR}/jrdesktop-viewer.in ${PREFIX}/bin/jrdesktop-viewer + +post-install: + ${REINPLACE_CMD} -i "" -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;s|%%JAVA%%|${JAVA}|' \ + ${PREFIX}/bin/jrdesktop-server ${PREFIX}/bin/jrdesktop-viewer + +.include <bsd.port.mk> diff --git a/net/jrdesktop/distinfo b/net/jrdesktop/distinfo new file mode 100644 index 000000000000..9e225d171c61 --- /dev/null +++ b/net/jrdesktop/distinfo @@ -0,0 +1,3 @@ +MD5 (jrdesktop-0.2.0011.src.zip) = fa6752932ddf2e37675ac7f36dabef2e +SHA256 (jrdesktop-0.2.0011.src.zip) = bc4678c395e64e1d82687c9ceda22e166e5ca5d3e88022df34b3466d3bcfea46 +SIZE (jrdesktop-0.2.0011.src.zip) = 90222 diff --git a/net/jrdesktop/files/jrdesktop-server.in b/net/jrdesktop/files/jrdesktop-server.in new file mode 100644 index 000000000000..a1c7f7df4322 --- /dev/null +++ b/net/jrdesktop/files/jrdesktop-server.in @@ -0,0 +1,14 @@ +#!/bin/sh + +JRDESKTOP_JAR=%%JAVAJARDIR%%/jrdesktop.jar + +if [ $# -ne 5 ]; then + echo "Usage:" + echo " $0 port username password ssl-enabled multihome-enabled" + echo "where:" + echo " <ssl-enabled> = true for a secured connection" + echo " <multihome-enabled> = true if server has multiple IP addresses" + exit 1 +fi + +%%JAVA%% -jar ${JRDESKTOP_JAR} -server $1 $2 $3 $4 $5 $6 diff --git a/net/jrdesktop/files/jrdesktop-viewer.in b/net/jrdesktop/files/jrdesktop-viewer.in new file mode 100644 index 000000000000..3a392603e32a --- /dev/null +++ b/net/jrdesktop/files/jrdesktop-viewer.in @@ -0,0 +1,13 @@ +#!/bin/sh + +JRDESKTOP_JAR=%%JAVAJARDIR%%/jrdesktop.jar + +if [ $# -ne 5 ]; then + echo "Usage:" + echo " $0 server-address server-port username password ssl-enabled" + echo "where:" + echo " <ssl-enabled> = true for a secured connection" + exit 1 +fi + +%%JAVA%% -jar ${JRDESKTOP_JAR} -viewer $1 $2 $3 $4 $5 diff --git a/net/jrdesktop/files/patch-src-src-jrdesktop_SysTray.java b/net/jrdesktop/files/patch-src-src-jrdesktop_SysTray.java new file mode 100644 index 000000000000..e8c0cd281709 --- /dev/null +++ b/net/jrdesktop/files/patch-src-src-jrdesktop_SysTray.java @@ -0,0 +1,10 @@ +--- src/jrdesktop/SysTray.java.orig 2008-05-08 17:04:24.000000000 +0200 ++++ src/jrdesktop/SysTray.java 2008-05-08 17:04:56.000000000 +0200 +@@ -51,6 +51,7 @@ + } + + public static void displayMsg(String Title, String Msg) { ++ if (!SystemTray.isSupported()) return; + trayIcon.displayMessage(Title, Msg, TrayIcon.MessageType.INFO); + } + diff --git a/net/jrdesktop/pkg-descr b/net/jrdesktop/pkg-descr new file mode 100644 index 000000000000..5d95b6665360 --- /dev/null +++ b/net/jrdesktop/pkg-descr @@ -0,0 +1,6 @@ +jrdesktop is an open source software for viewing and/or controlling a +distance PC. Besides then screenshots, keyboard and mouse events +transfer, jrdesktop includes many additional features(file transfer, +data compression, color conversion, ...). + +WWW: http://jrdesktop.sourceforge.net/ |