sys-libs/nss-tls: version bump 1.1

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
Andrea Postiglione
2020-11-16 14:57:46 +01:00
parent a016dbbbfa
commit c34f21481c
2 changed files with 56 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST 1.1.tar.gz 30370 BLAKE2B a948eaf021677182082a7f1b09cac7c74abb61dd39fda781d57615cbaf37e9a6db4a54adbccaddd73b3ee4c810e4dbe0bc2630ac25d8d4ee70e001668deb3baf SHA512 85e640ff9566f2b07248b1e11eb6eb7e5e7dd2fda5d479f097dbe8fc58c92df705b887e1e418497690340bd838ae99d8d7a713329fb70456a4a7d31a5127b416
DIST v1.0.tar.gz 28528 BLAKE2B 0755cd98e80185be6bbcde142c5555114637c1bf056f2ef78a31c5318a93efc767e16067249db045e126d217aabc44658b2a4fa7158370737ce4fafd48d6b555 SHA512 882fb8594cdf0ce03be518e23a5dd693eb344504dafcaf017bc8a6e67708b2d4bfbdd38fa46c41822d17149f62f5cc4632b318e8298aba270d945951078cd6c0

View File

@@ -0,0 +1,55 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A DNS over HTTPS resolver for glibc"
HOMEPAGE="https://github.com/dimkr/nss-tls"
SRC_URI="https://github.com/dimkr/nss-tls/archive/${PV}.tar.gz"
inherit meson ninja-utils
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
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"
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
}
post_install() {
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"
}