diff --git a/net-misc/adguard-home/adguard-home-9999.ebuild b/net-misc/adguard-home/adguard-home-9999.ebuild new file mode 100644 index 0000000..4cf5f22 --- /dev/null +++ b/net-misc/adguard-home/adguard-home-9999.ebuild @@ -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" +} diff --git a/net-misc/adguard-home/files/adguard-gome-9999.tar.xz b/net-misc/adguard-home/files/adguard-gome-9999.tar.xz new file mode 100644 index 0000000..0b266b0 Binary files /dev/null and b/net-misc/adguard-home/files/adguard-gome-9999.tar.xz differ diff --git a/net-misc/adguard-home/files/adguard-home-no-archives.patch b/net-misc/adguard-home/files/adguard-home-no-archives.patch new file mode 100644 index 0000000..1c5b516 --- /dev/null +++ b/net-misc/adguard-home/files/adguard-home-no-archives.patch @@ -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"