mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
59 lines
1.2 KiB
Bash
59 lines
1.2 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
EGIT_REPO_URI="https://github.com/dimkr/nss-tls.git"
|
|
DESCRIPTION="A DNS over HTTPS resolver for glibc"
|
|
HOMEPAGE="https://github.com/dimkr/nss-tls"
|
|
|
|
inherit git-r3 meson ninja-utils
|
|
|
|
S="${WORKDIR}/${PN}-9999"
|
|
LICENSE="LGPL-2.1"
|
|
IUSE="systemd"
|
|
SLOT="0"
|
|
|
|
RDEPEND="dev-libs/glib
|
|
net-libs/libsoup"
|
|
DEPEND="${RDEPEND}
|
|
sys-libs/glibc[nscd(+)]"
|
|
BDEPEND="${DEPEND}
|
|
dev-util/meson
|
|
dev-util/ninja"
|
|
|
|
EGIT_REPO_URI="https://github.com/dimkr/nss-tls.git"
|
|
EGIT_BRANCH="master"
|
|
|
|
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"
|
|
|
|
}
|