Skip to content

Commit

Permalink
daed: new, 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CAB233 committed Nov 13, 2024
1 parent 76e1b51 commit 3aa084c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app-network/daed/autobuild/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
abinfo "Building daed ..."
make VERSION="$PKGVER"

abinfo "Installing daed ..."
install -Dvm755 "$SRCDIR"/daed -t "$PKGDIR"/usr/bin
install -Dvm644 "$SRCDIR"/install/daed.service \
-t "$PKGDIR"/usr/lib/systemd/system
install -Dvm644 "$SRCDIR"/install/daed.desktop \
-t "$PKGDIR"/usr/share/applications
install -Dvm644 "$SRCDIR"/install/icons/512x512.png \
"$PKGDIR"/usr/share/icons/hicolor/512x512/apps/daed.png
install -dv "$PKGDIR"/etc/daed

abinfo "Linking to geofile directory ..."
install -dv "$PKGDIR"/usr/share/daed
ln -sv /usr/share/v2ray-rules-dat/{geoip.dat,geosite.dat} \
"$PKGDIR"/usr/share/daed
13 changes: 13 additions & 0 deletions app-network/daed/autobuild/defines
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PKGNAME="daed"
PKGSEC=net
PKGDES="Transparent proxy solution based on eBPF, bundled with dashboard"
PKGDEP="gcc-runtime v2ray-rules-dat"
PKGCONFL="dae"
BUILDDEP="go llvm nodejs"

# FIXME: Autobuild does not yet support splitting debug symbols from Go executables.
ABSPLITDBG=0
# Go module "github.com/sirupsen/logrus" does not support loongson3 and loongarch64
# and build error on ppc64el and riscv64.
# See: https://github.com/daeuniverse/dae/issues/696
FAIL_ARCH="!(amd64|arm64)"
6 changes: 6 additions & 0 deletions app-network/daed/autobuild/prepare
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
abinfo "Setting GOFLAGS ..."
export GOFLAGS="-trimpath -mod=readonly -modcacherw -buildmode=pie -ldflags=-linkmode=external"

abinfo "Setting other environment variables ..."
export CFLAGS="-fno-stack-protector"
export CGO_ENABLED=1
4 changes: 4 additions & 0 deletions app-network/daed/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VER=0.8.0
SRCS="git::commit=v$VER;copy-repo=true::https://github.com/daeuniverse/daed.git"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=375373"

0 comments on commit 3aa084c

Please sign in to comment.