]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
09334141d93d7eff5913dccc90cf28f7d469bd63
[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:        1
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 URL:            http://home.t-online.de/home/Moestl/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  flex
15 PreReq:         /sbin/chkconfig
16 PreReq:         rc-scripts
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 dla us³ugi DNS, zapisujacym bufor ze
27 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
28 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
29 dialup).
30
31 %prep
32 %setup -q
33
34 %build
35 aclocal
36 autoconf
37 autoheader
38 automake -a -f
39 %configure \
40         --enable-ipv6
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
50 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
51         $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
52
53 gzip -9nf AUTHORS ChangeLog NEWS README TODO \
54         doc/txt/*.txt
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 /sbin/chkconfig --add pdnsd
61 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
62         /etc/rc.d/init.d/pdnsd restart >&2
63 else
64         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
65 fi
66
67 %preun
68 if [ "$1" = "0" ]; then
69         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
70                 /etc/rc.d/init.d/pdnsd stop
71         fi
72         /sbin/chkconfig --del pdnsd
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc {*,doc/txt/*}.gz doc/html/*.html
78 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
79 %attr(755,root,root) %{_sbindir}/pdnsd
80 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
81 %attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
82 %attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
83 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
This page took 0.064741 seconds and 2 git commands to generate.