blob: b4e4a5884e90fbeefc61748f20257ace82ad2edf (
plain)
1 diff -Nru dnsmasq-2.61.orig/Makefile dnsmasq-2.61/Makefile
2 --- dnsmasq-2.61.orig/Makefile 2012-04-29 17:29:37.527992253 +0200
3 +++ dnsmasq-2.61/Makefile 2012-04-29 17:29:51.834373337 +0200
4 @@ -20,11 +20,11 @@
5
6 PREFIX = /usr/local
7 BINDIR = $(PREFIX)/sbin
8 -MANDIR = $(PREFIX)/share/man
9 +MANDIR = $(PREFIX)/man
10 LOCALEDIR = $(PREFIX)/share/locale
11 BUILDDIR = $(SRC)
12 DESTDIR =
13 -CFLAGS = -Wall -W -O2
14 +CFLAGS += -Wall -W
15 LDFLAGS =
16 COPTS =
17 RPM_OPT_FLAGS =
18 diff -Nru dnsmasq-2.61.orig/dnsmasq.conf.example dnsmasq-2.61/dnsmasq.conf.example
19 --- dnsmasq-2.61.orig/dnsmasq.conf.example 2012-04-29 17:29:37.534658843 +0200
20 +++ dnsmasq-2.61/dnsmasq.conf.example 2012-04-29 17:29:51.834373337 +0200
21 @@ -80,8 +80,8 @@
22
23 # If you want dnsmasq to change uid and gid to something other
24 # than the default, edit the following lines.
25 -#user=
26 -#group=
27 +#user=nobody
28 +#group=nobody
29
30 # If you want dnsmasq to listen for DHCP and DNS requests only on
31 # specified interfaces (and the loopback) give the name of the
32 @@ -498,7 +498,7 @@
33 # The DHCP server needs somewhere on disk to keep its lease database.
34 # This defaults to a sane location, but if you want to change it, use
35 # the line below.
36 -#dhcp-leasefile=/var/lib/misc/dnsmasq.leases
37 +# dhcp-leasefile=/var/lib/dhcp/dnsmasq.leases
38
39 # Set the DHCP server to authoritative mode. In this mode it will barge in
40 # and take over the lease for any client which broadcasts on the network,
41 diff -Nru dnsmasq-2.61.orig/src/config.h dnsmasq-2.61/src/config.h
42 --- dnsmasq-2.61.orig/src/config.h 2012-04-29 17:29:37.534658843 +0200
43 +++ dnsmasq-2.61/src/config.h 2012-04-29 17:29:51.834373337 +0200
44 @@ -36,7 +36,7 @@
45 #define RUNFILE "/var/run/dnsmasq.pid"
46 #define DEFLEASE 3600 /* default lease time, 1 hour */
47 #define CHUSER "nobody"
48 -#define CHGRP "dip"
49 +#define CHGRP "nobody"
50 #define TFTP_MAX_CONNECTIONS 50 /* max simultaneous connections */
51 #define LOG_MAX 5 /* log-queue length */
52 #define RANDFILE "/dev/urandom"
53 @@ -138,7 +138,7 @@
54 # elif defined(__ANDROID__)
55 # define LEASEFILE "/data/misc/dhcp/dnsmasq.leases"
56 # else
57 -# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
58 +# define LEASEFILE "/var/lib/dhcp/dnsmasq.leases"
59 # endif
60 #endif
61
|