net-proxy/daed: bump to 0.4.2

Signed-off-by: ston <ston.jia@outlook.com>
This commit is contained in:
ston authored and 梁永祥 committed 2024-04-23 23:10:03 +08:00
1 parent 8b9b363eec
commit ffbd3c6051
4 files changed
+5 -96

No files matched your search

+2 -4
View File
@@ -1,4 +1,2 @@
DIST daed-0.3.3_p1-node_modules-pnpm.tar.xz 74631224 BLAKE2B d90217a5a6b8eff6fc350fb20b3cfda862bd47ed291d3a5a38c5ba6eb838f756c424f3b3a1d33e14109d948ab9d2c1dfa8914c0ce63d2efd0f8c36143c7e4ec4 SHA512 33419cace1dc5459ebd3a38ef48f8f3f33dbc4526048b84b2402ea02c3ad07b55719bded4726377755efa629709fd36cc2e0b9e65676289c26bf1b570f519225
DIST daed-0.3.3_p1.zip 141753005 BLAKE2B 519766401ecad39f9625e5774942fc932c99631bfc3939ca6adb4238eb3d7b54ac94931100f667e8816413a7e357361ae930fd0e473a80cb4c68f81a00ba7ecb SHA512 a962ef56801ca282b15ecb44b99e9ec3dd2a58ccc7b92f0d9392235e0f5b50b785bebce742706e731fb6d9b3981e56a015dd7723ea5288a0947006db8836ad8a
DIST daed-0.4.0_rc1-node_modules-pnpm.tar.xz 76498356 BLAKE2B 99bee587f10e25226427ee084c7b41317f876f142cec69ecd11e362dfbe5897695bba4fccff43b1b3b643e37f7d46a1226fad0aa5119aca46d873459e60566b5 SHA512 9b855138503aabea7e16cc9955f8daa2ed953e63a6a90b10f2773b4292b3dae7f562d279d24c90de022b8d394069eec2b47d08f7dd4abaa10f7de889966e975a
DIST daed-0.4.0_rc1.zip 141777526 BLAKE2B a24694383a4a125a8c88e5dc5e4136bb873164c9950e18ba64fed6bc4227b376ceed48316fb80ca65fdd47c7c48b4e99ac258c1a78721e75e371a83fdbd3917c SHA512 dd38b5b3404f26cd4a58489b3172666eef5f2582c831203e1b30b9d8e5fbee98215aa2dcb2abc2da02f1c51c1a9c8d0ab4ec04fa7b3b1b734362e54fd9b316c6
DIST daed-0.4.1-node_modules-pnpm.tar.xz 76723904 BLAKE2B 23a518f8ee1a94d9f95f050644dbfc94cf741ca803dcabe9adce8baf99f4f2087ca156c88444de75c52e31c74243d4e102226ffc024918027c2cc593453a98e3 SHA512 aeb0d32f985f0af08d48a4085a43d3b94a21f4b4a4c2d17663fa08b67014e592349c9b509a8649475b3c6d7df1b4b19ab2ed5bd60098ea3cd41c8158897f74de
DIST daed-0.4.1.zip 144610383 BLAKE2B d23fabd77e7998dbbe97ca766504c5799d30e0b82adbbb7f5caeb5f0fccf5f3ba9ca204f88b6fb2498028c2d04387eb2915fdd46088bf86d1fa99a4da4c85348 SHA512 b137a82e2469e5c68c4a1c6d19c6fd1f55d56d49103296c69ac89b3154e0bd57045e649ba90aac724a406c5b21370fcb52edc045bf9bcd59fedd59250251596d
-88
View File
@@ -1,88 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic systemd
DESCRIPTION="A Modern Dashboard For dae"
HOMEPAGE="https://github.com/daeuniverse/daed"
SRC_URI="
https://github.com/daeuniverse/daed/releases/download/v${PV/_p1/.p1}/daed-full-src.zip -> ${P}.zip
webui? ( 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="
app-alternatives/v2ray-geoip
app-alternatives/v2ray-geosite
"
RDEPEND="${DEPEND}"
BDEPEND="
webui? ( sys-apps/pnpm )
sys-devel/clang
app-arch/unzip
dev-lang/go
"
S="${WORKDIR}"
IUSE="+webui"
src_prepare() {
# Prevent conflicting with the user's flags
# https://devmanual.gentoo.org/ebuild-writing/common-mistakes/#-werror-compiler-flag-not-removed
sed -i -e 's/-Werror//' wing/dae-core/Makefile || die 'Failed to remove -Werror via sed'
default
}
src_compile(){
# sed -i '/git submodule update/d' wing/Makefile || die
# sed -i 's/git rev-parse --short HEAD/echo/' vite.config.ts || die
if ! use webui; then
cd wing || die
fi
# for dae's ebpf target
# gentoo-zh#3720
filter-flags "-march=*" "-mtune=*"
append-cflags "-fno-stack-protector"
GO_ROOT="${S}" emake APPNAME="${PN}" VERSION="${PV}"
}
src_install(){
local service=install/daed.service
if use webui; then
dobin daed
systemd_dounit $service
else
dobin wing/dae-wing
sed -i "s!/usr/bin/daed!/usr/bin/dae-wing!" $service || die
systemd_newunit $service dae-wing.service
fi
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
# thanks to @MarksonHon
newinitd "${FILESDIR}"/${PN}.initd daed
}
pkg_postinst() {
elog
elog "For OpenRC user, if you want to use"
elog "openrc to manager daed service,"
elog "please refer to dae document to modify"
elog "rc.conf and sysfs first, then reboot."
elog "https://github.com/daeuniverse/dae/blob/main/docs/en/tutorials/run-on-alpine.md"
elog "Now you can start and add it to default runlevel "
elog "# rc-service daed start"
elog "# rc-update add daed default"
elog
}
@@ -8,7 +8,7 @@ inherit flag-o-matic 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/rc1}/daed-full-src.zip -> ${P}.zip
https://github.com/daeuniverse/daed/releases/download/v${PV/_rc/rc}/daed-full-src.zip -> ${P}.zip
webui? ( 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"
@@ -16,7 +16,6 @@ SRC_URI="
LICENSE="MIT AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"
DEPEND="
app-alternatives/v2ray-geoip
@@ -29,9 +28,9 @@ BDEPEND="
app-arch/unzip
dev-lang/go
"
S="${WORKDIR}"
IUSE="+webui"
RESTRICT="strip"
src_prepare() {
# Prevent conflicting with the user's flags
+1 -1
View File
@@ -11,7 +11,6 @@ EGIT_REPO_URI="https://github.com/daeuniverse/daed.git"
LICENSE="MIT AGPL-3"
SLOT="0"
RESTRICT="strip"
DEPEND="
app-alternatives/v2ray-geoip
@@ -24,6 +23,7 @@ BDEPEND="
"
IUSE="+webui"
RESTRICT="strip"
src_unpack(){
git-r3_src_unpack