summaryrefslogtreecommitdiff
path: root/net-misc/udpxy
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
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/udpxy')
-rw-r--r--net-misc/udpxy/Manifest8
-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
-rw-r--r--net-misc/udpxy/metadata.xml8
-rw-r--r--net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild33
6 files changed, 102 insertions, 0 deletions
diff --git a/net-misc/udpxy/Manifest b/net-misc/udpxy/Manifest
new file mode 100644
index 000000000000..ff5d91e2b6a3
--- /dev/null
+++ b/net-misc/udpxy/Manifest
@@ -0,0 +1,8 @@
+AUX udpxy.confd 1196 SHA256 0fcb0dfdf984f04465cf51da8705cb98248521a67f93a677bf7a1619c85a23c1 SHA512 e9b96fd4402f951918633578a2fc78b7730366bc3db64dd45127fe06a9fd945c92a4dbb9dcdc70defa53bf28dd5e8bd7c3e1c8516bb1707972f547ee02de438e WHIRLPOOL 6c2a17ca6424bde0564c0aa69c902989fffa19d6758a226b624dd9d5f95721f042473f3d870d1052debd9eec202505c81375b9a18bce7379a1372a7b794283bb
+AUX udpxy.initd 357 SHA256 ea11d4c466fa84a3fde0dd0d3fb119c66bd30898d6caae9b47ca2c90dd41792e SHA512 0fbd4235e585d3d23e238e30060a3968ad17090a3232ca6ef316115ec98b8ae1528f8da757bc3e1dde1ce529ba159463f4814b0f13ef3c3f88b74164e389f379 WHIRLPOOL e5fb3a277499968162112ac141467ee83d5ed0afaacf94767938fa18cec15c9748d7186f6979876290d3801e8f2dbda7fd3c48d1f5049b14de14b4d829b12fa3
+AUX udpxy.service 182 SHA256 22dc199736c9116ea78a8098aba3b3bc2ee04d135885023ac806fa9e0a0c7f58 SHA512 b9d32158657ec27362e9dea4704757a91543eff4b15aa0d256c934ae119545053ee21f32c87e0da85fc30c53bd807de19a26593cd63472edd5819601fd2b0ac9 WHIRLPOOL d66580548f143cff72abecbe08a3fc6fa673c347afdae39b778a38c6085395ff824552c2badb096fdf6864ec8a74a1d59cba65e2c7552b0151988dfe58d800a4
+DIST udpxy.1.0.23-7-prod.tar.gz 77591 SHA256 da13dab43b9b0e10a4f3e606d8b33ad5d0096901d9b59d1196177751cab5e5e0 SHA512 5bd37822f1d861b3828339175b7daebbf3ccb3969e808a319d3d3f054afbf7769d5f2705d25780a76819b3b7963af3a81af7d71556ba61274141142167907a23 WHIRLPOOL 03638c0fd0402e568ecd7c88d1339d486bc274c6310887d47b8df31e21f2d634511ac8e6c05de2f279a50c423c1a1d09ce848d6ade92389d9dbc86766b72ea5e
+EBUILD udpxy-1.0.23.7-r2.ebuild 779 SHA256 690f52cb70f4e2d3ce8013afe5c8a2c41380baa385b5100a3a40bff4bff7a75e SHA512 bc37b4d0184fb943217bda25be7a32906c9ccc007148a3d0f844d3696d0e2d766a392f1c1b4832e397487cc710cbe32da5a8f1701ccb531607efab186151affb WHIRLPOOL 129aaedfc3ca464c0f918dc6be03905f57eeb0ff2edfa39eb7084a21dbdf88e09d1cc0868c41ed3e8a12520f2cc7c32543e4cc3f825db5fab52ebda17d21cf6d
+MISC ChangeLog 3703 SHA256 20014fc00dede988aa0e349302063afd987ab3336224c93ea10f259112dfbab6 SHA512 d9879dc4fc9d5a8dbc019a1d61440560cf2bd17b10174d33bb45667708820182bac8ef22323f861ad334d79afffea3fa12c3da3483efbf0881091409f542fb85 WHIRLPOOL 1664ae304b71dfa3bf782cc0b500b51ae8349cba69a2c748a4ace07411efca911fc7f1a4a142f86208f2004cf226fd3e8471d930ac2b030eddf3cfb47a73be66
+MISC ChangeLog-2015 1184 SHA256 83b860add499f74d794e96565d0a9988b880ecf4c7af94248c125cb5fb6c2945 SHA512 abd6bc5a70d61b21ccba92692814fbed8561b52b867878385a2698cac75a9cdf9152eb5ad8a398487af2eae2b13c749b721edc6fe98b5ef4d2d8ca6d1cf3af13 WHIRLPOOL 256823d8fc264e9425a3379a7b9b8e24c64f4b3d2435b02826f3d40f78876e48a75bd8013778e12d32103fbc273c3ae42f90e5cd83fdb18af07cba0a621b4bba
+MISC metadata.xml 247 SHA256 348b3a6a82e9ea0c4634d49d11a54703099b198e06e97caa887d9a2156504955 SHA512 56a7183705aa925bc656b1dcf564cad1074bf122c8c00b6436fba46e321110c3f6fd8f1a3f75fff04323f2ea334d24f772699d2061366dabc7d7cb8ef6f625f9 WHIRLPOOL c42efa1c18cdf20db59f6dc723b7d2237f05678d1e9a0b642c0064aa5614448eefd8c18b2877180bc40bea47178ecdc7a79abb7511fbaeb28bd115282fc77254
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
diff --git a/net-misc/udpxy/metadata.xml b/net-misc/udpxy/metadata.xml
new file mode 100644
index 000000000000..baa619002d23
--- /dev/null
+++ b/net-misc/udpxy/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">udpxy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild b/net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild
new file mode 100644
index 000000000000..8d67b7f4467f
--- /dev/null
+++ b/net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils systemd toolchain-funcs versionator
+
+MY_PV=$(replace_version_separator 3 -)
+DESCRIPTION="Small daemon to relay multicast UDP traffic to client's TCP (HTTP) connection"
+HOMEPAGE="https://sourceforge.net/projects/udpxy/"
+SRC_URI="http://www.udpxy.com/download/1_23/${PN}.${MY_PV}-prod.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ eapply_user
+ tc-export CC
+}
+
+src_install() {
+ dobin udpxy
+ dosym udpxy /usr/bin/udpxrec
+
+ doman doc/en/*.1
+ dodoc CHANGES README
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}