Add AdGuard-Home ebuild
This commit is contained in:
parent
90d8ac9208
commit
875a5cc55b
37
net-misc/adguard-home/adguard-home-9999.ebuild
Normal file
37
net-misc/adguard-home/adguard-home-9999.ebuild
Normal 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"
|
||||
}
|
||||
BIN
net-misc/adguard-home/files/adguard-gome-9999.tar.xz
Normal file
BIN
net-misc/adguard-home/files/adguard-gome-9999.tar.xz
Normal file
Binary file not shown.
29
net-misc/adguard-home/files/adguard-home-no-archives.patch
Normal file
29
net-misc/adguard-home/files/adguard-home-no-archives.patch
Normal 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"
|
||||
Loading…
Reference in New Issue
Block a user