diff options
Diffstat (limited to 'net-misc/passt')
-rw-r--r-- | net-misc/passt/Manifest | 5 | ||||
-rw-r--r-- | net-misc/passt/files/Makefile-2024.03.20.patch | 13 | ||||
-rw-r--r-- | net-misc/passt/metadata.xml | 27 | ||||
-rw-r--r-- | net-misc/passt/passt-2024.06.07.ebuild | 40 | ||||
-rw-r--r-- | net-misc/passt/passt-9999.ebuild | 40 |
5 files changed, 125 insertions, 0 deletions
diff --git a/net-misc/passt/Manifest b/net-misc/passt/Manifest new file mode 100644 index 0000000..8e74289 --- /dev/null +++ b/net-misc/passt/Manifest @@ -0,0 +1,5 @@ +AUX Makefile-2024.03.20.patch 433 BLAKE2B 5e64a2a449806698bc812e38bfe46860e13a3bf64e1e6c7c96e3d43d8b30f1e6d6eedad8a89b500dced6ba81e8a8c0e7dfd74d889fed8dc1d7d7755d38e60156 SHA512 cbf5f29c96364438064ae65cc56501b1a5793530dedfeadf5184fa1a7df8c1b45786f39686e058178c2b7e58f0ae2aaa507fe986f01c4a6a6984276cd00c062e +DIST passt-2024.06.07.tar.xz 195992 BLAKE2B 9f4b680daa8103c7de0c92c01824df74e1b221a48cf7724c2c09aae13a3575bdc529eeca01d5015095c51194045e1019bbdf38cc7ef2333d61eaa03b4e0249ae SHA512 04add1113ffbc98d61b7c63352899505d8f19bbdf937a0c025726813163ec7fc31abdb94c12ceefed9b49f18b388acc0687298bce8ba156bbb044d1b1bcdaee3 +EBUILD passt-2024.06.07.ebuild 842 BLAKE2B 94b37052fbc670b3f3d9a6aead0dee723bf7e2a44219ff1efd0dfa54caca078f935aa2c3371f8d13bac0add09e16d0fe97840ef07e9eeba735c3e75407bdb742 SHA512 7c62b8cea6099b8d743beecf6a0d70f6b5acd3f46a5d0d80eb3a58a74b233dd5e0446dcb704966fca3f701c852e54482ca7aae2ba15a5f174c2df7a38127ad5c +EBUILD passt-9999.ebuild 842 BLAKE2B 94b37052fbc670b3f3d9a6aead0dee723bf7e2a44219ff1efd0dfa54caca078f935aa2c3371f8d13bac0add09e16d0fe97840ef07e9eeba735c3e75407bdb742 SHA512 7c62b8cea6099b8d743beecf6a0d70f6b5acd3f46a5d0d80eb3a58a74b233dd5e0446dcb704966fca3f701c852e54482ca7aae2ba15a5f174c2df7a38127ad5c +MISC metadata.xml 1410 BLAKE2B 415cf4ab3e0d993066251ff9e136ea4a5ef13fc50b838b5dd057784600b5fb89fecb411cc0d61d08459e34da7fe34097d22b8908240f3e46e6ff50f503aa7089 SHA512 85d756f5b8077fb0838e1881f9ef48f08ca8da1ca540d8677632c81d34765d6fb1483b3fdd0eead64467aa7872b1ca133745610736d0afc5a2b8223abacc1cb6 diff --git a/net-misc/passt/files/Makefile-2024.03.20.patch b/net-misc/passt/files/Makefile-2024.03.20.patch new file mode 100644 index 0000000..30f36d1 --- /dev/null +++ b/net-misc/passt/files/Makefile-2024.03.20.patch @@ -0,0 +1,13 @@ +Addressing following bugs: +https://bugs.gentoo.org/924494 +--- a/Makefile ++++ b/Makefile +@@ -35,7 +35,7 @@ + + FLAGS := -Wall -Wextra -Wno-format-zero-length + FLAGS += -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE +-FLAGS += -D_FORTIFY_SOURCE=2 -O2 -pie -fPIE ++FLAGS += -O2 -pie -fPIE + FLAGS += -DPAGE_SIZE=$(shell getconf PAGE_SIZE) + FLAGS += -DNETNS_RUN_DIR=\"/run/netns\" + FLAGS += -DPASST_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH) diff --git a/net-misc/passt/metadata.xml b/net-misc/passt/metadata.xml new file mode 100644 index 0000000..35350e9 --- /dev/null +++ b/net-misc/passt/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>me@rahil.rocks</email> + <name>Rahil Bhimjiani</name> + </maintainer> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + passt implements a translation layer between a Layer-2 network interface and native Layer-4 sockets (TCP, UDP, ICMP/ICMPv6 echo) on a host. It doesn't require any capabilities or privileges, and it can be used as a simple replacement for Slirp. + + pasta (same binary as passt, different command) offers equivalent functionality, for network namespaces: traffic is forwarded using a tap interface inside the namespace, without the need to create further interfaces on the host, hence not requiring any capabilities or privileges. + + qrap is a wrapper, designed specifically for usage with qemu(1) and passt(1), connecting a UNIX domain socket to a file descriptor, and running qemu(1) with given arguments. + </longdescription> + <upstream> + <bugs-to>https://passt.top/passt/bugs</bugs-to> + <doc>https://passt.top/passt/about/</doc> + </upstream> +</pkgmetadata> diff --git a/net-misc/passt/passt-2024.06.07.ebuild b/net-misc/passt/passt-2024.06.07.ebuild new file mode 100644 index 0000000..9e4992f --- /dev/null +++ b/net-misc/passt/passt-2024.06.07.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="User-mode networking daemons for VMs and namespaces, replacement for Slirp" +HOMEPAGE="https://passt.top/" + +RELEASE_COMMIT="7288448" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://passt.top/passt" +else + SRC_URI="https://passt.top/passt/snapshot/passt-${RELEASE_COMMIT}.tar.xz -> ${P}.tar.xz" + S="${WORKDIR}/${PN}-${RELEASE_COMMIT}" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="static" + +PATCHES=( + "${FILESDIR}"/Makefile-2024.03.20.patch +) + +src_prepare() { + default + tc-export CC +} + +src_compile() { + [[ ${PV} != 9999* ]] && export VERSION="${PV}" + export prefix="${EPREFIX}/usr" docdir="${EPREFIX}/usr/share/doc/${P}" + + emake $(usev static) +} diff --git a/net-misc/passt/passt-9999.ebuild b/net-misc/passt/passt-9999.ebuild new file mode 100644 index 0000000..9e4992f --- /dev/null +++ b/net-misc/passt/passt-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="User-mode networking daemons for VMs and namespaces, replacement for Slirp" +HOMEPAGE="https://passt.top/" + +RELEASE_COMMIT="7288448" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://passt.top/passt" +else + SRC_URI="https://passt.top/passt/snapshot/passt-${RELEASE_COMMIT}.tar.xz -> ${P}.tar.xz" + S="${WORKDIR}/${PN}-${RELEASE_COMMIT}" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="static" + +PATCHES=( + "${FILESDIR}"/Makefile-2024.03.20.patch +) + +src_prepare() { + default + tc-export CC +} + +src_compile() { + [[ ${PV} != 9999* ]] && export VERSION="${PV}" + export prefix="${EPREFIX}/usr" docdir="${EPREFIX}/usr/share/doc/${P}" + + emake $(usev static) +} |