Name: dnsmasq Version: 2.73 Release: 1mamba Summary: A lightweight DHCP/caching DNS server Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.thekelleys.org.uk/dnsmasq/ Source0: http://www.thekelleys.org.uk/dnsmasq/dnsmasq-%{version}.tar.xz Source1: dnsmasq.initscript Patch0: %{name}-2.52-use_var_lib_dnsmasq.patch Patch1: %{name}-2.52-have_dbus.patch Patch2: %{name}-2.72-enable_etc_dnsmasq_d.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP/PXE for network booting of diskless machines. %prep %setup -q %patch0 -p1 #%patch1 -p1 %patch2 -p1 patch -p1 < contrib/systemd/dbus_activation %build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_sbindir} \ %{buildroot}%{_mandir}/man8 \ %{buildroot}%{_var}/lib/dnsmasq \ %{buildroot}%{_sysconfdir}/dnsmasq.d \ %{buildroot}%{_sysconfdir}/dbus-1/system.d install src/dnsmasq %{buildroot}%{_sbindir}/dnsmasq install dnsmasq.conf.example %{buildroot}%{_sysconfdir}/dnsmasq.conf install dbus/dnsmasq.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/ install -m 644 man/dnsmasq.8 %{buildroot}%{_mandir}/man8/ install -D -m0644 contrib/systemd/dnsmasq.service %{buildroot}%{_unitdir}/dnsmasq.service %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -gt 1 ]; then # clean old sysv broken links find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \; fi if [ $1 -ge 1 ]; then systemctl -q daemon-reload fi : %preun if [ "$1" = "0" ]; then systemctl -q stop %{name}.service systemctl -q daemon-reload fi : %files %defattr(-,root,root) %{_sbindir}/dnsmasq %dir %{_sysconfdir}/dnsmasq.d %config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf %dir %{_var}/lib/dnsmasq %{_unitdir}/dnsmasq.service %{_mandir}/man8/dnsmasq.* %doc COPYING #%doc CHANGELOG FAQ doc.html setup.html dbus/DBus-interface %changelog * Wed Jun 17 2015 Automatic Build System 2.73-1mamba - automatic version update by autodist * Mon Nov 24 2014 Silvan Calarco 2.72-2mamba - systemd support * Fri Sep 26 2014 Automatic Build System 2.72-1mamba - automatic version update by autodist * Thu May 22 2014 Automatic Build System 2.71-1mamba - automatic version update by autodist * Thu Apr 24 2014 Automatic Build System 2.70-1mamba - automatic version update by autodist * Thu Apr 10 2014 Automatic Build System 2.69-1mamba - automatic version update by autodist * Mon Dec 09 2013 Automatic Build System 2.68-1mamba - automatic version update by autodist * Fri Oct 25 2013 Automatic Build System 2.67-1mamba - automatic version update by autodist * Thu Apr 18 2013 Automatic Build System 2.66-1mamba - automatic version update by autodist * Tue Jan 01 2013 Automatic Build System 2.65-1mamba - automatic version update by autodist * Wed Oct 10 2012 Automatic Build System 2.63-1mamba - update to 2.63 * Thu Jun 14 2012 Automatic Build System 2.62-1mamba - automatic version update by autodist * Mon Aug 29 2011 Automatic Build System 2.58-1mamba - automatic version update by autodist * Wed Feb 23 2011 Automatic Build System 2.57-1mamba - automatic update by autodist * Tue Jun 22 2010 Automatic Build System 2.55-1mamba - automatic update by autodist * Fri Mar 26 2010 Davide Madrisan 2.52-1mamba - package created by autospec