]>
Commit | Line | Data |
---|---|---|
4aa9b7eb | 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 | ||
b294b2e1 | 14 | %description |
4aa9b7eb | 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 | ||
b294b2e1 | 20 | %prep |
4aa9b7eb | 21 | %setup -q |
22 | ||
b294b2e1 | 23 | %build |
4aa9b7eb | 24 | %configure \ |
25 | --enable-ipv6 | |
26 | %{__make} | |
b294b2e1 | 27 | |
28 | %install | |
4aa9b7eb | 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 | |
b294b2e1 | 34 | |
4aa9b7eb | 35 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd |
b294b2e1 | 36 | |
4aa9b7eb | 37 | gzip -9nf AUTHORS ChangeLog NEWS README TODO |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
b294b2e1 | 41 | |
4aa9b7eb | 42 | %post |
b294b2e1 | 43 | /sbin/chkconfig --add pdnsd |
b294b2e1 | 44 | |
4aa9b7eb | 45 | %preun |
46 | if [ "$1" = "0" ]; then | |
47 | /sbin/chkconfig --del pdnsd | |
48 | fi | |
b294b2e1 | 49 | |
50 | %files | |
4aa9b7eb | 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 | |
b294b2e1 | 53 | %doc doc/txt/intro.txt doc/txt/manual.txt doc/txt/faq.txt |
4aa9b7eb | 54 | %config %{_sysconfdir}/pdnsd.conf |
b294b2e1 | 55 | %dir /var/cache/pdnsd |
56 | ||
4aa9b7eb | 57 | %attr(755,root,root) %{_sbindir}/pdnsd |
58 | %attr(754,root,root) /etc/rc.d/init.d/pdnsd |