|
|
b0365fb |
Name: dnsmasq
|
|
|
9c6c651 |
Version: 2.31
|
|
|
4f915cf |
Release: 1%{?dist}.1
|
|
|
b0365fb |
Summary: A lightweight DHCP/caching DNS server
|
|
|
b0365fb |
|
|
|
b0365fb |
Group: System Environment/Daemons
|
|
|
b0365fb |
License: GPL
|
|
|
b0365fb |
URL: http://www.thekelleys.org.uk/dnsmasq/
|
|
|
b0365fb |
Source0: http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
|
|
|
58326ba |
Patch0: http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-initscript.patch
|
|
|
58326ba |
Patch1: http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-enable-dbus.patch
|
|
|
b0365fb |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b0365fb |
|
|
|
4f915cf |
%if "%fedora" > "3" || "%aurora" > "2"
|
|
|
58326ba |
BuildRequires: dbus-devel
|
|
|
58326ba |
%endif
|
|
|
58326ba |
|
|
|
b0365fb |
Requires(post): /sbin/chkconfig
|
|
|
b0365fb |
Requires(post): /sbin/service
|
|
|
b0365fb |
Requires(preun): /sbin/chkconfig
|
|
|
b0365fb |
Requires(preun): /sbin/service
|
|
|
b0365fb |
|
|
|
b0365fb |
%description
|
|
|
b0365fb |
Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server.
|
|
|
b0365fb |
It is designed to provide DNS and, optionally, DHCP, to a small network.
|
|
|
b0365fb |
It can serve the names of local machines which are not in the global
|
|
|
b0365fb |
DNS. The DHCP server integrates with the DNS server and allows machines
|
|
|
b0365fb |
with DHCP-allocated addresses to appear in the DNS with names configured
|
|
|
b0365fb |
either in each host or in a central configuration file. Dnsmasq supports
|
|
|
b0365fb |
static and dynamic DHCP leases and BOOTP for network booting of diskless
|
|
|
b0365fb |
machines.
|
|
|
b0365fb |
|
|
|
b0365fb |
|
|
|
b0365fb |
%prep
|
|
|
b0365fb |
%setup -q
|
|
|
b0365fb |
%patch0 -p1
|
|
|
4f915cf |
%if "%fedora" > "3" || "%aurora" > "2"
|
|
|
58326ba |
%patch1 -p1
|
|
|
58326ba |
%endif
|
|
|
b0365fb |
|
|
|
b0365fb |
%build
|
|
|
b0365fb |
make %{?_smp_mflags}
|
|
|
b0365fb |
|
|
|
b0365fb |
|
|
|
b0365fb |
%install
|
|
|
b0365fb |
rm -rf $RPM_BUILD_ROOT
|
|
|
b0365fb |
# normally i'd do 'make install'...it's a bit messy, though
|
|
|
b0365fb |
mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_initrddir} \
|
|
|
6c0ec21 |
$RPM_BUILD_ROOT%{_mandir}/man8 \
|
|
|
6c0ec21 |
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig \
|
|
|
6c0ec21 |
$RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
|
|
|
b0365fb |
install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}/dnsmasq
|
|
|
b0365fb |
install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
|
|
|
4f915cf |
%if "%fedora" > "3" || "%aurora" > "2"
|
|
|
6c0ec21 |
install dbus/dnsmasq.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
|
|
|
904296d |
%endif
|
|
|
9c6c651 |
install rpm/dnsmasq.init $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
|
|
|
b0365fb |
install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
b0365fb |
|
|
|
b0365fb |
%clean
|
|
|
b0365fb |
rm -rf $RPM_BUILD_ROOT
|
|
|
b0365fb |
|
|
|
b0365fb |
%post
|
|
|
b0365fb |
/sbin/chkconfig --add dnsmasq
|
|
|
b0365fb |
|
|
|
b0365fb |
%preun
|
|
|
b0365fb |
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
|
|
b0365fb |
service dnsmasq stop >/dev/null 2>&1
|
|
|
b0365fb |
/sbin/chkconfig --del dnsmasq
|
|
|
b0365fb |
fi
|
|
|
b0365fb |
|
|
|
b0365fb |
%postun
|
|
|
b0365fb |
if [ "$1" -ge "1" ]; then
|
|
|
b0365fb |
service dnsmasq restart >/dev/null 2>&1
|
|
|
b0365fb |
fi
|
|
|
b0365fb |
|
|
|
b0365fb |
|
|
|
b0365fb |
%files
|
|
|
b0365fb |
%defattr(-,root,root,-)
|
|
|
9c6c651 |
%doc CHANGELOG COPYING FAQ doc.html setup.html UPGRADING_to_2.0 dbus/DBus-interface
|
|
|
6c0ec21 |
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
|
|
|
4f915cf |
%if "%fedora" > "3" || "%aurora" > "2"
|
|
|
6c0ec21 |
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
|
|
|
904296d |
%endif
|
|
|
b0365fb |
%{_initrddir}/dnsmasq
|
|
|
b0365fb |
%{_sbindir}/dnsmasq
|
|
|
b0365fb |
%{_mandir}/man8/dnsmasq*
|
|
|
b0365fb |
|
|
|
b0365fb |
|
|
|
b0365fb |
%changelog
|
|
|
4f915cf |
* Mon May 15 2006 Patrick "Jima" Laughton <jima@fedoraproject.org> 2.31-1.fc3.1
|
|
|
4f915cf |
- Patch from Dennis Gilmore fixed the conditionals to detect Aurora Linux
|
|
|
4f915cf |
|
|
|
9c6c651 |
* Mon May 8 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.31-1
|
|
|
9c6c651 |
- Removed dbus config patch (now provided upstream)
|
|
|
9c6c651 |
- Patched in init script (no longer provided upstream)
|
|
|
9c6c651 |
- Added DBus-interface to docs
|
|
|
904296d |
|
|
|
6c0ec21 |
* Tue May 2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4.2
|
|
|
6c0ec21 |
- More upstream-recommended cleanups :)
|
|
|
6c0ec21 |
- Killed sysconfig file (provides unneeded functionality)
|
|
|
6c0ec21 |
- Tweaked init script a little more
|
|
|
6c0ec21 |
|
|
|
6c0ec21 |
* Tue May 2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4
|
|
|
6c0ec21 |
- Moved options out of init script and into /etc/sysconfig/dnsmasq
|
|
|
6c0ec21 |
- Disabled DHCP_LEASE in sysconfig file, fixing bug #190379
|
|
|
6c0ec21 |
- Simon Kelley provided dbus/dnsmasq.conf, soon to be part of the tarball
|
|
|
6c0ec21 |
|
|
|
58326ba |
* Thu Apr 27 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-3
|
|
|
58326ba |
- Un-enabled HAVE_ISC_READER, a hack to enable a deprecated feature (request)
|
|
|
58326ba |
- Split initscript & enable-dbus patches, conditionalized dbus for FC3
|
|
|
58326ba |
- Tweaked name field in changelog entries (trying to be consistent)
|
|
|
1bc8863 |
|
|
|
58326ba |
* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-2
|
|
|
b0365fb |
- Disabled stripping of binary while installing (oops)
|
|
|
1bc8863 |
- Enabled HAVE_ISC_READER/HAVE_DBUS via patch
|
|
|
1bc8863 |
- Added BuildReq for dbus-devel
|
|
|
b0365fb |
|
|
|
58326ba |
* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-1
|
|
|
b0365fb |
- Initial Fedora Extras RPM
|