Merge lp:~davewalker/ubuntu/oneiric/dnsmasq/add_dnsmasq-utils_package into lp:ubuntu/oneiric/dnsmasq

Proposed by Dave Walker
Status: Merged
Merged at revision: 20
Proposed branch: lp:~davewalker/ubuntu/oneiric/dnsmasq/add_dnsmasq-utils_package
Merge into: lp:ubuntu/oneiric/dnsmasq
Diff against target: 160 lines (+109/-1)
5 files modified
contrib/wrt/dhcp_lease_time.1 (+23/-0)
contrib/wrt/dhcp_release.1 (+35/-0)
debian/changelog (+10/-0)
debian/control (+11/-1)
debian/rules (+30/-0)
To merge this branch: bzr merge lp:~davewalker/ubuntu/oneiric/dnsmasq/add_dnsmasq-utils_package
Reviewer Review Type Date Requested Status
Robie Basak Approve
Ubuntu branches Pending
Review via email: mp+75988@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robie Basak (racb) wrote :

This builds and installs OK. I can't see how it might break anything else. I don't understand the purpose of the Conflicts: addition but I don't think it will matter here, and if that's what Debian does then it'll be easier to merge later. I assume that nova will be set to depend on dnsmasq-utils in bug 852771 to pull this package in. No other objections.

review: Approve
Revision history for this message
Dave Walker (davewalker) wrote :

Thanks Robie!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'contrib/wrt/dhcp_lease_time.1'
--- contrib/wrt/dhcp_lease_time.1 1970-01-01 00:00:00 +0000
+++ contrib/wrt/dhcp_lease_time.1 2011-09-19 10:13:26 +0000
@@ -0,0 +1,23 @@
1.TH DHCP_LEASE_TIME 1
2.SH NAME
3dhcp_lease_time \- Query remaining time of a lease on a the local dnsmasq DHCP server.
4.SH SYNOPSIS
5.B dhcp_lease_time <address>
6.SH "DESCRIPTION"
7Send a DHCPINFORM message to a dnsmasq server running on the local host
8and print (to stdout) the time remaining in any lease for the given
9address. The time is given as string printed to stdout.
10
11If an error occurs or no lease exists for the given address,
12nothing is sent to stdout a message is sent to stderr and a
13non-zero error code is returned.
14
15Requires dnsmasq 2.40 or later and may not work with other DHCP servers.
16
17The address argument is a dotted-quad IP addresses and mandatory.
18.SH SEE ALSO
19.BR dnsmasq (8)
20.SH AUTHOR
21This manual page was written by Simon Kelley <simon@thekelleys.org.uk>.
22
23
024
=== added file 'contrib/wrt/dhcp_release.1'
--- contrib/wrt/dhcp_release.1 1970-01-01 00:00:00 +0000
+++ contrib/wrt/dhcp_release.1 2011-09-19 10:13:26 +0000
@@ -0,0 +1,35 @@
1.TH DHCP_RELEASE 1
2.SH NAME
3dhcp_release \- Release a DHCP lease on a the local dnsmasq DHCP server.
4.SH SYNOPSIS
5.B dhcp_release <interface> <address> <MAC address> <client_id>
6.SH "DESCRIPTION"
7A utility which forces the DHCP server running on this machine to release a
8DHCP lease.
9.PP
10Send a DHCPRELEASE message via the specified interface to tell the
11local DHCP server to delete a particular lease.
12
13The interface argument is the interface in which a DHCP
14request _would_ be received if it was coming from the client,
15rather than being faked up here.
16
17The address argument is a dotted-quad IP addresses and mandatory.
18
19The MAC address is colon separated hex, and is mandatory. It may be
20prefixed by an address-type byte followed by -, eg
21
2210-11:22:33:44:55:66
23
24but if the address-type byte is missing it is assumed to be 1, the type
25for ethernet. This encoding is the one used in dnsmasq lease files.
26
27The client-id is optional. If it is "*" then it treated as being missing.
28.SH NOTES
29MUST be run as root - will fail otherwise.
30.SH SEE ALSO
31.BR dnsmasq (8)
32.SH AUTHOR
33This manual page was written by Simon Kelley <simon@thekelleys.org.uk>.
34
35
036
=== modified file 'debian/changelog'
--- debian/changelog 2011-02-18 09:54:13 +0000
+++ debian/changelog 2011-09-19 10:13:26 +0000
@@ -1,3 +1,13 @@
1dnsmasq (2.57-1ubuntu1) oneiric; urgency=low
2
3 * New binary package, dnsmasq-utils - cherry picked from Debian's
4 2.58-1 package. Contains dhcp_release and dhcp_lease_time from
5 contrib/wrt. (LP: #853255)
6 - contrib/wrt/(dhcp_release.1,dhcp_lease_time.1): Included manpages
7 from 2.58-1 package.
8
9 -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Mon, 19 Sep 2011 09:41:12 +0000
10
1dnsmasq (2.57-1) unstable; urgency=low11dnsmasq (2.57-1) unstable; urgency=low
212
3 * New upstream.13 * New upstream.
414
=== modified file 'debian/control'
--- debian/control 2011-02-18 09:54:13 +0000
+++ debian/control 2011-09-19 10:13:26 +0000
@@ -2,7 +2,8 @@
2Section: net2Section: net
3Priority: optional3Priority: optional
4Build-depends: gettext, libidn11-dev, libdbus-1-dev (>=0.61)4Build-depends: gettext, libidn11-dev, libdbus-1-dev (>=0.61)
5Maintainer: Simon Kelley <simon@thekelleys.org.uk>5Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
6XSBC-Original-Maintainer: Simon Kelley <simon@thekelleys.org.uk>
6Standards-Version: 3.9.17Standards-Version: 3.9.1
78
8Package: dnsmasq9Package: dnsmasq
@@ -28,3 +29,12 @@
28 This package contains the dnsmasq executable and documentation, but29 This package contains the dnsmasq executable and documentation, but
29 not the infrastructure required to run it as a system daemon. For30 not the infrastructure required to run it as a system daemon. For
30 that, install the dnsmasq package.31 that, install the dnsmasq package.
32
33Package: dnsmasq-utils
34Architecture: linux-any
35Depends: ${shlibs:Depends}
36Conflicts: dnsmasq (<<2.40)
37Description: Utilities for manipulating DHCP leases
38 Small utilities to query a DHCP server's lease database and
39 remove leases from it. These programs are distributed with dnsmasq
40 and may not work correctly with other DHCP servers..
3141
=== modified file 'debian/rules'
--- debian/rules 2011-02-18 09:54:13 +0000
+++ debian/rules 2011-09-19 10:13:26 +0000
@@ -21,6 +21,8 @@
21COPTS = 21COPTS =
22TARGET = install-i18n22TARGET = install-i18n
2323
24DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
25
24ifeq (,$(findstring nodbus,$(DEB_BUILD_OPTIONS)))26ifeq (,$(findstring nodbus,$(DEB_BUILD_OPTIONS)))
25 COPTS += -DHAVE_DBUS27 COPTS += -DHAVE_DBUS
26endif28endif
@@ -126,6 +128,34 @@
126 chmod -R g-ws debian/base 128 chmod -R g-ws debian/base
127 dpkg --build debian/base ..129 dpkg --build debian/base ..
128130
131ifeq ($(DEB_BUILD_ARCH_OS),linux)
132 rm -rf debian/utils
133 install -m 755 -d debian/utils/DEBIAN \
134 -d debian/utils/usr/share/man/man1 \
135 -d debian/utils/usr/bin \
136 -d debian/utils/usr/share/doc/dnsmasq-utils
137 make -C contrib/wrt PREFIX=/usr DESTDIR=`pwd`/debian/utils CFLAGS="$(CFLAGS)" COPTS="$(COPTS)" CC=gcc
138 install -m 755 contrib/wrt/dhcp_release debian/utils/usr/bin/dhcp_release
139 install -m 644 contrib/wrt/dhcp_release.1 debian/utils/usr/share/man/man1/dhcp_release.1
140 gzip -9 debian/utils/usr/share/man/man1/dhcp_release.1
141 install -m 755 contrib/wrt/dhcp_lease_time debian/utils/usr/bin/dhcp_lease_time
142 install -m 644 contrib/wrt/dhcp_lease_time.1 debian/utils/usr/share/man/man1/dhcp_lease_time.1
143 install -m 644 debian/copyright debian/utils/usr/share/doc/dnsmasq-utils/copyright
144 install -m 644 debian/changelog debian/utils/usr/share/doc/dnsmasq-utils/changelog.Debian
145 gzip -9 debian/utils/usr/share/doc/dnsmasq-utils/changelog.Debian
146 gzip -9 debian/utils/usr/share/man/man1/dhcp_lease_time.1
147ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
148 strip -R .note -R .comment debian/utils/usr/bin/dhcp_release
149 strip -R .note -R .comment debian/utils/usr/bin/dhcp_lease_time
150endif
151 cd debian/utils && find . -type f ! -regex '.*DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
152 dpkg-shlibdeps -Tdebian/utils-substvars debian/utils/usr/bin/dhcp_release debian/utils/usr/bin/dhcp_lease_time
153 dpkg-gencontrol -Tdebian/utils-substvars -pdnsmasq-utils -Pdebian/utils
154 chown -R root.root debian/utils
155 chmod -R g-ws debian/utils
156 dpkg --build debian/utils ..
157endif
158
129define checkdir159define checkdir
130 test -f Makefile -a -f debian/rules160 test -f Makefile -a -f debian/rules
131endef161endef

Subscribers

People subscribed via source and target branches

to all changes: