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
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
11 Source0: http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
13 Patch0: %{name}-automake.patch
14 Patch1: %{name}-confdir.patch
15 URL: http://home.t-online.de/home/Moestl/
16 BuildRequires: autoconf
17 BuildRequires: automake
19 Prereq: /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
25 ability to serve local records. It is designed to detect network
26 outages or hangups and to prevent DNS-dependent applications like
27 Netscape Navigator from hanging.
30 pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
31 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
32 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
54 DESTDIR=$RPM_BUILD_ROOT
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
56 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
57 $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
59 gzip -9nf AUTHORS ChangeLog NEWS README TODO \
63 rm -rf $RPM_BUILD_ROOT
66 /sbin/chkconfig --add pdnsd
67 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
68 /etc/rc.d/init.d/pdnsd restart >&2
70 echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
74 if [ "$1" = "0" ]; then
75 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
76 /etc/rc.d/init.d/pdnsd stop
78 /sbin/chkconfig --del pdnsd
82 %defattr(644,root,root,755)
83 %doc {*,doc/txt/*}.gz doc/html/*.html
84 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
85 %attr(755,root,root) %{_sbindir}/pdnsd
86 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
87 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
88 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
89 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf