]> git.pld-linux.org Git - packages/pdnsd.git/blob - pdnsd.spec
- added typo patch with fix typo in src/dns.c (s/sizof/sizeof/).
[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 Patch0:         %{name}-typo.patch
14 URL:            http://home.t-online.de/home/Moestl/
15 BuildRequires:  flex
16 Prereq:         rc-scripts
17 Prereq:         /sbin/chkconfig
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
22 ability to serve local records. It is designed to detect network
23 outages or hangups and to prevent DNS-dependent applications like
24 Netscape Navigator from hanging.
25
26 %description -l pl
27 pdnsd jest serwerem proxy do us³ugi DNS zapisujacym bufor ze
28 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
29 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
30 dialup).
31
32 %prep
33 %setup -q
34 %patch -p1
35
36 %build
37 %configure \
38         --enable-ipv6
39 %{__make}
40
41 %install
42 %{__rm} -rf $RPM_BUILD_ROOT
43 %{__install} -d $RPM_BUILD_ROOT/etc/rc.d/init.d
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47 %{__install} %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
48 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
49         $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
50
51 %{__gzip} -9nf AUTHORS ChangeLog NEWS README TODO \
52         doc/txt/*.txt
53
54 %clean
55 %{__rm} -rf $RPM_BUILD_ROOT
56                                                                                 
57 %post
58 /sbin/chkconfig --add pdnsd
59 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
60         /etc/rc.d/init.d/pdnsd restart >&2
61 else
62         echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
63 fi
64
65 %preun
66 if [ "$1" = "0" ]; then
67         if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
68                 /etc/rc.d/init.d/pdnsd stop
69         fi
70         /sbin/chkconfig --del pdnsd
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc {*,doc/txt/*}.gz doc/html/*.html
76 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
77 %attr(755,root,root) %{_sbindir}/pdnsd
78 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
79 %attr(770,nobody,nobody) %dir %{_var}/cache/pdnsd
80 %attr(660,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
81 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
This page took 0.056126 seconds and 4 git commands to generate.