From fb8b0a245ee22e2ebfb249f865893905e6f17f32 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Feb 09 2012 20:22:54 +0000 Subject: Add DHCP lease management utils to a subpackage (#788485) I used a subpackage so these utils have minimal dependencies Conflicts: dnsmasq.spec --- diff --git a/dnsmasq.spec b/dnsmasq.spec index 4033c9f..aa0e513 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -11,7 +11,7 @@ Name: dnsmasq Version: 2.58 -Release: 1%{?extraversion}%{?dist} +Release: 2%{?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} @@ -116,8 +133,14 @@ fi %{_sbindir}/dnsmasq %{_mandir}/man8/dnsmasq* +%files utils +%{_bindir}/dhcp_* +%{_mandir}/man1/dhcp_* %changelog +* Thu Feb 9 2012 Pádraig Brady - 2.58-2 +- Include DHCP lease management utils in a subpackage + * Fri Aug 26 2011 Douglas Schilling Landgraf - 2.58-1 - Fixed License - New version 2.58