Accepting request 158737 from network

Create a utils subpackage to include DHCP lease management utils (forwarded request 158731 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/158737
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dnsmasq?expand=0&rev=45
This commit is contained in:
Stephan Kulow 2013-03-14 14:19:29 +00:00 committed by Git OBS Bridge
commit 29d6a9fc25
2 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Mar 12 18:09:40 UTC 2013 - vuntz@suse.com
- Create a utils subpackage to include DHCP lease management utils
(that are living in contrib/wrt):
+ Explicitly build them in %build and install the files in
%install.
+ Summary and description of the new subpackage are taken from
Fedora.
-------------------------------------------------------------------
Fri Feb 22 12:53:03 UTC 2013 - rmilasan@suse.com

View File

@ -55,6 +55,14 @@ configured 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: Productivity/Networking/DNS/Servers
%description utils
Utilities that use the standard DHCP protocol to query/remove a DHCP
server's leases.
%prep
%setup -q -n dnsmasq-%{version}
%setup -q -T -D -a1 -n dnsmasq-%{version}
@ -68,6 +76,7 @@ mv po/no.po po/nb.po
export CFLAGS="%optflags -std=gnu99 -fPIC -DPIC -fpie"
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
make %{?_smp_mflags} AWK=gawk all-i18n
make -C contrib/wrt %{?_smp_mflags}
%pre
if ! /usr/bin/getent group tftp >/dev/null; then
@ -111,6 +120,15 @@ install -d 755 ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/
install -m 644 dbus/dnsmasq.conf ${RPM_BUILD_ROOT}/etc/dbus-1/system.d/dnsmasq.conf
install -D -m 0644 %SOURCE2 %{buildroot}%{_unitdir}/system/dnsmasq.service
install -d -m 0750 ${RPM_BUILD_ROOT}/srv/tftpboot
# utils subpackage
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
rm contrib/wrt/{dhcp_release,dhcp_lease_time}
%find_lang %{name} --with-man
%files -f %{name}.lang
@ -129,4 +147,8 @@ install -d -m 0750 ${RPM_BUILD_ROOT}/srv/tftpboot
%{_unitdir}/system/dnsmasq.service
%dir %attr(0750,root,tftp) /srv/tftpboot
%files utils
%{_bindir}/dhcp_*
%{_mandir}/man1/dhcp_*
%changelog