Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ubridge/
Date: Sat, 03 Mar 2018 02:08:04
Message-Id: 1520042841.a0773604aa0036f374239e9dd135edd7f0980d40.whissi@gentoo
1 commit: a0773604aa0036f374239e9dd135edd7f0980d40
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 3 02:06:34 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 3 02:07:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0773604
7
8 net-misc/ubridge: New package
9
10 Closes: https://bugs.gentoo.org/642070
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 net-misc/ubridge/Manifest | 1 +
14 net-misc/ubridge/metadata.xml | 9 +++++++
15 net-misc/ubridge/ubridge-0.9.14.ebuild | 43 ++++++++++++++++++++++++++++++++++
16 3 files changed, 53 insertions(+)
17
18 diff --git a/net-misc/ubridge/Manifest b/net-misc/ubridge/Manifest
19 new file mode 100644
20 index 00000000000..9af6c7d67bd
21 --- /dev/null
22 +++ b/net-misc/ubridge/Manifest
23 @@ -0,0 +1 @@
24 +DIST ubridge-0.9.14.tar.gz 63492 BLAKE2B 4c19bb79c264c9bec2ca39fea8b386817f6eb41d23b35f9fbd0a1407b45398ad5362bd76cbb81597438367a2af8d80308f13d3e8faa4e75c6173bbeb23da177d SHA512 7e92ca6ee8dd5815991c5d157278487cfad69710f0a63fc217d5d0e61678d272bf5a0d31b6afe25b1060df1ad13e229f1d573c03fecb1453167a9ff364283a5f
25
26 diff --git a/net-misc/ubridge/metadata.xml b/net-misc/ubridge/metadata.xml
27 new file mode 100644
28 index 00000000000..3a39499f142
29 --- /dev/null
30 +++ b/net-misc/ubridge/metadata.xml
31 @@ -0,0 +1,9 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <!-- maintainer-needed -->
36 + <upstream>
37 + <bugs-to>https://github.com/GNS3/ubridge/issues</bugs-to>
38 + <remote-id type="github">GNS3/ubridge</remote-id>
39 + </upstream>
40 +</pkgmetadata>
41
42 diff --git a/net-misc/ubridge/ubridge-0.9.14.ebuild b/net-misc/ubridge/ubridge-0.9.14.ebuild
43 new file mode 100644
44 index 00000000000..2b8f85f6a50
45 --- /dev/null
46 +++ b/net-misc/ubridge/ubridge-0.9.14.ebuild
47 @@ -0,0 +1,43 @@
48 +# Copyright 1999-2018 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI="6"
52 +
53 +inherit fcaps user
54 +
55 +DESCRIPTION="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces."
56 +HOMEPAGE="https://github.com/GNS3/ubridge"
57 +SRC_URI="https://github.com/GNS3/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
58 +
59 +LICENSE="GPL-3"
60 +SLOT="0"
61 +KEYWORDS="~amd64"
62 +
63 +DEPEND="net-libs/libpcap:="
64 +
65 +RDEPEND="${DEPEND}"
66 +
67 +pkg_setup() {
68 + enewgroup ubridge
69 +}
70 +
71 +src_prepare() {
72 + default
73 +
74 + sed -i -e "s/CFLAGS =/CFLAGS ?=/g" Makefile || die "Failed to fix Makefile"
75 +}
76 +
77 +src_install() {
78 + insinto /usr/bin
79 + insopts -m 750 -g ubridge
80 + doins ubridge
81 + dodoc README.rst
82 +}
83 +
84 +pkg_postinst() {
85 + fcaps -g ubridge -m 4710 -M 0710 cap_net_raw,cap_net_admin \
86 + "${EROOT%/}"/usr/bin/ubridge
87 +
88 + ewarn "NOTE: To read packets from the network interfaces with ubridge as"
89 + ewarn "normal user you have to add the appropriate user to the ubridge group."
90 +}