net-dns/nextdns - 1.39.4 (x0rzavi)

Search

Package Information

Description:
NextDNS CLI client (DoH Proxy)
Homepage:
https://nextdns.io
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.39.4 8 ~amd64 0
View Raw Ebuild
# Copyright 2023 Avishek Sen
# Distributed under the terms of the GNU General Public License v3

EAPI=8

inherit go-module systemd

DESCRIPTION="NextDNS CLI client (DoH Proxy)"
HOMEPAGE="https://nextdns.io"

LICENSE="MIT"
SLOT="0"
IUSE="+pie"

KEYWORDS="~amd64"
RESTRICT="mirror"

RDEPEND=""
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
		 https://github.com/x0rzavi/x0rzavi-overlay/raw/main/${CATEGORY}/${PN}/files/${P}-deps.tar.xz"

src_compile () {
	export CGO_CFLAGS="${CFLAGS}"
	export CGO_CPPFLAGS="${CXXFLAGS}"
	export CGO_CXXFLAGS="${CXXFLAGS}"
	export CGO_LDFLAGS="${LDFLAGS}"

	if use pie ; then
		ego build \
		--buildmode=pie \
		-trimpath \
		-mod=readonly \
		-modcacherw \
		-ldflags "-s -w -linkmode external -X main.version=${PV}" \
		-o "${PN}" .
	else
		ego build \
		-trimpath \
		-mod=readonly \
		-modcacherw \
		-ldflags "-s -w -linkmode external -X main.version=${PV}" \
		-o "${PN}" .
	fi
}

src_install() {
	einstalldocs
	dobin "${PN}"
}

USE Flags

pie
Default: Enabled (+)

Dependencies

BDEPEND

virtual/pkgconfig

Manifest for 1.39.4

Type File Size Source URLs
DIST nextdns-1.39.4-deps.tar.xz 4631080 bytes https://github.com/x0rzavi/x0rzavi-overlay/raw/main/${CATEGORY}/nextdns/files/nextdns-1.39.4-deps.tar.xz
DIST nextdns-1.39.4.tar.gz 198958 bytes https://github.com/nextdns/nextdns/archive/v1.39.4.tar.gz