Skip to content

Commit

Permalink
uvncrepeater:
Browse files Browse the repository at this point in the history
update CHANGELOG
help: official text
remove useless Makefile.in
fix .language
remove CMDLINE, all 3 possible options are used
defaults: remove whitespaces
create also group for user
remove startup spam message
makefile: fix whitespoaces
makefile: remove duplicates
PKG_DIR is not needed since freetz-ng
  • Loading branch information
fda77 committed Feb 6, 2025
1 parent a2234b6 commit 3fe4053
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 41 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Latest changes
* tmux 3.5a
* Tor 0.4.8.14
* Tree 1.8.0/2.2.1
* UltraVNC Repeater 014
* uMurmur 0.2.20/0.3.0
* Unbound 1.22.0
* VLMCSD svn1113
Expand Down
24 changes: 11 additions & 13 deletions make/pkgs/uvncrepeater/Config.in
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
config FREETZ_PACKAGE_UVNCREPEATER
bool "UVNC IPv4 repeater 014 (binary only)"
bool "UltraVNC Repeater 014 - DEPRECATED"
default n
help
A IPv4 only linux port of the UltraVNC
Repeater. The Repeater acts like a
proxy, sitting in the middle between
the UltraVNC Server and Viewer. All
data for the session is passed through
the UltraVNC Repeater meaning that the
UltraVNC Viewer and UltraVNC Server can
both be behind a NAT firewall, without
having to worry about forwarding ports
or anything else (providing the Repeater
is visible to both UltraVNC Viewer and
UltraVNC Server).
UltraVNC Repeater has two unique functions:
Mode 1:
Allows for connection to multiple servers (in listen mode), using only
one port. All connection data flows through the repeater, allowing
connection to multiple servers through a single port forward or tunnel.
Mode 2:
Allows both a Viewer and Server to connect together using the repeater
as a PROXY. All connection data flows through the repeater, allowing
both the server and viewer to be behind firewalls or routers.

3 changes: 0 additions & 3 deletions make/pkgs/uvncrepeater/Makefile.in

This file was deleted.

1 change: 1 addition & 0 deletions make/pkgs/uvncrepeater/external.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ config EXTERNAL_FREETZ_PACKAGE_UVNCREPEATER
help
externals the following file(s):
/usr/bin/uvncrepeater

3 changes: 1 addition & 2 deletions make/pkgs/uvncrepeater/files/.language
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ default
{ en }
files
{
etc/default.vlmcsd/uvncrepeater*.def
etc/init.d/rc.uvncrepeater
etc/default.uvncrepeater/uvncrepeater*.def
usr/lib/cgi-bin/uvncrepeater.cgi
}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export UVNCREPEATER_ENABLED="no"
export UVNCREPEATER_CMDLINE="-d"
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ maxsessions = 10
;it changes to this user after ports have been bound in startup
;You need to create a suitable (normal, non-privileged) user/group and change name here
runasuser = uvncrep
;DO NOT CHANGE THE USER!

;Allowed modes for repeater
;0=None, 1=Only Mode 1, 2=Only Mode 2, 3=Both modes
Expand All @@ -34,7 +35,7 @@ runasuser = uvncrep
;1 = 0 + Important messages + Connections opened / closed
;2 = 1 + Ini values + exceptions in logic flow
;3 = 2 + Everything else (very detailed and exhaustive logging == BIG log files)
;logginglevel = 3
;logginglevel = 3


[mode1]
Expand All @@ -44,7 +45,7 @@ runasuser = uvncrep
;0=Allow connections to all server addressess,
;1=Require that server address (or range of addresses) is listed in
;srvListAllow[0]...srvListAllow[SERVERS_LIST_SIZE-1]
;requirelistedserver = 0
;requirelistedserver = 0

;List of allowed server addresses / ranges
;Ranges can be defined by setting corresponding number to 0, e.g. 10.0.0.0 allows all addresses 10.x.x.x
Expand All @@ -67,14 +68,14 @@ runasuser = uvncrep

[mode2]
;0=Allow all IDs, 1=Allow only IDs listed in idList[0]...idList[ID_LIST_SIZE-1]
;requirelistedid = 0
;requirelistedid = 0

;List of allowed ID: numbers
;Value 0 means "this authenticates negatively"
;If value is not listed, default is 0
;Values should be between [1...LONG_MAX-1]
;There can be max ID_LIST_SIZE (default 100) idList lines
;idlist0 = 1111
;idlist0 = 1111
;idlist1 = 2222
;idlist2 = 0
;idlist3 = 0
Expand All @@ -100,4 +101,3 @@ runasuser = uvncrep
;Somebody wanted this for making a PHP event listener
;usehttp = true


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CAPTION='UVNCREPEATER: uvncrepeater.ini'
CAPTION='UltraVNC Repeater: uvncrepeater.ini'

CONFIG_FILE='/tmp/flash/uvncrepeater/uvncrepeater.ini'
CONFIG_SAVE='modsave flash; if pidof uvncrepeater > /dev/null; then /mod/etc/init.d/rc.uvncrepeater restart; fi'
Expand Down
8 changes: 5 additions & 3 deletions make/pkgs/uvncrepeater/files/root/etc/init.d/rc.uvncrepeater
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

DAEMON=uvncrepeater
DAEMON_USER=uvncrep
DAEMON_LONG_NAME="UVNC-Repeater"
DAEMON_LONG_NAME="UltraVNC Repeater"
DAEMON_CFGFILE="/tmp/flash/$DAEMON/$DAEMON.ini"
. /etc/init.d/modlibrc


start() {
modlib_startdaemon $DAEMON_BIN -i $DAEMON_CFGFILE -p $PID_FILE $UVNCREPEATER_CMDLINE &
modlib_startdaemon $DAEMON_BIN -i $DAEMON_CFGFILE -p $PID_FILE -d
}

case $1 in
""|load)
modlib_defaults $DAEMON_CFGFILE
modlib_adduser $DAEMON_USER
modlib_add_user_and_group $DAEMON_USER

modreg cgi $DAEMON "$DAEMON_LONG_NAME"
modreg daemon $DAEMON
modreg file $DAEMON uvncrepeater_ini 'uvncrepeater.ini' 0 "uvncrepeater_ini"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ sec_begin "$(lang de:"Starttyp" en:"Start type")"
cgi_print_radiogroup_service_starttype "enabled" "$UVNCREPEATER_ENABLED" "" "" 0
sec_end

sec_begin "$(lang de:"Konfiguration" en:"Configuration")"
cgi_print_textline_p "renew" "$UVNCREPEATER_CMDLINE" 55/250 "$(lang de:"Optionale Parameter" en:"Optional parameters"): "
sec_end

3 changes: 2 additions & 1 deletion make/pkgs/uvncrepeater/patches/101-freetz_compat.patch
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
//Startup event
@@ -1995,10 +2035,37 @@

fprintf(stderr, "UltraVnc Linux Repeater version %s\n", REPEATER_VERSION);
- fprintf(stderr, "UltraVnc Linux Repeater version %s\n", REPEATER_VERSION);
+// fprintf(stderr, "UltraVnc Linux Repeater version %s\n", REPEATER_VERSION);

- //Read parameters from ini file
- strlcpy(tmpBuf, (argc >= 2) ? argv[1] : defaultIniFilePathAndName, MAX_PATH);
Expand Down
13 changes: 5 additions & 8 deletions make/pkgs/uvncrepeater/uvncrepeater.mk
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
$(call PKG_INIT_BIN, 014)
$(PKG)_SOURCE:=repeater$($(PKG)_VERSION).zip
$(PKG)_SITE:=https://web.archive.org/web/20151001044013/http://koti.mbnet.fi/jtko/uvncrepeater
$(PKG)_DIR=$(SOURCE_DIR)/Ver014
$(PKG)_BINARY:=$($(PKG)_DIR)/repeater
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/uvncrepeater
$(PKG)_HASH:=f22f2c5a283c7ff636a649b4b2e0de7409537eaa

$(PKG)_SITE:=https://web.archive.org/web/20151001044013/http://koti.mbnet.fi/jtko/uvncrepeater
### WEBSITE:=https://uvnc.com/products/ultravnc-repeater.html
### MANPAGE:=https://uvnc.com/docs/ultravnc-repeater.html
### CHANGES:=https://web.archive.org/web/20151001044013/http://koti.mbnet.fi/jtko/uvncrepeater/
### SUPPORT:=manfred-mueller

$(PKG)_BINARY:=$($(PKG)_DIR)/repeater
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/uvncrepeater


$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_NOP)

$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(UVNCREPEATER_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)"

CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)"

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)
Expand Down

0 comments on commit 3fe4053

Please sign in to comment.