1 # TODO: nobody MUST NOT own any files!
2 Summary: A caching dns proxy for small networks or dialin accounts
3 Summary(pl): DNS proxy serwer dla ma³ej sieci lub jednostki z po³±czeniem dialup
8 Group: Networking/Daemons
9 Source0: http://www.phys.uu.nl/~rombouts/pdnsd/%{name}-%{version}-par8.tar.gz
10 # Source0-md5: 00847e63641e241f07687387e0c2c1b4
12 Patch0: %{name}-threads_signals.patch
13 Patch1: %{name}-ac_am.patch
14 # Old URL: http://home.t-online.de/home/Moestl/
15 URL: http://www.phys.uu.nl/~rombouts/pdnsd.html
16 BuildRequires: autoconf
17 BuildRequires: automake
20 Requires(post,preun): /sbin/chkconfig
21 Provides: caching-nameserver
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Obsoletes: maradns-zoneserver
28 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
29 ability to serve local records. It is designed to detect network
30 outages or hangups and to prevent DNS-dependent applications like
31 Netscape Navigator from hanging.
34 pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
35 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
36 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
53 --with-thread-lib=LinuxThreads2
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
61 DESTDIR=$RPM_BUILD_ROOT
63 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
64 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
67 rm -rf $RPM_BUILD_ROOT
70 /sbin/chkconfig --add pdnsd
71 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
72 /etc/rc.d/init.d/pdnsd restart >&2
74 echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
78 if [ "$1" = "0" ]; then
79 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
80 /etc/rc.d/init.d/pdnsd stop
82 /sbin/chkconfig --del pdnsd
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
88 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
89 %attr(755,root,root) %{_sbindir}/pdnsd
90 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
91 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
92 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
93 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf