Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/dev/tamiko:master commit in: net-misc/udptunnel/files/, net-misc/udptunnel/
Date: Mon, 12 Aug 2019 20:25:42
Message-Id: 1565641514.ffb570ab318d2b9a1116a09cdcb1dc7a87762145.tamiko@gentoo
1 commit: ffb570ab318d2b9a1116a09cdcb1dc7a87762145
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 12 20:25:14 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 12 20:25:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/dev/tamiko.git/commit/?id=ffb570ab
7
8 net-misc/udptunnel: add udptunnel
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 net-misc/udptunnel/Manifest | 1 +
14 .../files/udptunnel-1.1-strlen-prototype.patch | 16 +++++++++++++
15 net-misc/udptunnel/metadata.xml | 14 +++++++++++
16 net-misc/udptunnel/udptunnel-1.1.ebuild | 27 ++++++++++++++++++++++
17 4 files changed, 58 insertions(+)
18
19 diff --git a/net-misc/udptunnel/Manifest b/net-misc/udptunnel/Manifest
20 new file mode 100644
21 index 0000000..6fe9f42
22 --- /dev/null
23 +++ b/net-misc/udptunnel/Manifest
24 @@ -0,0 +1 @@
25 +DIST udptunnel-1.1.tar.gz 30910 SHA256 45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670 SHA512 9f9f978caede9085723c6222443b020b44d688e9364ffd57455cdfe0686d6f492e758c2ac502602cf4809ab28c3d47525e74feb00caa2b692358a272976eaa52 WHIRLPOOL 22d1b2b347aaea30390a2765a653623c600ac23490c451782cf3375cc574618b514f79bcbfcae697a4671ce4eabb70af098ee8a2f65d26fdcd27e4576c9c6537
26
27 diff --git a/net-misc/udptunnel/files/udptunnel-1.1-strlen-prototype.patch b/net-misc/udptunnel/files/udptunnel-1.1-strlen-prototype.patch
28 new file mode 100644
29 index 0000000..7a8b099
30 --- /dev/null
31 +++ b/net-misc/udptunnel/files/udptunnel-1.1-strlen-prototype.patch
32 @@ -0,0 +1,16 @@
33 +Description: Include string.h header for strlen prototype for GCC 4.4. compatibility.
34 +Author: Chris Lamb <chris@×××××××××××××.uk>
35 +
36 +Taken from https://sources.debian.org/src/udptunnel/1.1-5/debian/patches/02-strlen-prototype.diff/
37 +
38 +diff -urNad /tmp/bp-build/udptunnel-1.1.orig.orig/host2ip.c /tmp/bp-build/udptunnel-1.1.orig/host2ip.c
39 +--- udptunnel-1.1.orig.orig/host2ip.c 2008-08-28 07:50:41.000000000 +0100
40 ++++ udptunnel-1.1.orig/host2ip.c 2008-08-28 07:50:49.000000000 +0100
41 +@@ -6,6 +6,7 @@
42 + #include <arpa/inet.h> /* inet_addr() */
43 + #include <rpcsvc/ypclnt.h> /* YP */
44 + #include <ctype.h> /* isspace() */
45 ++#include <string.h> /* strlen() */
46 +
47 + #include "host2ip.h"
48 +
49
50 diff --git a/net-misc/udptunnel/metadata.xml b/net-misc/udptunnel/metadata.xml
51 new file mode 100644
52 index 0000000..11831c8
53 --- /dev/null
54 +++ b/net-misc/udptunnel/metadata.xml
55 @@ -0,0 +1,14 @@
56 +<?xml version='1.0' encoding='UTF-8'?>
57 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
58 +<pkgmetadata>
59 + <maintainer type="person">
60 + <email>tamiko@g.o</email>
61 + <name>Matthias Maier</name>
62 + </maintainer>
63 + <longdescription lang="en">
64 + UDPTunnel is a small program which can tunnel UDP packets
65 + bi-directionally over a TCP connection. Its primary purpose (and
66 + original motivation) is to allow multi-media conferences to traverse a
67 + firewall which allows only outgoing TCP connections.
68 + </longdescription>
69 +</pkgmetadata>
70
71 diff --git a/net-misc/udptunnel/udptunnel-1.1.ebuild b/net-misc/udptunnel/udptunnel-1.1.ebuild
72 new file mode 100644
73 index 0000000..c9343c8
74 --- /dev/null
75 +++ b/net-misc/udptunnel/udptunnel-1.1.ebuild
76 @@ -0,0 +1,27 @@
77 +# Copyright 2019 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=7
81 +
82 +inherit autotools
83 +
84 +DESCRIPTION="Tunnel UDP packets bi-directionally over a TCP connection"
85 +HOMEPAGE="http://www1.cs.columbia.edu/~lennox/udptunnel/"
86 +SRC_URI="http://www1.cs.columbia.edu/~lennox/udptunnel/${P}.tar.gz"
87 +
88 +LICENSE="BSD"
89 +SLOT="0"
90 +KEYWORDS="~amd64 ~x86"
91 +IUSE=""
92 +
93 +DEPEND="sys-devel/automake"
94 +RDEPEND=""
95 +
96 +PATCHES=(
97 + "${FILESDIR}"/${P}-strlen-prototype.patch
98 +)
99 +
100 +src_prepare() {
101 + default
102 + eautoreconf
103 +}