aboutsummaryrefslogtreecommitdiff
path: root/net/repeater
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-12-18 02:09:32 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-12-18 02:09:32 +0000
commiteaddfc38fdb0fc4547fdd808f81a5e0b1bc95b35 (patch)
treeb4841f176d3045d335e534ca6ed026373a50ec21 /net/repeater
parent245496aa1292072ca6680361e2c0bfb3628c6e11 (diff)
downloadports-eaddfc38fdb0fc4547fdd808f81a5e0b1bc95b35.tar.gz
ports-eaddfc38fdb0fc4547fdd808f81a5e0b1bc95b35.zip
Notes
Diffstat (limited to 'net/repeater')
-rw-r--r--net/repeater/Makefile46
-rw-r--r--net/repeater/distinfo3
-rw-r--r--net/repeater/files/patch-repeater.cpp10
-rw-r--r--net/repeater/files/repeater.sh30
-rw-r--r--net/repeater/pkg-descr3
5 files changed, 92 insertions, 0 deletions
diff --git a/net/repeater/Makefile b/net/repeater/Makefile
new file mode 100644
index 000000000000..10bc5cf3c89c
--- /dev/null
+++ b/net/repeater/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: repeater
+# Date created: 14 December 2005
+# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= repeater
+PORTVERSION= 0.08
+CATEGORIES= net
+MASTER_SITES= http://koti.mbnet.fi/jtko/uvncrepeater/
+DISTNAME= repeater${PORTVERSION:C/\.//}
+
+MAINTAINER= leeym@FreeBSD.org
+COMMENT= UltraVNC repeater
+
+USE_ZIP= yes
+USE_REINPLACE= yes
+USE_RC_SUBR= yes
+WRKSRC= ${WRKDIR}/Ver${PORTVERSION:C/\.//}
+ALL_TARGET= repeater
+
+PLIST_FILES= sbin/repeater etc/rc.d/repeater.sh
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/repeater ${PREFIX}/sbin/repeater
+ ${INSTALL_SCRIPT} ${FILESDIR}/repeater.sh ${PREFIX}/etc/rc.d
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= changelog.txt readme.txt ultravncrepeaterlinuxport.html
+
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's,%%LIMITS_H%%,machine/limits.h,g' ${WRKSRC}/repeater.cpp
+.else
+ @${REINPLACE_CMD} -e 's,%%LIMITS_H%%,sys/limits.h,g' ${WRKSRC}/repeater.cpp
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/repeater/distinfo b/net/repeater/distinfo
new file mode 100644
index 000000000000..c9d4d1c42a4b
--- /dev/null
+++ b/net/repeater/distinfo
@@ -0,0 +1,3 @@
+MD5 (repeater008.zip) = 5f0c6c34b44257b38e4d536f29c04d32
+SHA256 (repeater008.zip) = d29bc8177f1c75e760813903dd346094b081e9f9fc03eee069dcdb6044584104
+SIZE (repeater008.zip) = 23513
diff --git a/net/repeater/files/patch-repeater.cpp b/net/repeater/files/patch-repeater.cpp
new file mode 100644
index 000000000000..fd878b1e71af
--- /dev/null
+++ b/net/repeater/files/patch-repeater.cpp
@@ -0,0 +1,10 @@
+--- repeater.cpp.orig Wed Dec 14 14:49:03 2005
++++ repeater.cpp Wed Dec 14 14:49:16 2005
+@@ -28,6 +28,7 @@
+ // Linux port (C) 2005 Jari Korhonen, jarit1.korhonen@dnainternet.net
+ // ///////////////////////////////////////////////////////////////////////////
+
++#include <%%LIMITS_H%%>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <sys/stat.h>
diff --git a/net/repeater/files/repeater.sh b/net/repeater/files/repeater.sh
new file mode 100644
index 000000000000..a98ae836b730
--- /dev/null
+++ b/net/repeater/files/repeater.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# PROVIDE: repeater
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable repeater:
+#
+# repeater_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=repeater
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+repeater_enable=${repeater_enable:-"NO"}
+repeater_server_port=${repeater_server_port:-5500}
+repeater_viewer_port=${repeater_viewer_port:-5900}
+repeater_log=${repeater_log:-"/var/run/repeater.log"}
+command=/usr/local/sbin/repeater
+procname=repeater
+start_precmd="echo Starting ${procname}."
+start_cmd="daemon ${procname} ${repeater_viewer_port} ${repeater_server_port} > ${repeater_log} 2>&1"
+
+run_rc_command "$1"
diff --git a/net/repeater/pkg-descr b/net/repeater/pkg-descr
new file mode 100644
index 000000000000..c214491a7e80
--- /dev/null
+++ b/net/repeater/pkg-descr
@@ -0,0 +1,3 @@
+UltraVNC Repeater is an UltraVNC addon
+
+WWW: http://ultravnc.sourceforge.net/addons/repeater.html