Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/openresolv/files: openresolv-3.5.4-config-conflict.patch
Date: Fri, 24 May 2013 19:35:15
Message-Id: 20130524193509.58A6420081@flycatcher.gentoo.org
1 alonbl 13/05/24 19:35:09
2
3 Added: openresolv-3.5.4-config-conflict.patch
4 Log:
5 Fix conflict with dhcpcd, bug#440614, thanks to Renato Alves
6
7 (Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
8
9 Revision Changes Path
10 1.1 net-dns/openresolv/files/openresolv-3.5.4-config-conflict.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/openresolv/files/openresolv-3.5.4-config-conflict.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/openresolv/files/openresolv-3.5.4-config-conflict.patch?rev=1.1&content-type=text/plain
14
15 Index: openresolv-3.5.4-config-conflict.patch
16 ===================================================================
17 From 406964b59113109d3f7bef2681aaf9362b10d661 Mon Sep 17 00:00:00 2001
18 From: Alon Bar-Lev <alon.barlev@×××××.com>
19 Date: Sun, 12 May 2013 18:24:57 +0300
20 Subject: [PATCH] resolvconf: enforce configuration defaults to avoid conflict
21
22 dhcpcd, for example, uses interface_order environment variable
23 which creates a conflict with resolv conf setting, as it takes
24 that value as default configuration.
25
26 Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
27 ---
28 resolvconf.in | 11 +++++++----
29 1 file changed, 7 insertions(+), 4 deletions(-)
30
31 diff --git a/resolvconf.in b/resolvconf.in
32 index 5015222..82b8b55 100644
33 --- a/resolvconf.in
34 +++ b/resolvconf.in
35 @@ -28,6 +28,13 @@ RESOLVCONF="$0"
36 SYSCONFDIR=@SYSCONFDIR@
37 LIBEXECDIR=@LIBEXECDIR@
38 VARDIR=@VARDIR@
39 +
40 +# set configuration defaults
41 +dynamic_order="tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*"
42 +interface_order="lo lo[0-9]*"
43 +name_server_blacklist="0.0.0.0"
44 +state_dir=""
45 +
46 # Support original resolvconf configuration layout
47 # as well as the openresolv config file
48 if [ -f "$SYSCONFDIR"/resolvconf.conf ]; then
49 @@ -43,10 +50,6 @@ IFACEDIR="$VARDIR/interfaces"
50 METRICDIR="$VARDIR/metrics"
51 PRIVATEDIR="$VARDIR/private"
52
53 -: ${dynamic_order:=tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*}
54 -: ${interface_order:=lo lo[0-9]*}
55 -: ${name_server_blacklist:=0.0.0.0}
56 -
57 error_exit()
58 {
59 echo "$*" >&2
60 --
61 1.8.1.5