net-proxy/cgproxy - 0.20 (gentoo-zh)

Search

Install

Install this version:

emerge -a =net-proxy/cgproxy-0.20

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-proxy/cgproxy-0.20

Or alternatively:

emerge --autounmask-write -a =net-proxy/cgproxy-0.20

Package Information

Description:
Transparent Proxy with cgroup v2
Homepage:
https://github.com/springzfx/cgproxy
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.20 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Transparent Proxy with cgroup v2"
HOMEPAGE="https://github.com/springzfx/cgproxy"
SRC_URI="https://github.com/springzfx/cgproxy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	net-firewall/iptables
	dev-util/bcc
"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-cpp/nlohmann_json
	dev-libs/libbpf
	dev-util/bpftool
	llvm-core/clang
"

src_prepare() {
	# fix build error (clang-15)
	sed -i 's!clang -O2!clang -O2 -fno-stack-protector!' execsnoop-libbpf/CMakeLists.txt || die
	cmake_src_prepare
}

src_install() {
	cmake_src_install
	rm -r "${D}"/usr/share/man/man1 || die
	doman man/*.1
}

Inherited Eclasses

Dependencies

DEPEND

	net-firewall/iptables
	dev-util/bcc

RDEPEND

	net-firewall/iptables
	dev-util/bcc

BDEPEND

	dev-cpp/nlohmann_json
	dev-libs/libbpf
	dev-util/bpftool
	llvm-core/clang

Manifest for 0.20

Type File Size Source URLs
DIST cgproxy-0.20.tar.gz 477327 bytes https://github.com/springzfx/cgproxy/archive/refs/tags/v0.20.tar.gz