File pdnsd-1.2.8.spec of Package pdnsd
Summary: A caching dns proxy for small networks or dialin accounts
Name: pdnsd
Version: 1.2.8
Release: 1.1
License: GPLv3
Group: Productivity/Networking/DNS/Servers
Source: http://www.phys.uu.nl/~rombouts/pdnsd/releases/%{name}-%{version}-par.tar.gz
Source1: pdnsd
URL: http://www.phys.uu.nl/~rombouts/pdnsd.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
pdnsd is a proxy DNS daemon with permanent (disk-)cache and the ability
to serve local records. It is designed to detect network outages or hangups
and to prevent DNS-dependent applications like Netscape Navigator from hanging.
The original author of pdnsd is Thomas Moestl, but pdnsd is no longer maintained
by him. This is an extensively revised version by Paul A. Rombouts.
For a description of the changes see http://www.phys.uu.nl/~rombouts/pdnsd.html
and the file README.par in %{_docdir}/%{name}-%{version}
%prep
%setup
%build
%configure --with-cachedir="/var/cache/pdnsd" \
--enable-specbuild \
--with-query-method=udptcp \
--enable-ipv6 \
--with-par-queries=3 \
--with-debug=0
make
%install
rm -rf "$RPM_BUILD_ROOT"
make DESTDIR="$RPM_BUILD_ROOT" install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
cp %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
chmod 755 $RPM_BUILD_ROOT%{_sysconfdir}/init.d/pdnsd
cp $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/pdnsd.conf
%attr(755,root,root) %{_sysconfdir}/init.d/pdnsd
%{_sysconfdir}/pdnsd.conf.sample
%{_prefix}/sbin/*
%{_prefix}/share/man/man*/*
%attr(-,nobody,nobody) %config(noreplace) /var/cache/pdnsd/pdnsd.cache
%dir /var/cache/pdnsd
%changelog
* Sat Aug 4 2007 Paul Rombouts <p.a.rombouts@home.nl>
- License is now GPL version 3
* Fri Mar 24 2006 Paul Rombouts <p.a.rombouts@home.nl>
- Instead of using a fixed default value for run_as_uid,
I let useradd choose the uid if run_as_uid is undefined.
* Thu Dec 29 2005 Paul Rombouts <p.a.rombouts@home.nl>
- TCP-query support is now compiled in by default,
but can be disabled using "--without tcpqueries".
* Sun Jul 20 2003 Paul Rombouts <p.a.rombouts@home.nl>
- Changed default run_as ID from "nobody" to "pdnsd"
* Fri Jun 20 2003 Paul Rombouts <p.a.rombouts@home.nl>
- Added configuration option for NPTL.
* Sat Jun 07 2003 Paul Rombouts <p.a.rombouts@home.nl>
- Added automatic definition of distro using _vendor macro.
* Thu May 22 2003 Paul Rombouts <p.a.rombouts@home.nl>
- Ensured that modification times of acconfig.h and configure.in
are not changed by patching to avoid unwanted reconfigure during make phase.
* Tue May 20 2003 Paul Rombouts <p.a.rombouts@home.nl>
- Applied my customized patch file. See READ.par for details.
* Sun May 16 2001 Thomas Moestl <tmoestl@gmx.net>
- Make use of chkconfig for Red Hat (patch by Christian Engstler)
* Sun Mar 25 2001 Thomas Moestl <tmoestl@gmx.net>
- Merged SuSE fixes by Christian Engstler
* Fri Feb 09 2001 Thomas Moestl <tmoestl@gmx.net>
- Merged in a spec fix for mapage inclusion contributed by Sourav K.
Mandal
* Sun Nov 26 2000 Thomas Moestl <tmoestl@gmx.net>
- Added some patches contributed by Bernd Leibing
* Tue Aug 15 2000 Thomas Moestl <tmoestl@gmx.net>
- Added the distro for configure
* Tue Jul 11 2000 Sourav K. Mandal <smandal@mit.edu>
- autoconf/automake modifications