rpms/dnsmasq/FC-5 dnsmasq-2.30-dbus-config.patch, NONE, 1.1 dnsmasq-2.30-initscript.patch, 1.1, 1.2 dnsmasq.spec, 1.2, 1.3

Patrick Laughton (jima) fedora-extras-commits at redhat.com
Tue May 2 16:37:50 UTC 2006


Author: jima

Update of /cvs/extras/rpms/dnsmasq/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16708/FC-5

Modified Files:
	dnsmasq-2.30-initscript.patch dnsmasq.spec 
Added Files:
	dnsmasq-2.30-dbus-config.patch 
Log Message:

Fixed bug #190379                                                               
Moved options from init script to sysconfig file                                
Added dbus configuration file                                                   


dnsmasq-2.30-dbus-config.patch:

--- NEW FILE dnsmasq-2.30-dbus-config.patch ---
diff -urN dnsmasq-2.30/dbus/dnsmasq.conf dnsmasq-2.30-patched/dbus/dnsmasq.conf
--- dnsmasq-2.30/dbus/dnsmasq.conf	1969-12-31 18:00:00.000000000 -0600
+++ dnsmasq-2.30-patched/dbus/dnsmasq.conf	2006-05-02 09:52:56.000000000 -0500
@@ -0,0 +1,16 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+	<policy user="root">
+		<allow own="uk.org.thekelleys.dnsmasq"/>
+		<allow send_destination="uk.org.thekelleys.dnsmasq"/>
+                <allow send_interface="uk.org.thekelleys.dnsmasq"/>
+	</policy>
+	<policy context="default">
+                <deny own="uk.org.thekelleys.dnsmasq"/>
+                <deny send_destination="uk.org.thekelleys.dnsmasq"/>
+                <deny send_interface="uk.org.thekelleys.dnsmasq"/>
+        </policy>
+</busconfig>
+

dnsmasq-2.30-initscript.patch:

Index: dnsmasq-2.30-initscript.patch
===================================================================
RCS file: /cvs/extras/rpms/dnsmasq/FC-5/dnsmasq-2.30-initscript.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dnsmasq-2.30-initscript.patch	27 Apr 2006 15:54:52 -0000	1.1
+++ dnsmasq-2.30-initscript.patch	2 May 2006 16:37:50 -0000	1.2
@@ -1,6 +1,6 @@
 diff -urN dnsmasq-2.30/rpm/dnsmasq.rh dnsmasq-2.30-patched/rpm/dnsmasq.rh
 --- dnsmasq-2.30/rpm/dnsmasq.rh	2006-04-23 08:26:21.000000000 -0500
-+++ dnsmasq-2.30-patched/rpm/dnsmasq.rh	2006-04-24 15:06:01.000000000 -0500
++++ dnsmasq-2.30-patched/rpm/dnsmasq.rh	2006-05-02 11:07:16.000000000 -0500
 @@ -2,7 +2,7 @@
  #
  # Startup script for the DNS caching server
@@ -10,3 +10,53 @@
  # description: This script starts your DNS caching server
  # processname: dnsmasq
  # pidfile: /var/run/dnsmasq.pid
+@@ -19,33 +19,9 @@
+ dnsmasq=/usr/sbin/dnsmasq
+ [ -f $dnsmasq ] || exit 0
+ 
+-# change this line if you want dnsmasq to serve an MX record for 
+-# the host it is running on. 
+-MAILHOSTNAME=""
+-# change this line if you want dns to get its upstream servers from
+-# somewhere other that /etc/resolv.conf 
+-RESOLV_CONF=""
+-# change this if you want dnsmasq to cache any "hostname" or "client-hostname" from
+-# a dhcpd's lease file
+-DHCP_LEASE="/var/lib/dhcp/dhcpd.leases"
+ DOMAIN_SUFFIX=`dnsdomainname`
+-
+-OPTIONS=""
+-
+-if [ ! -z "${MAILHOSTNAME}" ]; then
+-  OPTIONS="$OPTIONS -m $MAILHOSTNAME"
+-fi
+-
+-if [ ! -z "${RESOLV_CONF}" ]; then
+-  OPTIONS="$OPTIONS -r $RESOLV_CONF"
+-fi
+-
+-if [ ! -z "${DHCP_LEASE}" ]; then
+-  OPTIONS="$OPTIONS -l $DHCP_LEASE"
+-fi
+-
+ if [ ! -z "${DOMAIN_SUFFIX}" ]; then
+-  OPTIONS="$OPTIONS -s $DOMAIN_SUFFIX"
++  OPTIONS="-s $DOMAIN_SUFFIX"
+ fi
+ 
+ RETVAL=0
+@@ -72,7 +48,13 @@
+ 	status dnsmasq
+ 	RETVAL=$?
+ 	;;
+-  restart|reload)
++  reload)
++	echo -n "Reloading dnsmasq: "
++	killproc dnsmasq -HUP
++	RETVAL=$?
++	echo
++	;;
++  restart)
+ 	$0 stop
+ 	$0 start
+ 	RETVAL=$?


Index: dnsmasq.spec
===================================================================
RCS file: /cvs/extras/rpms/dnsmasq/FC-5/dnsmasq.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dnsmasq.spec	27 Apr 2006 15:54:52 -0000	1.2
+++ dnsmasq.spec	2 May 2006 16:37:50 -0000	1.3
@@ -1,6 +1,6 @@
 Name:           dnsmasq
 Version:        2.30
-Release:        3%{?dist}
+Release:        4.2%{?dist}
 Summary:        A lightweight DHCP/caching DNS server
 
 Group:          System Environment/Daemons
@@ -9,6 +9,7 @@
 Source0:        http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
 Patch0:         http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-initscript.patch
 Patch1:         http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-enable-dbus.patch
+Patch2:         http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-dbus-config.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %if "%{dist}" != ".fc3"
@@ -36,6 +37,7 @@
 %patch0 -p1
 %if "%{dist}" != ".fc3"
 %patch1 -p1
+%patch2 -p1
 %endif
 
 %build
@@ -46,9 +48,12 @@
 rm -rf $RPM_BUILD_ROOT
 # normally i'd do 'make install'...it's a bit messy, though
 mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_initrddir} \
-	$RPM_BUILD_ROOT%{_mandir}/man8
+	$RPM_BUILD_ROOT%{_mandir}/man8 \
+	$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig \
+	$RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
 install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}/dnsmasq
 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
+install dbus/dnsmasq.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
 install rpm/dnsmasq.rh $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
 install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
 
@@ -73,13 +78,24 @@
 %files
 %defattr(-,root,root,-)
 %doc CHANGELOG COPYING FAQ doc.html setup.html UPGRADING_to_2.0
-%config(noreplace) %attr(664,root,root) %{_sysconfdir}/dnsmasq.conf
+%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
+%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
 %{_initrddir}/dnsmasq
 %{_sbindir}/dnsmasq
 %{_mandir}/man8/dnsmasq*
 
 
 %changelog
+* Tue May  2 2006 Patrick "Jima" Laughton <jima at auroralinux.org> 2.30-4.2
+- More upstream-recommended cleanups :)
+- Killed sysconfig file (provides unneeded functionality)
+- Tweaked init script a little more
+
+* Tue May  2 2006 Patrick "Jima" Laughton <jima at auroralinux.org> 2.30-4
+- Moved options out of init script and into /etc/sysconfig/dnsmasq
+- Disabled DHCP_LEASE in sysconfig file, fixing bug #190379
+- Simon Kelley provided dbus/dnsmasq.conf, soon to be part of the tarball
+
 * Thu Apr 27 2006 Patrick "Jima" Laughton <jima at auroralinux.org> 2.30-3
 - Un-enabled HAVE_ISC_READER, a hack to enable a deprecated feature (request)
 - Split initscript & enable-dbus patches, conditionalized dbus for FC3




More information about the fedora-extras-commits mailing list