summaryrefslogtreecommitdiff
path: root/net-misc/ubridge
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-03-23 04:19:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-03-23 04:19:44 +0000
commitc5283d322accc6097afec74eab24550829788bab (patch)
treeb99ce668128d82a026eaa31461643f9173f9b77b /net-misc/ubridge
parent5510d9d7d1c93c2ea71a2bd6f0666168808d5dd6 (diff)
gentoo resync : 23.03.2018
Diffstat (limited to 'net-misc/ubridge')
-rw-r--r--net-misc/ubridge/Manifest4
-rw-r--r--net-misc/ubridge/files/ubridge-0.9.14-respect-flags.patch20
-rw-r--r--net-misc/ubridge/metadata.xml17
-rw-r--r--net-misc/ubridge/ubridge-0.9.14.ebuild51
4 files changed, 92 insertions, 0 deletions
diff --git a/net-misc/ubridge/Manifest b/net-misc/ubridge/Manifest
new file mode 100644
index 000000000000..83b46f502223
--- /dev/null
+++ b/net-misc/ubridge/Manifest
@@ -0,0 +1,4 @@
+AUX ubridge-0.9.14-respect-flags.patch 395 BLAKE2B 746f481789bca31b87759eb879521288e27b4cf16d3e2d83ea593d76bf03f614ecad6a0f2c0b001d47c08ca57ab898b2c4c9d475d34bd0b54ce7da4bdf507746 SHA512 4a86af19f8462ff3d81d509e6d264240cb3769f3175e0b1c0142cee30d7b61354c86ffec57d31f0bfbca46c0dad078efa6d3c61d19e29ca9ab6dec43f401eccc
+DIST ubridge-0.9.14.tar.gz 63492 BLAKE2B 4c19bb79c264c9bec2ca39fea8b386817f6eb41d23b35f9fbd0a1407b45398ad5362bd76cbb81597438367a2af8d80308f13d3e8faa4e75c6173bbeb23da177d SHA512 7e92ca6ee8dd5815991c5d157278487cfad69710f0a63fc217d5d0e61678d272bf5a0d31b6afe25b1060df1ad13e229f1d573c03fecb1453167a9ff364283a5f
+EBUILD ubridge-0.9.14.ebuild 1001 BLAKE2B 3af76665e4510eade129a154e5a26ef4bd0157274c12bade0c8c67c1ccf66304c370c3db27540cd85c74a7bd7e60ec9583158557cd5c4d16e4fb087b8f77bc1d SHA512 15c4857aa4f987487877e99a7cb385883c55b0a55353cc130de1df1db305bf8480ddea2a9c06541d5e00b295394de5d95c2235849253b01cad9345c377c0ea78
+MISC metadata.xml 620 BLAKE2B 0b56364ec1f6e18cc56a58c0ed36480114d4ff8b3ef90963d1b964f5dbdeb1fa905336e8fdf0014476927b9b530e9f0be9bf70810d02b8437253813d886e7005 SHA512 ab05ab88363c0d3fbb703af5e98180ac925331b81a50061a53526dbcbfe28ca0aae1dfc2b74e0689a494068251f834e54917e9557eb4e00cf52e69a48b998f19
diff --git a/net-misc/ubridge/files/ubridge-0.9.14-respect-flags.patch b/net-misc/ubridge/files/ubridge-0.9.14-respect-flags.patch
new file mode 100644
index 000000000000..ab64aa7d6bed
--- /dev/null
+++ b/net-misc/ubridge/files/ubridge-0.9.14-respect-flags.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2018-03-16 09:15:10.528245830 +0500
++++ b/Makefile 2018-03-21 08:52:45.984204240 +0500
+@@ -40,7 +40,7 @@
+
+ CC ?= gcc
+
+-CFLAGS = -O3 -Wall
++CFLAGS += -Wall
+
+ BINDIR = /usr/local/bin
+
+@@ -76,7 +76,7 @@
+ ##############################
+
+ $(NAME) : $(OBJ)
+- $(CC) -o $(NAME) $(OBJ) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(NAME) $(OBJ) $(LIBS)
+
+ .PHONY: clean
+
diff --git a/net-misc/ubridge/metadata.xml b/net-misc/ubridge/metadata.xml
new file mode 100644
index 000000000000..fe85611a44da
--- /dev/null
+++ b/net-misc/ubridge/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>g.djavadyan@gmail.com</email>
+ <name>Garri Djavadyan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ uBridge is a simple application to create user-land bridges between
+ various technologies. Currently bridging between UDP tunnels, Ethernet
+ and TAP interfaces is supported. Packet capture is also supported.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-misc/ubridge/ubridge-0.9.14.ebuild b/net-misc/ubridge/ubridge-0.9.14.ebuild
new file mode 100644
index 000000000000..48fb218aebb8
--- /dev/null
+++ b/net-misc/ubridge/ubridge-0.9.14.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit fcaps toolchain-funcs user
+
+DESCRIPTION="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces"
+HOMEPAGE="https://github.com/GNS3/ubridge"
+SRC_URI="https://github.com/GNS3/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ net-libs/libpcap
+ dev-libs/iniparser:=
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+PATCHES=( "${FILESDIR}"/${P}-respect-flags.patch )
+
+pkg_setup() {
+ enewgroup ubridge
+}
+
+src_configure() {
+ export SYSTEM_INIPARSER=1
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ exeinto /usr/bin
+ exeopts -m 710 -g ubridge
+ doexe ubridge
+ dodoc README.rst
+}
+
+pkg_postinst() {
+ fcaps -g ubridge -m 4710 -M 0710 cap_net_raw,cap_net_admin \
+ "${EROOT}"/usr/bin/ubridge
+
+ ewarn "NOTE: To read packets from the network interfaces with ubridge as"
+ ewarn "normal user you have to add trusted users to the ubridge group."
+}