diff --git a/net-proxy/dae/Manifest b/net-proxy/dae/Manifest new file mode 100644 index 0000000..e69ff90 --- /dev/null +++ b/net-proxy/dae/Manifest @@ -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 diff --git a/net-proxy/dae/dae-0.1.10_p1.ebuild b/net-proxy/dae/dae-0.1.10_p1.ebuild new file mode 100644 index 0000000..f29f0c1 --- /dev/null +++ b/net-proxy/dae/dae-0.1.10_p1.ebuild @@ -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 +} diff --git a/net-proxy/dae/dae-0.2.0_rc2.ebuild b/net-proxy/dae/dae-0.2.0_rc2.ebuild new file mode 100644 index 0000000..1f18fe5 --- /dev/null +++ b/net-proxy/dae/dae-0.2.0_rc2.ebuild @@ -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 +} diff --git a/net-proxy/dae/metadata.xml b/net-proxy/dae/metadata.xml new file mode 100644 index 0000000..9c00961 --- /dev/null +++ b/net-proxy/dae/metadata.xml @@ -0,0 +1,14 @@ + + + + + me@puqns67.icu + Puqns67 + + + https://dae.v2raya.org/docs/current/changelogs + https://dae.v2raya.org/docs/current/intro + https://github.com/daeuniverse/dae/issues + daeuniverse/dae + +