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
11 Source0: http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
13 URL: http://home.t-online.de/home/Moestl/
16 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 do us³ugi DNS zapisujacym bufor ze zgromadzonymi
27 informacjami na dysku. Bêdzie on szczególnie u¿yteczny dla jednostki
28 pracujacej w trybie off-line (np. poprzez po³±czenie dialup).
39 %{__rm} -rf $RPM_BUILD_ROOT
40 %{__install} -d $RPM_BUILD_ROOT/etc/rc.d/init.d
43 DESTDIR=$RPM_BUILD_ROOT
44 %{__install} %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
45 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
46 $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
48 %{__gzip} -9nf AUTHORS ChangeLog NEWS README TODO \
52 %{__rm} -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add pdnsd
56 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
57 /etc/rc.d/init.d/pdnsd restart >&2
59 echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
63 if [ "$1" = "0" ]; then
64 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
65 /etc/rc.d/init.d/pdnsd stop
67 /sbin/chkconfig --del pdnsd
71 %defattr(644,root,root,755)
72 %doc {*,doc/txt/*}.gz doc/html/*
73 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
74 %attr(755,root,root) %{_sbindir}/pdnsd
75 %attr(770,nobody,nobody) %dir %{_var}/cache/pdnsd
76 %attr(660,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
77 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf