From: | "Jim Ramsay (lack)" <lack@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-dns/openresolv/files: openresolv-3.3-dnsmasq-dbus_pid.patch |
Date: | Thu, 30 Apr 2009 15:30:58 |
Message-Id: | E1LzYDw-0007bz-I7@stork.gentoo.org |
1 | lack 09/04/30 15:30:56 |
2 | |
3 | Added: openresolv-3.3-dnsmasq-dbus_pid.patch |
4 | Log: |
5 | Fixed dbus detection bug for dnsmasq script |
6 | (Portage version: 2.1.6.11/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-dns/openresolv/files/openresolv-3.3-dnsmasq-dbus_pid.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/openresolv/files/openresolv-3.3-dnsmasq-dbus_pid.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/openresolv/files/openresolv-3.3-dnsmasq-dbus_pid.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: openresolv-3.3-dnsmasq-dbus_pid.patch |
15 | =================================================================== |
16 | From 580cc04369dcb19a6a48ff67371e9fd292781066 Mon Sep 17 00:00:00 2001 |
17 | From: Jim Ramsay <lack@g.o> |
18 | Date: Thu, 30 Apr 2009 15:59:58 +0100 |
19 | Subject: [PATCH] Fix dnsmasq finding the right pidfile. |
20 | |
21 | --- |
22 | dnsmasq.in | 4 ++-- |
23 | 1 files changed, 2 insertions(+), 2 deletions(-) |
24 | |
25 | diff --git a/dnsmasq.in b/dnsmasq.in |
26 | index 8fdd999..09120d1 100644 |
27 | --- a/dnsmasq.in |
28 | +++ b/dnsmasq.in |
29 | @@ -43,8 +43,8 @@ newresolv="$newconf" |
30 | # Check for DBus support in the binary |
31 | dbus=false |
32 | : ${dbus_pid:=/var/run/dbus/dbus.pid} |
33 | -[ -s "$dbus_pid" ] || dbuspid=/var/run/dbus.pid |
34 | -[ -s "$dbus_pid" ] || dbuspid=/var/run/dbus/pid |
35 | +[ -s "$dbus_pid" ] || dbus_pid=/var/run/dbus.pid |
36 | +[ -s "$dbus_pid" ] || dbus_pid=/var/run/dbus/pid |
37 | if [ -s "$dbus_pid" -a -s "$dnsmasq_pid" ]; then |
38 | if dnsmasq --version 2>/dev/null | \ |
39 | grep -q "^Compile time options.*[[:space:]]DBus[[:space:]]" |
40 | -- |
41 | 1.6.2 |