1
0

net-proxy/dae: add 0.2.1_rc1, drop 0.1.10_p1, 0.2.0_rc2

This commit is contained in:
Puqns67 2023-07-12 13:14:45 +08:00
parent a0ed3dbd04
commit 7a569306da
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
3 changed files with 6 additions and 54 deletions

View File

@ -1,2 +1 @@
DIST dae-0.1.10_p1.zip 29843289 BLAKE2B fa4ac908001d59a7306b3e95113812a4508932aa074134d15eca421969752246600dc20e8c2b3a33c9bfe25dc18b4485deeb65f64dcc3b7ecd386a903638a6b1 SHA512 1a371d1d5622016123fb3db1746a3dd8a02c22ba8b1069d9a4eb386653f1879da6d3f226b88264f473003ef32099d9d82408129147ca220f05e1d2e3ac50471a DIST dae-0.2.1_rc1.zip 72785195 BLAKE2B b403d171a44cb63792be0ba39aeff83256120cb0214f3ce6ccf034cdea78cd5c1ca42b125dee608b1c2b44df020b3d8edea8baf81a76cb58f192844b57502695 SHA512 4d9344f6798270198d5fdb929c7bf8827a55d79cc852f18f7c2ce05f850752d3803caf84c0ced1b5cc770ae2c2d8f2ba5ace51d105774c2d12a0e38bb66f70a4
DIST dae-0.2.0_rc2.zip 69112357 BLAKE2B db9f95de576ee692182d6909c65e5dd0dc47361ff90405d2b59d7e2bfe366af6f9f796a73ef7bb783b83269b2d26c050e84277a3679867647b9d0cb4cf46fb88 SHA512 9b08c1d1eb5c5f486eeb792593e8963c3c2e778206c97d8570797469266eb9763dd0e7f1657071e1a6e549957a35586f74ac47cb3d8908024ca903157b6462a9

View File

@ -1,49 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-info go-module systemd
DESCRIPTION="A lightweight and high-performance transparent proxy solution based on eBPF"
HOMEPAGE="https://dae.v2raya.org/"
SRC_URI="https://github.com/daeuniverse/dae/releases/download/v${PV//_/.}/dae-full-src.zip -> ${P}.zip"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}
dev-libs/v2ray-domain-list-community-bin
dev-libs/v2ray-geoip-bin"
BDEPEND="sys-devel/clang"
S="${WORKDIR}"
pkg_pretend() {
if kernel_is lt 5 8 0; then
ewarn "Your kernel version is lower than 5.8.0, some features will not work correctly."
ewarn "Please read this article for more information:"
ewarn "https://github.com/daeuniverse/dae/blob/main/docs/getting-started/README.md#kernel-version"
fi
CONFIG_CHECK="~DEBUG_INFO_BTF ~NET_CLS_ACT ~NET_SCH_INGRESS ~NET_INGRESS ~NET_EGRESS"
check_extra_config
}
src_compile() {
emake VERSION="${PV}" GOFLAGS="-buildvcs=false" CC=clang CFLAGS="$CFLAGS -fno-stack-protector"
}
src_install() {
dobin dae
systemd_dounit install/dae.service
insinto /etc/dae
newins example.dae config.dae.example
newins install/empty.dae config.dae
dosym -r "/usr/share/v2ray/geosite.dat" /usr/share/dae/geosite.dat
dosym -r "/usr/share/v2ray/geoip.dat" /usr/share/dae/geoip.dat
}

View File

@ -17,8 +17,8 @@ RESTRICT="mirror"
DEPEND="" DEPEND=""
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
dev-libs/v2ray-domain-list-community-bin app-alternatives/v2ray-geoip
dev-libs/v2ray-geoip-bin" app-alternatives/v2ray-geosite"
BDEPEND="sys-devel/clang" BDEPEND="sys-devel/clang"
S="${WORKDIR}" S="${WORKDIR}"
@ -30,7 +30,9 @@ pkg_pretend() {
ewarn "https://github.com/daeuniverse/dae/blob/main/docs/getting-started/README.md#kernel-version" ewarn "https://github.com/daeuniverse/dae/blob/main/docs/getting-started/README.md#kernel-version"
fi fi
CONFIG_CHECK="~DEBUG_INFO_BTF ~NET_CLS_ACT ~NET_SCH_INGRESS ~NET_INGRESS ~NET_EGRESS" CONFIG_CHECK="~BPF ~BPF_SYSCALL ~BPF_JIT ~CGROUPS ~KPROBES ~NET_INGRESS
~NET_EGRESS ~NET_SCH_INGRESS ~NET_CLS_BPF ~NET_CLS_ACT ~BPF_STREAM_PARSER
~DEBUG_INFO ~DEBUG_INFO_BTF ~KPROBE_EVENTS ~BPF_EVENTS"
check_extra_config check_extra_config
} }