From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F0B54138331 for ; Sat, 3 Mar 2018 02:08:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 594A2E0BAB; Sat, 3 Mar 2018 02:08:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27189E0BB1 for ; Sat, 3 Mar 2018 02:08:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B604B335C3E for ; Sat, 3 Mar 2018 02:07:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CCEF25C for ; Sat, 3 Mar 2018 02:07:53 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1520042841.a0773604aa0036f374239e9dd135edd7f0980d40.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ubridge/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ubridge/Manifest net-misc/ubridge/metadata.xml net-misc/ubridge/ubridge-0.9.14.ebuild X-VCS-Directories: net-misc/ubridge/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: a0773604aa0036f374239e9dd135edd7f0980d40 X-VCS-Branch: master Date: Sat, 3 Mar 2018 02:07:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 82de54c8-0de3-4ea4-9e9d-537f66e09793 X-Archives-Hash: c8911f53a93990d9c3fa5041c8174158 commit: a0773604aa0036f374239e9dd135edd7f0980d40 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Mar 3 02:06:34 2018 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 3 02:07:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0773604 net-misc/ubridge: New package Closes: https://bugs.gentoo.org/642070 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-misc/ubridge/Manifest | 1 + net-misc/ubridge/metadata.xml | 9 +++++++ net-misc/ubridge/ubridge-0.9.14.ebuild | 43 ++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/net-misc/ubridge/Manifest b/net-misc/ubridge/Manifest new file mode 100644 index 00000000000..9af6c7d67bd --- /dev/null +++ b/net-misc/ubridge/Manifest @@ -0,0 +1 @@ +DIST ubridge-0.9.14.tar.gz 63492 BLAKE2B 4c19bb79c264c9bec2ca39fea8b386817f6eb41d23b35f9fbd0a1407b45398ad5362bd76cbb81597438367a2af8d80308f13d3e8faa4e75c6173bbeb23da177d SHA512 7e92ca6ee8dd5815991c5d157278487cfad69710f0a63fc217d5d0e61678d272bf5a0d31b6afe25b1060df1ad13e229f1d573c03fecb1453167a9ff364283a5f diff --git a/net-misc/ubridge/metadata.xml b/net-misc/ubridge/metadata.xml new file mode 100644 index 00000000000..3a39499f142 --- /dev/null +++ b/net-misc/ubridge/metadata.xml @@ -0,0 +1,9 @@ + + + + + + https://github.com/GNS3/ubridge/issues + GNS3/ubridge + + 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 00000000000..2b8f85f6a50 --- /dev/null +++ b/net-misc/ubridge/ubridge-0.9.14.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit fcaps 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" + +DEPEND="net-libs/libpcap:=" + +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup ubridge +} + +src_prepare() { + default + + sed -i -e "s/CFLAGS =/CFLAGS ?=/g" Makefile || die "Failed to fix Makefile" +} + +src_install() { + insinto /usr/bin + insopts -m 750 -g ubridge + doins 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 the appropriate user to the ubridge group." +}