2024-01-05 21:51:15 +01:00
|
|
|
Name: dnsmasq
|
2024-01-05 21:51:15 +01:00
|
|
|
Version: 2.73
|
|
|
|
Release: 1mamba
|
2024-01-05 21:51:15 +01:00
|
|
|
Summary: A lightweight DHCP/caching DNS server
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
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
|
2024-01-05 21:51:15 +01:00
|
|
|
Patch2: %{name}-2.72-enable_etc_dnsmasq_d.patch
|
2024-01-05 21:51:15 +01:00
|
|
|
License: GPL
|
2024-01-05 21:51:15 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 21:51:15 +01:00
|
|
|
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
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
patch -p1 < contrib/systemd/dbus_activation
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
%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/
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
install -D -m0644 contrib/systemd/dnsmasq.service %{buildroot}%{_unitdir}/dnsmasq.service
|
2024-01-05 21:51:15 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-05 21:51:15 +01:00
|
|
|
if [ $1 -gt 1 ]; then
|
|
|
|
# clean old sysv broken links
|
|
|
|
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
2024-01-05 21:51:15 +01:00
|
|
|
fi
|
2024-01-05 21:51:15 +01:00
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
fi
|
|
|
|
:
|
2024-01-05 21:51:15 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = "0" ]; then
|
2024-01-05 21:51:15 +01:00
|
|
|
systemctl -q stop %{name}.service
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
fi
|
|
|
|
:
|
2024-01-05 21:51:15 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sbindir}/dnsmasq
|
2024-01-05 21:51:15 +01:00
|
|
|
%dir %{_sysconfdir}/dnsmasq.d
|
2024-01-05 21:51:15 +01:00
|
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
|
2024-01-05 21:51:15 +01:00
|
|
|
%{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
|
2024-01-05 21:51:15 +01:00
|
|
|
%dir %{_var}/lib/dnsmasq
|
2024-01-05 21:51:15 +01:00
|
|
|
%{_unitdir}/dnsmasq.service
|
2024-01-05 21:51:15 +01:00
|
|
|
%{_mandir}/man8/dnsmasq.*
|
2024-01-05 21:51:15 +01:00
|
|
|
%doc COPYING
|
|
|
|
#%doc CHANGELOG FAQ doc.html setup.html dbus/DBus-interface
|
2024-01-05 21:51:15 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:51:15 +01:00
|
|
|
* Wed Jun 17 2015 Automatic Build System <autodist@mambasoft.it> 2.73-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
* Mon Nov 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.72-2mamba
|
|
|
|
- systemd support
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
* Fri Sep 26 2014 Automatic Build System <autodist@mambasoft.it> 2.72-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
* Thu May 22 2014 Automatic Build System <autodist@mambasoft.it> 2.71-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:51:15 +01:00
|
|
|
* Thu Apr 24 2014 Automatic Build System <autodist@mambasoft.it> 2.70-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 10 2014 Automatic Build System <autodist@mambasoft.it> 2.69-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 09 2013 Automatic Build System <autodist@mambasoft.it> 2.68-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 25 2013 Automatic Build System <autodist@mambasoft.it> 2.67-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 18 2013 Automatic Build System <autodist@mambasoft.it> 2.66-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 01 2013 Automatic Build System <autodist@mambasoft.it> 2.65-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Oct 10 2012 Automatic Build System <autodist@mambasoft.it> 2.63-1mamba
|
|
|
|
- update to 2.63
|
|
|
|
|
|
|
|
* Thu Jun 14 2012 Automatic Build System <autodist@mambasoft.it> 2.62-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Aug 29 2011 Automatic Build System <autodist@mambasoft.it> 2.58-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 2.57-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jun 22 2010 Automatic Build System <autodist@mambasoft.it> 2.55-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Mar 26 2010 Davide Madrisan <davide.madrisan@gmail.com> 2.52-1mamba
|
|
|
|
- package created by autospec
|