]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- release 2: adapterized.
[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.5
5 Release:        2
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Vendor:         Thomas Moestl
11 Source0:        http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
12 Source1:        %{name}.init
13 URL:            http://home.t-online.de/home/Moestl/
14 BuildRequires:  flex
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
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 %configure \
36         --enable-ipv6
37 %{__make}
38
39 %install
40 %{__rm} -rf $RPM_BUILD_ROOT
41 %{__install} -d $RPM_BUILD_ROOT/etc/rc.d/init.d
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45 %{__install} %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
46 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
47         $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
48
49 %{__gzip} -9nf AUTHORS ChangeLog NEWS README TODO \
50         doc/txt/*.txt
51
52 %clean
53 %{__rm} -rf $RPM_BUILD_ROOT
54                                                                                 
55 %post
56 /sbin/chkconfig --add pdnsd
57 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
58         /etc/rc.d/init.d/pdnsd restart >&2
59 else
60         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
61 fi
62
63 %preun
64 if [ "$1" = "0" ]; then
65         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
66                 /etc/rc.d/init.d/pdnsd stop
67         fi
68         /sbin/chkconfig --del pdnsd
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %doc {*,doc/txt/*}.gz doc/html/*.html
74 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
75 %attr(755,root,root) %{_sbindir}/pdnsd
76 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
77 %attr(770,nobody,nobody) %dir %{_var}/cache/pdnsd
78 %attr(660,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
79 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
This page took 0.063726 seconds and 4 git commands to generate.