]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- release 2
[packages/pdnsd.git] / pdnsd.spec
1 # TODO: nobody MUST NOT own any files!
2 Summary:        A caching dns proxy for small networks or dialin accounts
3 Summary(pl):    DNS proxy serwer dla ma³ej sieci lub jednostki z po³±czeniem dialup
4 Name:           pdnsd
5 Version:        1.1.8b1
6 Release:        0.par8.2
7 License:        GPL
8 Group:          Networking/Daemons
9 Source0:        http://www.phys.uu.nl/~rombouts/pdnsd/%{name}-%{version}-par8.tar.gz
10 # Source0-md5:  00847e63641e241f07687387e0c2c1b4
11 Source1:        %{name}.init
12 Patch0:         %{name}-threads_signals.patch
13 Patch1:         %{name}-ac_am.patch
14 # Old URL:      http://home.t-online.de/home/Moestl/
15 URL:            http://www.phys.uu.nl/~rombouts/pdnsd.html
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  flex
19 PreReq:         rc-scripts
20 Requires(post,preun):   /sbin/chkconfig
21 Provides:       caching-nameserver
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Obsoletes:      bind
24 Obsoletes:      maradns
25 Obsoletes:      maradns-zoneserver
26
27 %description
28 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
29 ability to serve local records. It is designed to detect network
30 outages or hangups and to prevent DNS-dependent applications like
31 Netscape Navigator from hanging.
32
33 %description -l pl
34 pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
35 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
36 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
37 dialup).
38
39 %prep
40 %setup -q
41 #%patch0 -p0
42 %patch1 -p1
43
44 %build
45 rm -f missing
46 rm -fr src/rc
47 %{__aclocal}
48 %{__autoconf}
49 %{__autoheader}
50 %{__automake}
51 %configure \
52         --enable-ipv6 \
53         --with-thread-lib=LinuxThreads2
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
64 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/chkconfig --add pdnsd
71 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
72         /etc/rc.d/init.d/pdnsd restart >&2
73 else
74         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
75 fi
76
77 %preun
78 if [ "$1" = "0" ]; then
79         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
80                 /etc/rc.d/init.d/pdnsd stop
81         fi
82         /sbin/chkconfig --del pdnsd
83 fi
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
88 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
89 %attr(755,root,root) %{_sbindir}/pdnsd
90 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
91 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
92 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
93 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
94 %{_mandir}/man8/*
This page took 0.104638 seconds and 3 git commands to generate.