Add AdGuard-Home ebuild

This commit is contained in:
none 2023-11-04 16:30:12 +01:00
parent 90d8ac9208
commit 875a5cc55b
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,37 @@
EAPI=8
DESCRIPTION="Network-wide ads & trackers blocking DNS server"
HOMEPAGE="https://adguard.com/en/adguard-home/overview.html"
inherit go-module
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/AdguardTeam/AdGuardHome.git"
fi
LICENSE="GPL-3"
SLOT="0"
BDEPEND="dev-lang/go"
PATCHES=(
"${FILESDIR}/${PN}-no-archives.patch"
)
src_prepare() {
default
}
src_configure() {
:
}
src_compile() {
emake bin/"$PN"
# CHANNEL=development SIGN=0 VERBOSE=1 ARCH=amd64 OS=linux ./scripts/make/build-release.sh
}
src_install() {
dobin bin/"$PN"
}

Binary file not shown.

View File

@ -0,0 +1,29 @@
diff --git a/scripts/make/build-release.sh b/scripts/make/build-release.sh
index 3e556f97..dd334251 100644
--- a/scripts/make/build-release.sh
+++ b/scripts/make/build-release.sh
@@ -202,24 +202,6 @@ build() {
# Prepare the build directory for archiving.
cp ./CHANGELOG.md ./LICENSE.txt ./README.md "$build_dir"
-
- # Make archives. Windows and macOS prefer ZIP archives; the rest,
- # gzipped tarballs.
- case "$build_os"
- in
- ('darwin'|'windows')
- build_archive="./${dist}/${build_ar}.zip"
- # TODO(a.garipov): Find an option similar to the -C option of tar for
- # zip.
- ( cd "${dist}/${1}" && zip -9 -q -r "../../${build_archive}" "./AdGuardHome" )
- ;;
- (*)
- build_archive="./${dist}/${build_ar}.tar.gz"
- tar -C "./${dist}/${1}" -c -f - "./AdGuardHome" | gzip -9 - > "$build_archive"
- ;;
- esac
-
- log "$build_archive"
}
log "starting builds"