summaryrefslogtreecommitdiff
path: root/net-misc/udpxy/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/udpxy/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/udpxy/files')
-rw-r--r--net-misc/udpxy/files/udpxy.confd24
-rw-r--r--net-misc/udpxy/files/udpxy.initd20
-rw-r--r--net-misc/udpxy/files/udpxy.service9
3 files changed, 53 insertions, 0 deletions
diff --git a/net-misc/udpxy/files/udpxy.confd b/net-misc/udpxy/files/udpxy.confd
new file mode 100644
index 000000000000..e8e12ddf2f0d
--- /dev/null
+++ b/net-misc/udpxy/files/udpxy.confd
@@ -0,0 +1,24 @@
+
+#udpxy 1.0_Chipmunk (build 8) standard
+#usage: udpxy [-vTS] [-a listenaddr] -p port [-m mcast_ifc_addr] [-c clients] [-l logfile] [-B sizeK] [-n nice_incr]
+# -v : enable verbose output [default = disabled]
+# -S : enable client statistics [default = disabled]
+# -T : do NOT run as a daemon [default = daemon if root]
+# -a : (IPv4) address/interface to listen on [default = 0.0.0.0]
+# -p : port to listen on
+# -m : (IPv4) address/interface of (multicast) source [default = 0.0.0.0]
+# -c : max clients to serve [default = 3, max = 16]
+# -l : log output to file [default = stderr]
+# -B : cache size (65536, 32Kb, 1Mb) for inbound (multicast) data [default = 65536 bytes]
+# -R : maximum messages to cache in buffer (-1 = all) [default = -1]
+# -H : maximum time (sec) to hold data in buffer (-1 = unlimited) [default = 4]
+# -n : nice value increment [default = 0]
+# -M : periodically renew multicast subscription (skip if 0 sec) [default = 0 sec]
+#Examples:
+# udpxy -p 4022
+# listen for HTTP requests on port 4022, all network interfaces
+# udpxy -a lan0 -p 4022 -m lan1
+# listen for HTTP requests on interface lan0, port 4022;
+# subscribe to multicast groups on interface lan1
+
+UDPXYOPTS="-p 4022"
diff --git a/net-misc/udpxy/files/udpxy.initd b/net-misc/udpxy/files/udpxy.initd
new file mode 100644
index 000000000000..57d61cc93983
--- /dev/null
+++ b/net-misc/udpxy/files/udpxy.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting udpxy"
+ start-stop-daemon --start --exec /usr/bin/udpxy -- ${UDPXYOPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping udpxy"
+ start-stop-daemon --stop --exec /usr/bin/udpxy
+ eend $?
+}
+
diff --git a/net-misc/udpxy/files/udpxy.service b/net-misc/udpxy/files/udpxy.service
new file mode 100644
index 000000000000..35ee208ed5dc
--- /dev/null
+++ b/net-misc/udpxy/files/udpxy.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=UDP-to-HTTP multicast traffic relay daemon
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/bin/udpxy -T -p 4022
+
+[Install]
+WantedBy=multi-user.target