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