diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2020-07-25 21:01:46 +0200 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2020-07-25 18:13:22 -0400 |
commit | 682561f81083a25d69029ae62f43f612e4dcb5b1 (patch) | |
tree | 4a8032e283fad894bf84e28ea5619aece33e61cf /net-misc/ubridge | |
parent | acct-group/ubridge: new group for net-misc/ubridge (diff) | |
download | gentoo-682561f81083a25d69029ae62f43f612e4dcb5b1.tar.gz gentoo-682561f81083a25d69029ae62f43f612e4dcb5b1.tar.bz2 gentoo-682561f81083a25d69029ae62f43f612e4dcb5b1.zip |
net-misc/ubridge: add 0.9.18
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'net-misc/ubridge')
-rw-r--r-- | net-misc/ubridge/Manifest | 1 | ||||
-rw-r--r-- | net-misc/ubridge/ubridge-0.9.18.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/net-misc/ubridge/Manifest b/net-misc/ubridge/Manifest index 0cdb14492f91..4c9a34db559a 100644 --- a/net-misc/ubridge/Manifest +++ b/net-misc/ubridge/Manifest @@ -1,2 +1,3 @@ DIST ubridge-0.9.14.tar.gz 63492 BLAKE2B 4c19bb79c264c9bec2ca39fea8b386817f6eb41d23b35f9fbd0a1407b45398ad5362bd76cbb81597438367a2af8d80308f13d3e8faa4e75c6173bbeb23da177d SHA512 7e92ca6ee8dd5815991c5d157278487cfad69710f0a63fc217d5d0e61678d272bf5a0d31b6afe25b1060df1ad13e229f1d573c03fecb1453167a9ff364283a5f DIST ubridge-0.9.16.tar.gz 64106 BLAKE2B ea5292bb7895034f18fde2c78e6ec22a043d3f712af0f699240073778bf72ade4ba9fc9be56d5ff13ce4119c6d90265daf86e84405597483c07c900e80b4e579 SHA512 409b5705e178d0edda17f5a321bc28a4a03d417c59893228e022a88025a51e4d4f9a18e548ec71f1b36df24b204cfdf73bc2efb8fe9e39893d29c16b3695380c +DIST ubridge-0.9.18.tar.gz 64340 BLAKE2B 7ac540ccf180adc8bf0bb0d440d6a0335626181ba680f7f94cea43d6b6b70745cd64f8ee8048aa1621b7407fea83cf03039147ffe38236e70970c014771ab09b SHA512 f2c9e9d0242f61363a3f4ce6f1acf4013245ff0854a7f64c96d6b8737bd3cc505a38aaf43a0928e2a5a88bcd39f786e00fab68748ad56770d18d713005750c60 diff --git a/net-misc/ubridge/ubridge-0.9.18.ebuild b/net-misc/ubridge/ubridge-0.9.18.ebuild new file mode 100644 index 000000000000..adfeeba6492c --- /dev/null +++ b/net-misc/ubridge/ubridge-0.9.18.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fcaps toolchain-funcs + +DESCRIPTION="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces" +HOMEPAGE="https://github.com/GNS3/ubridge" +SRC_URI="https://github.com/GNS3/ubridge/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3+" + +RDEPEND=" + acct-group/ubridge + dev-libs/iniparser:4= + net-libs/libpcap" + +DEPEND="${RDEPEND}" + +# Bugs: https://bugs.gentoo.org/647588 +# https://github.com/GNS3/ubridge/issues/60 +PATCHES=( "${FILESDIR}/${PN}-0.9.16_add_slotted_iniparser-4.1+_support.patch" ) + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + SYSTEM_INIPARSER=1 +} + +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 + + einfo "\nNOTE: To read packets from the network interfaces with ubridge as" + einfo "normal user you have to add trusted users to the \"ubridge\" group.\n" +} |