113 lines
3.7 KiB
RPMSpec
113 lines
3.7 KiB
RPMSpec
Name: dnsmasq
|
|
Version: 2.70
|
|
Release: 1mamba
|
|
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
|
|
Patch2: %{name}-2.52-enable_etc_dnsmasq_d.patch
|
|
License: GPL
|
|
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
|
|
|
|
%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 -p -m 755 %{S:1} %{buildroot}%{_initrddir}/dnsmasq
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
if [ "$1" = "2" ]; then
|
|
/sbin/service dnsmasq condrestart >/dev/null 2>&1 || :
|
|
fi
|
|
exit 0
|
|
|
|
%preun
|
|
if [ "$1" = "0" ]; then
|
|
/sbin/service dnsmasq stop >/dev/null 2>&1 || :
|
|
/sbin/chkconfig --del dnsmasq
|
|
fi
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/dnsmasq
|
|
%dir /etc/dnsmasq.d
|
|
%{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
|
|
%dir %{_var}/lib/dnsmasq
|
|
%{_initrddir}/dnsmasq
|
|
%{_mandir}/man8/dnsmasq.*
|
|
%doc CHANGELOG COPYING FAQ doc.html setup.html dbus/DBus-interface
|
|
|
|
%changelog
|
|
* 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
|