commit: 24167e6bd752fc1b82570bff423782d0f7168800 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> AuthorDate: Sun Oct 6 07:59:30 2024 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Thu Oct 10 20:26:22 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24167e6b
net-misc/ubridge: add 0.9.19, EAPI8 bump Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> net-misc/ubridge/Manifest | 1 + net-misc/ubridge/ubridge-0.9.19.ebuild | 47 ++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/net-misc/ubridge/Manifest b/net-misc/ubridge/Manifest index 4d01d8d2c2e1..5cf3d291486a 100644 --- a/net-misc/ubridge/Manifest +++ b/net-misc/ubridge/Manifest @@ -1 +1,2 @@ DIST ubridge-0.9.18.tar.gz 64340 BLAKE2B 7ac540ccf180adc8bf0bb0d440d6a0335626181ba680f7f94cea43d6b6b70745cd64f8ee8048aa1621b7407fea83cf03039147ffe38236e70970c014771ab09b SHA512 f2c9e9d0242f61363a3f4ce6f1acf4013245ff0854a7f64c96d6b8737bd3cc505a38aaf43a0928e2a5a88bcd39f786e00fab68748ad56770d18d713005750c60 +DIST ubridge-0.9.19.tar.gz 66911 BLAKE2B c9de0485b84fa7cb78edb6651f0022c6e3f3d6e62aa2e1c56927c62d540ae1efaee25225bc7eb843ad688b7bd0aa39eb8a2ff1015a5c01f2d23d5a798b21ff14 SHA512 b693a64569ba17fcb40f8a7894fcc205efba17fc3103150bb6f1d7a8a165505c88251e75f56d003f4c4337e97bffa57b5948156e42d01a2938b8d969a088ff32 diff --git a/net-misc/ubridge/ubridge-0.9.19.ebuild b/net-misc/ubridge/ubridge-0.9.19.ebuild new file mode 100644 index 000000000000..5c359bef8f37 --- /dev/null +++ b/net-misc/ubridge/ubridge-0.9.19.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +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.md +} + +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" +}
