2006-04-25 16:51:25 +00:00
|
|
|
Name: dnsmasq
|
2006-06-12 14:30:20 +00:00
|
|
|
Version: 2.32
|
2006-05-08 15:51:19 +00:00
|
|
|
Release: 1%{?dist}
|
2006-04-25 16:51:25 +00:00
|
|
|
Summary: A lightweight DHCP/caching DNS server
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.thekelleys.org.uk/dnsmasq/
|
|
|
|
Source0: http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
|
2006-04-27 15:16:45 +00:00
|
|
|
Patch0: http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-initscript.patch
|
|
|
|
Patch1: http://beer.tclug.org/fedora-extras/dnsmasq/%{name}-%{version}-enable-dbus.patch
|
2006-04-25 16:51:25 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2006-06-12 14:30:20 +00:00
|
|
|
%if "%fedora" > "3" || "%aurora" > "2"
|
2006-04-25 16:51:25 +00:00
|
|
|
BuildRequires: dbus-devel
|
2006-04-27 15:16:45 +00:00
|
|
|
%endif
|
2006-04-25 16:51:25 +00:00
|
|
|
|
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
Requires(post): /sbin/service
|
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
Requires(preun): /sbin/service
|
|
|
|
|
|
|
|
%description
|
|
|
|
Dnsmasq is 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 for network booting of diskless
|
|
|
|
machines.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2006-05-02 16:28:07 +00:00
|
|
|
%patch0 -p1
|
2006-06-12 14:30:20 +00:00
|
|
|
%if "%fedora" > "3" || "%aurora" > "2"
|
2006-05-02 16:28:07 +00:00
|
|
|
%patch1 -p1
|
2006-04-27 15:16:45 +00:00
|
|
|
%endif
|
2006-04-25 16:51:25 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
# normally i'd do 'make install'...it's a bit messy, though
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_initrddir} \
|
2006-05-02 15:51:01 +00:00
|
|
|
$RPM_BUILD_ROOT%{_mandir}/man8 \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
|
2006-04-25 16:51:25 +00:00
|
|
|
install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}/dnsmasq
|
|
|
|
install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
|
2006-06-12 14:30:20 +00:00
|
|
|
%if "%fedora" > "3" || "%aurora" > "2"
|
2006-05-02 15:51:01 +00:00
|
|
|
install dbus/dnsmasq.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
|
2006-05-08 15:51:19 +00:00
|
|
|
%endif
|
|
|
|
install rpm/dnsmasq.init $RPM_BUILD_ROOT%{_initrddir}/dnsmasq
|
2006-04-25 16:51:25 +00:00
|
|
|
install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add dnsmasq
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
|
|
|
service dnsmasq stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del dnsmasq
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
service dnsmasq restart >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-05-08 15:51:19 +00:00
|
|
|
%doc CHANGELOG COPYING FAQ doc.html setup.html UPGRADING_to_2.0 dbus/DBus-interface
|
2006-05-02 15:51:01 +00:00
|
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
|
2006-06-12 14:30:20 +00:00
|
|
|
%if "%fedora" > "3" || "%aurora" > "2"
|
2006-05-02 15:51:01 +00:00
|
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
|
2006-05-08 15:51:19 +00:00
|
|
|
%endif
|
2006-04-25 16:51:25 +00:00
|
|
|
%{_initrddir}/dnsmasq
|
|
|
|
%{_sbindir}/dnsmasq
|
|
|
|
%{_mandir}/man8/dnsmasq*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2006-06-12 14:30:20 +00:00
|
|
|
* Mon Jun 12 2006 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.32-1
|
|
|
|
- Update from upstream
|
|
|
|
- Patch from Dennis Gilmore fixed the conditionals to detect Aurora Linux
|
|
|
|
|
2006-05-08 15:51:19 +00:00
|
|
|
* Mon May 8 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.31-1
|
|
|
|
- Removed dbus config patch (now provided upstream)
|
|
|
|
- Patched in init script (no longer provided upstream)
|
|
|
|
- Added DBus-interface to docs
|
|
|
|
|
2006-05-02 16:28:07 +00:00
|
|
|
* Tue May 2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4.2
|
2006-05-02 16:19:59 +00:00
|
|
|
- More upstream-recommended cleanups :)
|
|
|
|
- Killed sysconfig file (provides unneeded functionality)
|
|
|
|
- Tweaked init script a little more
|
|
|
|
|
2006-05-02 15:51:01 +00:00
|
|
|
* Tue May 2 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-4
|
|
|
|
- Moved options out of init script and into /etc/sysconfig/dnsmasq
|
|
|
|
- Disabled DHCP_LEASE in sysconfig file, fixing bug #190379
|
|
|
|
- Simon Kelley provided dbus/dnsmasq.conf, soon to be part of the tarball
|
|
|
|
|
2006-04-27 15:16:45 +00:00
|
|
|
* Thu Apr 27 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-3
|
|
|
|
- Un-enabled HAVE_ISC_READER, a hack to enable a deprecated feature (request)
|
|
|
|
- Split initscript & enable-dbus patches, conditionalized dbus for FC3
|
|
|
|
- Tweaked name field in changelog entries (trying to be consistent)
|
|
|
|
|
|
|
|
* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-2
|
2006-04-25 16:51:25 +00:00
|
|
|
- Disabled stripping of binary while installing (oops)
|
|
|
|
- Enabled HAVE_ISC_READER/HAVE_DBUS via patch
|
|
|
|
- Added BuildReq for dbus-devel
|
|
|
|
|
2006-04-27 15:16:45 +00:00
|
|
|
* Mon Apr 24 2006 Patrick "Jima" Laughton <jima@auroralinux.org> 2.30-1
|
2006-04-25 16:51:25 +00:00
|
|
|
- Initial Fedora Extras RPM
|