]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- init file update (needs more work)
[packages/pdnsd.git] / pdnsd.spec
1 Summary:        A caching dns proxy for small networks or dialin accounts
2 Summary:        DNS proxy serwer dla ma³ej sieci lub jednostli z po³±czeniem dialup
3 Name:           pdnsd
4 Version:        1.1.2
5 Release:        1
6 License:        GPL
7 Vendor:         Thomas Moestl
8 Group:          Daemons
9 Group(de):      Server
10 Group(pl):      Serwery
11 Source0:        http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
12 Source1:        %{name}.init
13 BuildRequires:  flex
14 URL:            http://home.t-online.de/home/Moestl/
15 Prereq:         rc-scripts
16 Prereq:         /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
21 ability to serve local records. It is designed to detect network
22 outages or hangups and to prevent DNS-dependent applications like
23 Netscape Navigator from hanging.
24
25 %description -l pl
26 pdnsd jest serwerem proxy do us³ugi DNS zapisujacym bufor ze zgromadzony,mi
27 informacjami na dysku. Bêdzie on szczególnie u¿yteczny dla jednostki z
28 pracujacej w trybie off-line (np. poprzez po³±czenie dialup).
29
30 %prep
31 %setup -q
32
33 %build
34 %configure \
35         --enable-ipv6
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
46
47 mv $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
48         $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
49
50 gzip -9nf AUTHORS ChangeLog NEWS README TODO \
51         doc/txt/*.txt
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55                                                                                 
56 %post
57 /sbin/chkconfig --add pdnsd
58 if [ -f /var/lock/subsys/pdnsd ]; then
59         /etc/rc.d/init.d/pdnsd restart >&2
60 else
61         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
62 fi
63
64 %preun
65 if [ "$1" = "0" ]; then
66         if [ -f /var/lock/subsys/pdnsd ]; then
67                 /etc/rc.d/init.d/pdnsd stop
68         fi
69         /sbin/chkconfig --del pdnsd
70         rm -f /var/cache/pdnsd/pdnsd.cache
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc *.gz doc/txt/*.gz doc/html/index.html doc/html/dl.html doc/html/doc.html doc/html/faq.html
76 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
77 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pdnsd.conf
78 %attr(755,root,root) %{_sbindir}/pdnsd
79 %attr(770,nobody,nobody) %dir /var/cache/pdnsd
80 %attr(660, nobody, nobody) %config /var/cache/pdnsd/pdnsd.cache
This page took 0.059125 seconds and 4 git commands to generate.