1 Summary: A caching dns proxy for small networks or dialin accounts
2 Summary(pl): DNS proxy serwer dla ma³ej sieci lub jednostki z po³±czeniem dialup
7 Group: Networking/Daemons
9 Source0: http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
11 URL: http://home.t-online.de/home/Moestl/
12 BuildRequires: autoconf
13 BuildRequires: automake
15 PreReq: /sbin/chkconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
21 ability to serve local records. It is designed to detect network
22 outages or hangups and to prevent DNS-dependent applications like
23 Netscape Navigator from hanging.
26 pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
27 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
28 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
49 DESTDIR=$RPM_BUILD_ROOT
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
52 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
53 $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
56 rm -rf $RPM_BUILD_ROOT
59 /sbin/chkconfig --add pdnsd
60 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
61 /etc/rc.d/init.d/pdnsd restart >&2
63 echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
67 if [ "$1" = "0" ]; then
68 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
69 /etc/rc.d/init.d/pdnsd stop
71 /sbin/chkconfig --del pdnsd
75 %defattr(644,root,root,755)
76 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
77 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
78 %attr(755,root,root) %{_sbindir}/pdnsd
79 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
80 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
81 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
82 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf