From dc03ab8664daa9e7d0173374618738fa50b36abc Mon Sep 17 00:00:00 2001 From: ston Date: Mon, 19 Jun 2023 13:35:16 +0800 Subject: [PATCH] net-proxy/daed: add 0.1.0_rc1 Signed-off-by: ston --- net-proxy/daed/Manifest | 2 ++ net-proxy/daed/daed-0.1.0_rc1.ebuild | 44 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 net-proxy/daed/Manifest create mode 100644 net-proxy/daed/daed-0.1.0_rc1.ebuild diff --git a/net-proxy/daed/Manifest b/net-proxy/daed/Manifest new file mode 100644 index 00000000000..1866d1afd50 --- /dev/null +++ b/net-proxy/daed/Manifest @@ -0,0 +1,2 @@ +DIST daed-0.1.0_rc1-node_modules-pnpm.tar.xz 62547248 BLAKE2B beea467dd52526917a76581ae1e08c6132ddc4fc3eaf31d337b6c00de32cf043ec62e00826832a27f47e7d0eb233a0aa9be49c6f2edc7d7be934c9d85f7bc08e SHA512 e7f2782371dad1b45f4ef440cc917862f35f5a5e7ec3ae9f30c92eb8d4f54607692594f21eea2104d63a32930912c4d15bde4bc26855c3b8ffaeb5abec043710 +DIST daed-0.1.0_rc1.zip 182820300 BLAKE2B af1df9c0585d1a87e25a85bfd316fd62ed9c9eec587c5ef39b695f4eae757d4ea8447ca492211b4a0b35dd5e7b8294afeac25f5c5eceb5330feb9ca7f18a052c SHA512 c97aa013e23cb7baa69e08743757f90d10fd930305a08a61325b0e195839fb1fc2652a640cdbc77694417eefe585438d72da84d3be226007a49bc0100d1e87b8 diff --git a/net-proxy/daed/daed-0.1.0_rc1.ebuild b/net-proxy/daed/daed-0.1.0_rc1.ebuild new file mode 100644 index 00000000000..6c6f3faf30f --- /dev/null +++ b/net-proxy/daed/daed-0.1.0_rc1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="A Modern Dashboard For dae" +HOMEPAGE="https://github.com/daeuniverse/daed" +SRC_URI=" + https://github.com/daeuniverse/daed/releases/download/v${PV/_rc1/rc}/daed-full-src.zip -> ${P}.zip + https://github.com/st0nie/gentoo-go-deps/releases/download/${P}/${P}-node_modules-pnpm.tar.xz +" +# EGIT_REPO_URI="https://github.com/daeuniverse/daed.git" + +LICENSE="MIT AGPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="strip" + +DEPEND=" + dev-libs/v2ray-domain-list-community-bin + dev-libs/v2ray-geoip-bin +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-apps/pnpm + sys-devel/clang + app-arch/unzip +" +S="${WORKDIR}" + +src_compile(){ + sed -i '/git submodule update/d' wing/Makefile || die + GO_ROOT="${S}" emake CC=clang CFLAGS="$CFLAGS -fno-stack-protector" APPNAME="${PN}" VERSION="${PV}" +} + +src_install(){ + dobin daed + systemd_dounit install/daed.service + keepdir /etc/daed/ + dosym -r "/usr/share/v2ray/geosite.dat" /usr/share/daed/geosite.dat + dosym -r "/usr/share/v2ray/geoip.dat" /usr/share/daed/geoip.dat +}