sys-libs/nss-tls - 1.0 (guru)

Search

Install

Install this version:

emerge -a =sys-libs/nss-tls-1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-libs/nss-tls-1.0

Or alternatively:

emerge --autounmask-write -a =sys-libs/nss-tls-1.0

Package Information

Description:
A DNS over HTTPS resolver for glibc
Homepage:
https://github.com/dimkr/nss-tls
License:
LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
1.0 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit meson systemd

DESCRIPTION="A DNS over HTTPS resolver for glibc"
HOMEPAGE="https://github.com/dimkr/nss-tls"
SRC_URI="https://github.com/dimkr/nss-tls/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd"

RDEPEND="dev-libs/glib
		net-libs/libsoup"
DEPEND="${RDEPEND}
		sys-libs/glibc[nscd(+)]"
BDEPEND="
		${DEPEND}
		app-alternatives/ninja
		dev-build/meson
"

src_prepare() {
			default
			sed -e "s/@0@\/run\/nss-tls/\/var\/run\/nss-tls/" -i "${S}"/meson.build || die
}

src_configure() {
			local emesonargs=(
				--buildtype=release
			)
			meson_src_configure
}

src_compile() {
			meson_src_compile
}

src_install() {
			if use systemd ; then
						systemd_newunit "${S}"/nss-tlsd.service.in nss-tlsd.service
			else
						doinitd "${FILESDIR}"/nss-tlsd
			fi
			meson_src_install
}

pkg_postinst() {
			ewarn "Do Not put ip address of the server in nss-tls.conf"
			ewarn "use the dns name and add record of dns server in /etc/hosts"
			ewarn "echo "8.8.8.8 dns.google" >> /etc/hosts"

}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-libs/nss-tls | euse -E <flag> -p sys-libs/nss-tls | euse -D <flag> -p sys-libs/nss-tls

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-libs/glib
		net-libs/libsoup
		sys-libs/glibc[nscd(+)]

RDEPEND

dev-libs/glib
		net-libs/libsoup

BDEPEND

		dev-libs/glib
		net-libs/libsoup
		sys-libs/glibc[nscd(+)]
		app-alternatives/ninja
		dev-build/meson

Manifest for 1.0

Type File Size Source URLs
DIST nss-tls-1.0.tar.gz 28528 bytes https://github.com/dimkr/nss-tls/archive/v1.0.tar.gz