]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- partialy rewrited byt NYF.
[packages/pdnsd.git] / pdnsd.spec
1 Summary:        A caching dns proxy for small networks or dialin accounts
2 Name:           pdnsd
3 Version:        1.0.10
4 Release:        1
5 License:        GPL
6 Vendor:         Thomas Moestl
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
11 URL:            http://home.t-online.de/home/Moestl/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
16 ability to serve local records. It is designed to detect network
17 outages or hangups and to prevent DNS-dependent applications like
18 Netscape Navigator from hanging.
19
20 %prep
21 %setup -q
22
23 %build
24 %configure \
25         --enable-ipv6
26 %{__make}
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
31
32 %{__make} install \
33         DESTDIR=$RPM_BUILD_ROOT
34
35 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
36
37 gzip -9nf AUTHORS ChangeLog NEWS README TODO
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41                                                                                 
42 %post
43 /sbin/chkconfig --add pdnsd
44
45 %preun
46 if [ "$1" = "0" ]; then
47         /sbin/chkconfig --del pdnsd
48 fi
49
50 %files
51 %defattr(644,root,root,755)
52 %doc *.gz doc/html/index.html doc/html/dl.html doc/html/doc.html doc/html/faq.html
53 %doc doc/txt/intro.txt doc/txt/manual.txt doc/txt/faq.txt
54 %config %{_sysconfdir}/pdnsd.conf
55 %dir /var/cache/pdnsd
56
57 %attr(755,root,root) %{_sbindir}/pdnsd
58 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
This page took 0.025382 seconds and 4 git commands to generate.