Summary: A caching dns proxy for small networks or dialin accounts Summary(pl): DNS proxy serwer dla małej sieci lub jednostki z połączeniem dialup Name: pdnsd Version: 1.1.5 Release: 2 License: GPL Group: Networking/Daemons Group(de): Netzwerkwesen/Server Group(pl): Sieciowe/Serwery Vendor: Thomas Moestl Source0: http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2 Source1: %{name}.init Patch0: %{name}-typo.patch URL: http://home.t-online.de/home/Moestl/ BuildRequires: flex Prereq: rc-scripts Prereq: /sbin/chkconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl pdnsd jest serwerem proxy do usługi DNS zapisujacym bufor ze zgromadzonymi informacjami na dysku. Będzie on szczególnie użyteczny dla jednostki pracujacej w trybie off-line (np. poprzez połączenie dialup). %prep %setup -q %patch -p1 %build %configure \ --enable-ipv6 %{__make} %install %{__rm} -rf $RPM_BUILD_ROOT %{__install} -d $RPM_BUILD_ROOT/etc/rc.d/init.d %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__install} %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \ $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf %{__gzip} -9nf AUTHORS ChangeLog NEWS README TODO \ doc/txt/*.txt %clean %{__rm} -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add pdnsd if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then /etc/rc.d/init.d/pdnsd restart >&2 else echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2 fi %preun if [ "$1" = "0" ]; then if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then /etc/rc.d/init.d/pdnsd stop fi /sbin/chkconfig --del pdnsd fi %files %defattr(644,root,root,755) %doc {*,doc/txt/*}.gz doc/html/*.html %attr(754,root,root) /etc/rc.d/init.d/pdnsd %attr(755,root,root) %{_sbindir}/pdnsd %attr(755,root,root) %{_sbindir}/pdnsd-ctl %attr(770,nobody,nobody) %dir %{_var}/cache/pdnsd %attr(660,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf