[dnsmasq/f16] Add DHCP lease management utils to a subpackage (#788485)

Pádraig Brady pbrady at fedoraproject.org
Thu Feb 9 20:20:59 UTC 2012


commit 9b975f1d018c6e06feaaa238f7e6c4623b048ef8
Author: Pádraig Brady <P at draigBrady.com>
Date:   Thu Feb 9 16:57:33 2012 +0000

    Add DHCP lease management utils to a subpackage (#788485)
    
    I used a subpackage so these utils have minimal dependencies
    
    Conflicts:
    
    	dnsmasq.spec

 dnsmasq.spec |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/dnsmasq.spec b/dnsmasq.spec
index ed74d27..64cfee8 100644
--- a/dnsmasq.spec
+++ b/dnsmasq.spec
@@ -11,7 +11,7 @@
 
 Name:           dnsmasq
 Version:        2.59
-Release:        2%{?extraversion}%{?dist}
+Release:        3%{?extraversion}%{?dist}
 Summary:        A lightweight DHCP/caching DNS server
 
 Group:          System Environment/Daemons
@@ -40,6 +40,14 @@ either in each host or in a central configuration file. Dnsmasq supports
 static and dynamic DHCP leases and BOOTP for network booting of diskless
 machines.
 
+%package        utils
+Summary:        Utilities for manipulating DHCP server leases
+Group:          System Environment/Daemons
+
+%description    utils
+Utilities that use the standard DHCP protocol to
+query/remove a DHCP server's leases.
+
 
 %prep
 %setup -q -n %{name}-%{version}%{?extraversion}
@@ -58,6 +66,7 @@ sed -i 's|#conf-dir=/etc/dnsmasq.d|conf-dir=/etc/dnsmasq.d|g' dnsmasq.conf.examp
 
 %build
 make %{?_smp_mflags}
+make -C contrib/wrt %{?_smp_mflags}
 
 
 %install
@@ -73,6 +82,14 @@ install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
 install dbus/dnsmasq.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
 install -m 644 man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
 
+# utils sub package
+mkdir -p $RPM_BUILD_ROOT%{_bindir} \
+         $RPM_BUILD_ROOT%{_mandir}/man1
+install -m 755 contrib/wrt/dhcp_release $RPM_BUILD_ROOT%{_bindir}/dhcp_release
+install -m 644 contrib/wrt/dhcp_release.1 $RPM_BUILD_ROOT%{_mandir}/man1/dhcp_release.1
+install -m 755 contrib/wrt/dhcp_lease_time $RPM_BUILD_ROOT%{_bindir}/dhcp_lease_time
+install -m 644 contrib/wrt/dhcp_lease_time.1 $RPM_BUILD_ROOT%{_mandir}/man1/dhcp_lease_time.1
+
 # Systemd
 mkdir -p %{buildroot}%{_unitdir}
 install -m644 %{SOURCE1} %{buildroot}%{_unitdir}
@@ -115,8 +132,14 @@ fi
 %{_sbindir}/dnsmasq
 %{_mandir}/man8/dnsmasq*
 
+%files utils
+%{_bindir}/dhcp_*
+%{_mandir}/man1/dhcp_*
 
 %changelog
+* Thu Feb  9 2012 Pádraig Brady <P at draigBrady.com> - 2.59-3
+- Include DHCP lease management utils in a subpackage
+
 * Fri Aug 26 2011 Douglas Schilling Landgraf <dougsland at redhat.com> - 2.59-2
 - put back change by Adam Williamson <awilliam at redhat.com> that was removed by mistake
 - do not enable service on upgrade, it was not enabled by default before


More information about the scm-commits mailing list