]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- removed Obsoletes
[packages/pdnsd.git] / pdnsd.spec
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
3 Name:           pdnsd
4 Version:        1.1.7a
5 Release:        5
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
9 Source1:        %{name}.init
10 Patch0:         %{name}-threads_signals.patch
11 URL:            http://home.t-online.de/home/Moestl/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  flex
15 PreReq:         /sbin/chkconfig
16 PreReq:         rc-scripts
17 Provides:       caching-nameserver
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      bind
20 Obsoletes:      maradns
21 Obsoletes:      maradns-zoneserver
22
23 %description
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.
28
29 %description -l pl
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
33 dialup).
34
35 %prep
36 %setup -q
37 %patch0 -p0
38
39 %build
40 rm -f missing
41 %{__aclocal}
42 %{__autoconf}
43 %{__autoheader}
44 %{__automake}
45 %configure \
46         --enable-ipv6
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
56 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 /sbin/chkconfig --add pdnsd
63 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
64         /etc/rc.d/init.d/pdnsd restart >&2
65 else
66         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
67 fi
68
69 %preun
70 if [ "$1" = "0" ]; then
71         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
72                 /etc/rc.d/init.d/pdnsd stop
73         fi
74         /sbin/chkconfig --del pdnsd
75 fi
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
80 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
81 %attr(755,root,root) %{_sbindir}/pdnsd
82 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
83 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
84 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
85 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
86 %{_mandir}/man8/*
This page took 0.068634 seconds and 4 git commands to generate.