summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2017-04-22 19:11:33 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2017-04-22 19:12:04 +0300
commitfce61a6974306f2e5d83b75709cac4cac6f3e575 (patch)
treee41a04c2c178f4d397635dbe460a09a6001ae0d8 /net-dns
parentsci-biology/velvet: v4 expose additional variables as described in manual (diff)
downloadgentoo-fce61a6974306f2e5d83b75709cac4cac6f3e575.tar.gz
gentoo-fce61a6974306f2e5d83b75709cac4cac6f3e575.tar.bz2
gentoo-fce61a6974306f2e5d83b75709cac4cac6f3e575.zip
net-dns/openresolv: version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/openresolv/Manifest1
-rw-r--r--net-dns/openresolv/openresolv-3.9.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest
index 0572b837ba37..5df526898195 100644
--- a/net-dns/openresolv/Manifest
+++ b/net-dns/openresolv/Manifest
@@ -1 +1,2 @@
DIST openresolv-3.8.1.tar.xz 18396 SHA256 d259d78fd92ac288f1b27959daee11be9a40d70e91af5432046164c260de1d43 SHA512 390bf30bb85b071839104e5c7e276b402f6f485edc038e38da389730d82e614bb11b0dde44a55aa2ca5e790b374671a9c89cc07b053633401a608150eebbf2c8 WHIRLPOOL 34f1c545053c444d950c3a3f9c0775e377c70a2b45af561cec94f96cd171237e2e2de1cd5a45c39c4e996f87aa206b986740557aaf0104f9af9f3c66f1d1a0c1
+DIST openresolv-3.9.0.tar.xz 18844 SHA256 51a04d39232bb797c9efeaad51a525cf50a1deefcb19a1ea5dd3475118634db8 SHA512 4498db60f0b5a762194dd3651b94cc8b01a349a8cfb891e10d040cd6b8e22fa0e9897909517831591787ad22ffad97c78d3281e32296aa1ee67de5dff9bf765e WHIRLPOOL 2f912211c787517baee2e3b5f5b8036fe3a2c78d62f2366c22e256f2e236fd8a748a3816b8f2c09ba3846377a21c1ddca65a9dc96af37104682e7cbcf6aa52ff
diff --git a/net-dns/openresolv/openresolv-3.9.0.ebuild b/net-dns/openresolv/openresolv-3.9.0.ebuild
new file mode 100644
index 000000000000..9d55675b8ac4
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.9.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A framework for managing DNS information"
+HOMEPAGE="http://roy.marples.name/projects/openresolv"
+SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.xz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="selinux"
+
+DEPEND="!net-dns/resolvconf-gentoo
+ !<net-dns/dnsmasq-2.40-r1"
+RDEPEND="selinux? ( sec-policy/selinux-resolvconf )"
+
+src_configure() {
+ econf \
+ --prefix="${EPREFIX}" \
+ --rundir="${EPREFIX}"/var/run \
+ --libexecdir="${EPREFIX}"/lib/resolvconf
+}
+
+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
+}