Name: dnsmasq Version: 2.89 Release: 1mamba Summary: A lightweight DHCP/caching DNS server Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: https://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 BuildRequires: libbsd-devel BuildRequires: libdbus-devel BuildRequires: libgmp-devel BuildRequires: libnettle-devel ## AUTOBUILDREQ-END %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 \ LDFLAGS=" -lbsd" \ COPTS=" -DHAVE_DBUS -DHAVE_DNSSEC -DLEASEFILE='\"/var/lib/dnsmasq/dnsmasq.leases\"'" \ BINDIR=%{_sbindir} \ MANDIR=%{_mandir} %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install-i18n \ LDFLAGS=" -lbsd" COPTS=" -DHAVE_DBUS -DHAVE_DNSSEC" \ BINDIR=%{_sbindir} \ MANDIR=%{_mandir} mkdir -p %{buildroot}%{_var}/lib/dnsmasq \ %{buildroot}%{_sysconfdir}/dnsmasq.d # #install src/dnsmasq %{buildroot}%{_sbindir}/dnsmasq install -D -m0644 dnsmasq.conf.example %{buildroot}%{_sysconfdir}/dnsmasq.conf install -D -m0644 dbus/dnsmasq.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/dnsmasq.conf install -D -m0644 contrib/systemd/dnsmasq.service %{buildroot}%{_unitdir}/dnsmasq.service %find_lang %{name} --with-man %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 -f %{name}.lang %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 * Mon Feb 06 2023 Automatic Build System 2.89-1mamba - automatic version update by autodist * Mon Dec 05 2022 Automatic Build System 2.88-1mamba - automatic version update by autodist * Mon Sep 26 2022 Automatic Build System 2.87-1mamba - automatic version update by autodist * Thu Sep 09 2021 Automatic Build System 2.86-1mamba - automatic version update by autodist * Thu Apr 08 2021 Automatic Build System 2.85-1mamba - automatic version update by autodist * Tue Jan 26 2021 Automatic Build System 2.84-1mamba - automatic version update by autodist * Tue Jan 19 2021 Automatic Build System 2.83-1mamba - automatic version update by autodist * Wed Jul 22 2020 Automatic Build System 2.82-1mamba - automatic version update by autodist * Wed Apr 15 2020 Automatic Build System 2.81-1mamba - automatic version update by autodist * Mon Oct 22 2018 Automatic Build System 2.80-1mamba - automatic version update by autodist * Wed Oct 17 2018 Silvan Calarco 2.79-2mamba - rebuilt with DBUS and DNSSEC support * Mon Mar 19 2018 Automatic Build System 2.79-1mamba - automatic version update by autodist * Mon Oct 02 2017 Automatic Build System 2.78-1mamba - automatic version update by autodist * Fri Jun 02 2017 Automatic Build System 2.77-1mamba - automatic version update by autodist * Sun May 22 2016 Automatic Build System 2.76-1mamba - automatic version update by autodist * Tue Aug 04 2015 Automatic Build System 2.75-1mamba - automatic version update by autodist * 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