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