1
0

net-proxy/dae: new package

This commit is contained in:
Puqns67 2023-06-16 15:52:46 +08:00
parent 8b41b5d7ed
commit 974f8cbdb3
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
4 changed files with 114 additions and 0 deletions

2
net-proxy/dae/Manifest Normal file
View File

@ -0,0 +1,2 @@
DIST dae-0.1.10_p1.zip 29843289 BLAKE2B fa4ac908001d59a7306b3e95113812a4508932aa074134d15eca421969752246600dc20e8c2b3a33c9bfe25dc18b4485deeb65f64dcc3b7ecd386a903638a6b1 SHA512 1a371d1d5622016123fb3db1746a3dd8a02c22ba8b1069d9a4eb386653f1879da6d3f226b88264f473003ef32099d9d82408129147ca220f05e1d2e3ac50471a
DIST dae-0.2.0_rc2.zip 69112357 BLAKE2B db9f95de576ee692182d6909c65e5dd0dc47361ff90405d2b59d7e2bfe366af6f9f796a73ef7bb783b83269b2d26c050e84277a3679867647b9d0cb4cf46fb88 SHA512 9b08c1d1eb5c5f486eeb792593e8963c3c2e778206c97d8570797469266eb9763dd0e7f1657071e1a6e549957a35586f74ac47cb3d8908024ca903157b6462a9

View File

@ -0,0 +1,49 @@
# 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

@ -0,0 +1,49 @@
# 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

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>me@puqns67.icu</email>
<name>Puqns67</name>
</maintainer>
<upstream>
<changelog>https://dae.v2raya.org/docs/current/changelogs</changelog>
<doc>https://dae.v2raya.org/docs/current/intro</doc>
<bugs-to>https://github.com/daeuniverse/dae/issues</bugs-to>
<remote-id type="github">daeuniverse/dae</remote-id>
</upstream>
</pkgmetadata>