opt/dnsmasq/dnsmasq-config.patch

66 lines
2.4 KiB
Diff
Raw Normal View History

2009-10-16 17:09:36 +02:00
diff -Nru dnsmasq-2.51.orig/Makefile dnsmasq-2.51/Makefile
--- dnsmasq-2.51.orig/Makefile 2009-10-15 13:58:55.000000000 +0200
+++ dnsmasq-2.51/Makefile 2009-10-15 13:59:12.000000000 +0200
2008-02-13 12:26:31 +01:00
@@ -15,7 +15,7 @@
PREFIX = /usr/local
BINDIR = ${PREFIX}/sbin
-MANDIR = ${PREFIX}/share/man
+MANDIR = ${PREFIX}/man
LOCALEDIR = ${PREFIX}/share/locale
2006-02-23 16:26:10 +01:00
SRC = src
2009-10-16 17:09:36 +02:00
diff -Nru dnsmasq-2.51.orig/bld/Makefile dnsmasq-2.51/bld/Makefile
--- dnsmasq-2.51.orig/bld/Makefile 2009-10-15 13:58:55.000000000 +0200
+++ dnsmasq-2.51/bld/Makefile 2009-10-15 13:59:12.000000000 +0200
2008-02-13 12:26:31 +01:00
@@ -1,4 +1,4 @@
-CFLAGS = -Wall -W -O2
+CFLAGS += -Wall -W
2008-11-15 10:12:30 +01:00
OBJS = cache.o rfc1035.o util.o option.o forward.o network.o \
2008-02-13 12:26:31 +01:00
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \
2009-10-16 17:09:36 +02:00
diff -Nru dnsmasq-2.51.orig/dnsmasq.conf.example dnsmasq-2.51/dnsmasq.conf.example
--- dnsmasq-2.51.orig/dnsmasq.conf.example 2009-10-15 13:58:55.000000000 +0200
+++ dnsmasq-2.51/dnsmasq.conf.example 2009-10-15 13:59:12.000000000 +0200
2008-02-13 12:26:31 +01:00
@@ -75,8 +75,8 @@
2006-02-23 16:26:10 +01:00
# If you want dnsmasq to change uid and gid to something other
# than the default, edit the following lines.
-#user=
-#group=
2008-07-11 09:23:02 +02:00
+#user=nobody
+#group=nobody
2006-02-23 16:26:10 +01:00
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
2009-10-16 17:09:36 +02:00
@@ -415,7 +415,7 @@
2006-02-23 16:26:10 +01:00
# The DHCP server needs somewhere on disk to keep its lease database.
# This defaults to a sane location, but if you want to change it, use
# the line below.
-#dhcp-leasefile=/var/lib/misc/dnsmasq.leases
+# dhcp-leasefile=/var/lib/dhcp/dnsmasq.leases
# Set the DHCP server to authoritative mode. In this mode it will barge in
# and take over the lease for any client which broadcasts on the network,
2009-10-16 17:09:36 +02:00
diff -Nru dnsmasq-2.51.orig/src/config.h dnsmasq-2.51/src/config.h
--- dnsmasq-2.51.orig/src/config.h 2009-10-15 13:58:55.000000000 +0200
+++ dnsmasq-2.51/src/config.h 2009-10-15 13:59:12.000000000 +0200
@@ -47,7 +47,7 @@
2009-02-07 09:00:27 +01:00
# elif defined(__sun__) || defined (__sun)
# define LEASEFILE "/var/cache/dnsmasq.leases"
# else
-# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
+# define LEASEFILE "/var/lib/dhcp/dnsmasq.leases"
# endif
2006-02-23 16:26:10 +01:00
#endif
2009-02-07 09:00:27 +01:00
2009-10-16 17:09:36 +02:00
@@ -61,7 +61,7 @@
2009-02-07 09:00:27 +01:00
2006-02-23 16:26:10 +01:00
#define DEFLEASE 3600 /* default lease time, 1 hour */
#define CHUSER "nobody"
-#define CHGRP "dip"
+#define CHGRP "nobody"
#define DHCP_SERVER_PORT 67
2006-04-19 09:08:58 +02:00
#define DHCP_CLIENT_PORT 68
2008-07-11 09:23:02 +02:00
#define DHCP_SERVER_ALTPORT 1067