summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-09-13 16:38:10 -0400
committerMike Gilbert <floppym@gentoo.org>2016-09-13 16:40:27 -0400
commitceb98bf08c76f8adb390face91c200e987b699e0 (patch)
treed5c6b5828458e408db3977ebcef1ff186e718ab2 /net-dns/openresolv
parentmedia-libs/openglide: New package for emulating Glide (diff)
downloadgentoo-ceb98bf08c76f8adb390face91c200e987b699e0.tar.gz
gentoo-ceb98bf08c76f8adb390face91c200e987b699e0.tar.bz2
gentoo-ceb98bf08c76f8adb390face91c200e987b699e0.zip
net-dns/openresolv: bump to 3.8.1
Package-Manager: portage-2.3.0_p24
Diffstat (limited to 'net-dns/openresolv')
-rw-r--r--net-dns/openresolv/Manifest1
-rw-r--r--net-dns/openresolv/files/3.8.1-restore-newline.patch16
-rw-r--r--net-dns/openresolv/openresolv-3.8.1.ebuild45
3 files changed, 62 insertions, 0 deletions
diff --git a/net-dns/openresolv/Manifest b/net-dns/openresolv/Manifest
index 154de8903e5e..5c69abcf5ac9 100644
--- a/net-dns/openresolv/Manifest
+++ b/net-dns/openresolv/Manifest
@@ -2,3 +2,4 @@ DIST openresolv-3.6.1.tar.bz2 16803 SHA256 38a6908c07b8474cf489095026808d1c5ea5c
DIST openresolv-3.6.2.tar.bz2 17430 SHA256 b0fd1ca59d2ee407db5e9b35d1ef8b670bc808fcc9db7aa31b0784cdd01825d0 SHA512 c3f987c7a45d4c06a2474b8f37a24eb4f9f86b8742486b4e533199003e188209231429aee7c670649fa0f5c0bc45b3a2cd02aab2d0177032cd6bd6bc52162399 WHIRLPOOL 2cfe53c2d62d9f4396f23299d52ed247f910ac32e7c1a52a61856826736e04d012bc379137275e7dcbdbb6fe71181875bb2f73525e6370b3a0166123e38aa19a
DIST openresolv-3.7.0.tar.bz2 17699 SHA256 8b7c0b2f6165b51893bceeb2ea1d3e85c08cbd1afc65319003a912166f8c35de SHA512 230df582176f7ade598e2a92834a10f4fd5d1b7d020804694924fe281b5a78fdb73d94eeff32e2a285b0c1557f4517e6b31cf8a3162fc3fa3928283f50527946 WHIRLPOOL 320122ae3dac8f4772badae533da65b8a6fb8ccabf72dbc0d6096fffd8ad5ad4109bc7170e3b73494da94a27db46c96bfea9d5c87aae16a008f4f87772e45616
DIST openresolv-3.7.2.tar.xz 17340 SHA256 8eac062f3c67d636bd0e898893bd5c7368ad0c470d511110be2d0e73c14de037 SHA512 cc5b54bf0d4e62c345cad9a4973447d38773d992ac9753ca873c472e8b5c4a3f5d926808c1627b54780ff7d70cd3d4e5f26fa169f7337323eae9e33326d7e349 WHIRLPOOL 8876df85c0c2a6dc344a2a5fd89586a5e087970e5304d6a40a8992d4a1106c89ae4dae3717523323262f5b74426c2f1b10faf9904ca06829db4cea9b4a693c34
+DIST openresolv-3.8.1.tar.xz 18396 SHA256 d259d78fd92ac288f1b27959daee11be9a40d70e91af5432046164c260de1d43 SHA512 390bf30bb85b071839104e5c7e276b402f6f485edc038e38da389730d82e614bb11b0dde44a55aa2ca5e790b374671a9c89cc07b053633401a608150eebbf2c8 WHIRLPOOL 34f1c545053c444d950c3a3f9c0775e377c70a2b45af561cec94f96cd171237e2e2de1cd5a45c39c4e996f87aa206b986740557aaf0104f9af9f3c66f1d1a0c1
diff --git a/net-dns/openresolv/files/3.8.1-restore-newline.patch b/net-dns/openresolv/files/3.8.1-restore-newline.patch
new file mode 100644
index 000000000000..2522710bf941
--- /dev/null
+++ b/net-dns/openresolv/files/3.8.1-restore-newline.patch
@@ -0,0 +1,16 @@
+--- a/libc.in
++++ b/libc.in
+@@ -214,11 +214,11 @@
+ # If the old file does not have our signature, back it up.
+ # If the new file just has our signature, restore the backup.
+ if $backup; then
+ if [ "$newconf" = "$signature$NL" ]; then
+ if [ -e "$resolv_conf.bak" ]; then
+- newconf="$(cat "$resolv_conf.bak")"
++ newconf="$(cat "$resolv_conf.bak")$NL"
+ fi
+ elif [ -e "$resolv_conf" ]; then
+ read line <"$resolv_conf"
+ if [ "$line" != "$signature" ]; then
+ cp "$resolv_conf" "$resolv_conf.bak"
+
diff --git a/net-dns/openresolv/openresolv-3.8.1.ebuild b/net-dns/openresolv/openresolv-3.8.1.ebuild
new file mode 100644
index 000000000000..5594b0d920bf
--- /dev/null
+++ b/net-dns/openresolv/openresolv-3.8.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )"
+
+PATCHES=(
+ "${FILESDIR}/3.8.1-restore-newline.patch"
+)
+
+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
+}