rpms/dnsmasq/F-11 dnsmasq.init, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.23, 1.24 dnsmasq.spec, 1.38, 1.39 sources, 1.23, 1.24 dnsmasq-2.33-enable-dbus.patch, 1.1, NONE dnsmasq-2.33-initscript.patch, 1.1, NONE dnsmasq-2.35-conf-dir.patch, 1.1, NONE dnsmasq-2.46-tftp-server-vulnerabilities.patch, 1.1, NONE dnsmasq-configuration.patch, 1.3, NONE dnsmasq-newglibc.patch, 1.1, NONE

Itamar Reis Peixoto itamarjp at fedoraproject.org
Tue Jan 26 18:43:31 UTC 2010


Author: itamarjp

Update of /cvs/pkgs/rpms/dnsmasq/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2649/F-11

Modified Files:
	.cvsignore dnsmasq.spec sources 
Added Files:
	dnsmasq.init import.log 
Removed Files:
	dnsmasq-2.33-enable-dbus.patch dnsmasq-2.33-initscript.patch 
	dnsmasq-2.35-conf-dir.patch 
	dnsmasq-2.46-tftp-server-vulnerabilities.patch 
	dnsmasq-configuration.patch dnsmasq-newglibc.patch 
Log Message:
- new version 2.52



--- NEW FILE dnsmasq.init ---
#!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

pidfile=${PIDFILE-/var/run/dnsmasq.pid}
lockfile=${LOCKFILE-/var/lock/subsys/dnsmasq}


RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${lockfile}
        ;;
  stop)
        echo -n "Shutting down dnsmasq: "
        killproc -p ${pidfile} ${dnsmasq}
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc -p ${pidfile} ${dnsmasq} -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`pidfileofproc dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL



--- NEW FILE import.log ---
dnsmasq-2_52-1_fc13:F-11:dnsmasq-2.52-1.fc13.src.rpm:1264530262


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/dnsmasq/F-11/.cvsignore,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -p -r1.23 -r1.24
--- .cvsignore	29 Dec 2008 01:39:59 -0000	1.23
+++ .cvsignore	26 Jan 2010 18:43:30 -0000	1.24
@@ -1 +1 @@
-dnsmasq-2.46.tar.gz
+dnsmasq-2.52.tar.lzma


Index: dnsmasq.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dnsmasq/F-11/dnsmasq.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- dnsmasq.spec	5 Oct 2009 10:26:46 -0000	1.38
+++ dnsmasq.spec	26 Jan 2010 18:43:30 -0000	1.39
@@ -10,27 +10,25 @@
 %endif
 
 Name:           dnsmasq
-Version:        2.46
-Release:        3%{?extraversion}%{?dist}
+Version:        2.52
+Release:        1%{?extraversion}%{?dist}
 Summary:        A lightweight DHCP/caching DNS server
 
 Group:          System Environment/Daemons
 License:        GPLv2 or GPLv3
 URL:            http://www.thekelleys.org.uk/dnsmasq/
-Source0:        http://www.thekelleys.org.uk/dnsmasq/%{?extrapath}%{name}-%{version}%{?extraversion}.tar.gz
-Patch0:         %{name}-2.33-initscript.patch
-Patch1:         %{name}-configuration.patch
-Patch2:         %{name}-2.46-tftp-server-vulnerabilities.patch
+Source0:        http://www.thekelleys.org.uk/dnsmasq/%{?extrapath}%{name}-%{version}%{?extraversion}.tar.lzma
+Source1:        %{name}.init
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  dbus-devel
 BuildRequires:  pkgconfig
 
-Requires(post):  /sbin/chkconfig
-Requires(post):  /sbin/service
-Requires(post):  /bin/sed /bin/grep
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
+Requires(post):  chkconfig
+Requires(preun): chkconfig
+# This is for /sbin/service
+Requires(preun): initscripts
+Requires(post):  initscripts
 
 %description
 Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. 
@@ -45,9 +43,18 @@ machines.
 
 %prep
 %setup -q -n %{name}-%{version}%{?extraversion}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+
+# use /var/lib/dnsmasq instead of /var/lib/misc
+for file in dnsmasq.conf.example man/dnsmasq.8 man/es/dnsmasq.8 src/config.h; do
+    sed -i 's|/var/lib/misc/dnsmasq.leases|/var/lib/dnsmasq/dnsmasq.leases|g' "$file"
+done
+
+#enable dbus
+sed -i 's|/\* #define HAVE_DBUS \*/|#define HAVE_DBUS|g' src/config.h
+
+#enable /etc/dnsmasq.d fix bz 526703
+sed -i 's|#conf-dir=/etc/dnsmasq.d|conf-dir=/etc/dnsmasq.d|g' dnsmasq.conf.example
+
 
 %build
 make %{?_smp_mflags}
@@ -56,7 +63,7 @@ make %{?_smp_mflags}
 %install
 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} \
+mkdir -p $RPM_BUILD_ROOT%{_sbindir} \
         $RPM_BUILD_ROOT%{_mandir}/man8 \
         $RPM_BUILD_ROOT%{_var}/lib/dnsmasq \
         $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.d \
@@ -64,7 +71,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM
 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.init $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
+install -Dp -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
 install -m 644 man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
 
 %clean
@@ -111,9 +118,37 @@ fi
 
 
 %changelog
-* Mon Oct  5 2009 Mark McLoughlin <markmc at redhat.com> - 2.46-3
+* Tue Jan 26 2010 Itamar Reis Peixoto <itamar at ispbrasil.com.br> - 2.52-1
+- New Version 2.52
+- fix condrestart() in initscript bz 547605
+- fix sed to enable DBUS(the '*' need some escaping) bz 553161
+
+* Sun Nov 22 2009 Itamar Reis Peixoto <itamar at ispbrasil.com.br> - 2.51-2
+- fix bz 512664
+
+* Sat Oct 17 2009 Itamar Reis Peixoto <itamar at ispbrasil.com.br> - 2.51-1
+- move initscript from patch to a plain text file
+- drop (dnsmasq-configuration.patch) and use sed instead
+- enable /etc/dnsmasq.d fix bz 526703
+- change requires to package name instead of file
+- new version 2.51
+
+* Mon Oct  5 2009 Mark McLoughlin <markmc at redhat.com> - 2.48-4
 - Fix multiple TFTP server vulnerabilities (CVE-2009-2957, CVE-2009-2958)
 
+* Wed Aug 12 2009 Ville Skyttä <ville.skytta at iki.fi> - 2.48-3
+- Use lzma compressed upstream tarball.
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.48-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jun 10 2009 Patrick "Jima" Laughton <jima at beer.tclug.org> 2.48-1
+- Bugfix/feature enhancement update
+- Fixing BZ#494094
+
+* Fri May 29 2009 Patrick "Jima" Laughton <jima at beer.tclug.org> 2.47-1
+- Bugfix/feature enhancement update
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.46-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/dnsmasq/F-11/sources,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -p -r1.23 -r1.24
--- sources	29 Dec 2008 01:39:59 -0000	1.23
+++ sources	26 Jan 2010 18:43:31 -0000	1.24
@@ -1 +1 @@
-79ec740d1a10ee75f13efa4ff36d0250  dnsmasq-2.46.tar.gz
+2d156f322564fdd71ad238040cd607ac  dnsmasq-2.52.tar.lzma


--- dnsmasq-2.33-enable-dbus.patch DELETED ---


--- dnsmasq-2.33-initscript.patch DELETED ---


--- dnsmasq-2.35-conf-dir.patch DELETED ---


--- dnsmasq-2.46-tftp-server-vulnerabilities.patch DELETED ---


--- dnsmasq-configuration.patch DELETED ---


--- dnsmasq-newglibc.patch DELETED ---



More information about the scm-commits mailing list