]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[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 Vendor:         Thomas Moestl
9 Source0:        http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
10 Source1:        %{name}.init
11 Patch0:         %{name}-threads_signals.patch
12 URL:            http://home.t-online.de/home/Moestl/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  flex
16 PreReq:         /sbin/chkconfig
17 PreReq:         rc-scripts
18 Provides:       caching-nameserver
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      bind
21 Obsoletes:      maradns
22 Obsoletes:      maradns-zoneserver
23
24 %description
25 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
26 ability to serve local records. It is designed to detect network
27 outages or hangups and to prevent DNS-dependent applications like
28 Netscape Navigator from hanging.
29
30 %description -l pl
31 pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
32 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
33 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
34 dialup).
35
36 %prep
37 %setup -q
38 %patch0 -p0
39
40 %build
41 rm -f missing
42 %{__aclocal}
43 %{__autoconf}
44 %{__autoheader}
45 %{__automake}
46 %configure \
47         --enable-ipv6
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
53
54 %{__make} install DESTDIR=$RPM_BUILD_ROOT
55
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
57 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 /sbin/chkconfig --add pdnsd
64 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
65         /etc/rc.d/init.d/pdnsd restart >&2
66 else
67         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
68 fi
69
70 %preun
71 if [ "$1" = "0" ]; then
72         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
73                 /etc/rc.d/init.d/pdnsd stop
74         fi
75         /sbin/chkconfig --del pdnsd
76 fi
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
81 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
82 %attr(755,root,root) %{_sbindir}/pdnsd
83 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
84 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
85 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
86 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
87 %{_mandir}/man8/*
This page took 0.069418 seconds and 4 git commands to generate.