net-dns/openresolv: Bump to version 3.9.2

Non-maintainer commit!

Closes: https://bugs.gentoo.org/690242
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2019-12-02 11:13:16 +01:00
parent 57a230f6a0
commit b2e2f09462
2 changed files with 43 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST openresolv-3.9.0.tar.xz 18844 BLAKE2B 0aa2125d79305aab04a8d052d56328493d51aa6ff5b44fdfe08e96ccc78ae1d84f2115e5d59940e7e1cedf7e4fe7dc36a461839bcef8fc2c5b2e21242e441f36 SHA512 4498db60f0b5a762194dd3651b94cc8b01a349a8cfb891e10d040cd6b8e22fa0e9897909517831591787ad22ffad97c78d3281e32296aa1ee67de5dff9bf765e
DIST openresolv-3.9.2.tar.xz 20200 BLAKE2B 25cb56fd85114c3866207a3bf83d1295eb135f1746f141d8cb8f0fb18cdd96e184ad3fbb47d1f65ce4193b57da61e918ca4306a502eaba650ca438589be9a29b SHA512 2f88ccbb53c6e830eeb7dd53666ee72b9fa30f38324766e1d1734896bc9b7f531e42e234c882b921c79604a3bde2877db2681bab9dd8c590f02779da908d0649

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A framework for managing DNS information"
HOMEPAGE="https://roy.marples.name/projects/openresolv"
SRC_URI="https://roy.marples.name/downloads/${PN}/${P}.tar.xz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="selinux"
DEPEND="!net-dns/resolvconf-gentoo
!<net-dns/dnsmasq-2.40-r1"
RDEPEND="selinux? ( sec-policy/selinux-resolvconf )"
src_configure() {
local myeconfargs=(
--prefix="${EPREFIX}"
--rundir="${EPREFIX}"/var/run
--libexecdir="${EPREFIX}"/lib/resolvconf
)
econf "${myeconfargs[@]}"
}
pkg_config() {
if [[ ${ROOT} != / ]]; then
eerror "We cannot configure unless \$ROOT=/"
return 1
fi
if [[ -n "$(resolvconf -l)" ]]; then
einfo "${PN} already has DNS information"
else
ebegin "Copying /etc/resolv.conf to resolvconf -a dummy"
resolvconf -a dummy </etc/resolv.conf
eend $? || return $?
einfo "The dummy interface will disappear when you next reboot"
fi
}