]> git.pld-linux.org Git - packages/pdnsd.git/blame - pdnsd.spec
- updated to 1.2.6
[packages/pdnsd.git] / pdnsd.spec
CommitLineData
dbe438e2 1%define par par
4aa9b7eb 2Summary: A caching dns proxy for small networks or dialin accounts
b00e89ab 3Summary(pl.UTF-8): DNS proxy serwer dla małej sieci lub jednostki z połączeniem dialup
4aa9b7eb 4Name: pdnsd
39a34617 5Version: 1.2.6
6Release: 1
4aa9b7eb 7License: GPL
72626015 8Group: Networking/Daemons
94431927 9Source0: http://www.phys.uu.nl/~rombouts/pdnsd/releases/%{name}-%{version}-%{par}.tar.gz
39a34617 10# Source0-md5: 65c88e22152a885a0437578eedc8b118
8e605824 11Source1: %{name}.init
825baa1c 12Source2: %{name}.sysconfig
913c14f8 13Patch0: %{name}-threads_signals.patch
907cb677 14Patch1: %{name}-ac_am.patch
a86e398a 15Patch2: %{name}-query_roots_in_default_conf.patch
39a34617 16Patch3: %{name}-ipv6_pktinfo.patch
afe8359d
AM
17# Old URL: http://home.t-online.de/home/Moestl/
18URL: http://www.phys.uu.nl/~rombouts/pdnsd.html
959d93b2
JB
19BuildRequires: autoconf
20BuildRequires: automake
85351338 21BuildRequires: flex
dbe438e2
ER
22BuildRequires: rpmbuild(macros) >= 1.268
23Requires(post,preun): /sbin/chkconfig
24Requires(postun): /usr/sbin/groupdel
25Requires(postun): /usr/sbin/userdel
e44d0fe7
ER
26Requires(pre): /bin/id
27Requires(pre): /usr/bin/getgid
28Requires(pre): /usr/sbin/groupadd
29Requires(pre): /usr/sbin/useradd
dbe438e2 30Requires: rc-scripts
fe855ea1 31Provides: caching-nameserver
e44d0fe7 32Provides: group(pdnsd)
dbe438e2 33Provides: user(pdnsd)
fe855ea1 34Obsoletes: bind
35Obsoletes: maradns
36Obsoletes: maradns-zoneserver
061f8294 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4aa9b7eb 38
b294b2e1 39%description
4aa9b7eb 40pdnsd is a proxy DNS daemon with permanent (disk-)cache and the
41ability to serve local records. It is designed to detect network
42outages or hangups and to prevent DNS-dependent applications like
43Netscape Navigator from hanging.
44
901c24fb
JR
45%description -l pl.UTF-8
46pdnsd jest serwerem proxy dla usługi DNS, zapisującym bufor ze
47zgromadzonymi informacjami na dysku. Będzie on szczególnie użyteczny
48dla jednostki pracujacej w trybie off-line (np. poprzez połączenie
e405e30a 49dialup).
8e605824 50
b294b2e1 51%prep
4aa9b7eb 52%setup -q
afe8359d 53#%patch0 -p0
907cb677 54%patch1 -p1
a86e398a 55%patch2 -p1
39a34617 56%patch3 -p1
4aa9b7eb 57
b294b2e1 58%build
907cb677 59rm -fr src/rc
6954b699 60%{__aclocal}
2957b5a7 61%{__autoconf}
6954b699 62%{__autoheader}
2957b5a7 63%{__automake}
4aa9b7eb 64%configure \
94431927 65 --with-default-id=pdnsd \
afe8359d 66 --enable-ipv6 \
39a34617 67 --enable-tcp-subseq \
68 --with-query-method=udptcp \
94431927 69 --with-thread-lib=LinuxThreads2 \
39a34617 70 --with-random-device=/dev/urandom \
71 --with-par-queries=16
72
4aa9b7eb 73%{__make}
b294b2e1 74
75%install
24df0c3f 76rm -rf $RPM_BUILD_ROOT
825baa1c 77install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
4aa9b7eb 78
79997e1f
JB
79%{__make} install \
80 DESTDIR=$RPM_BUILD_ROOT
2957b5a7 81
24df0c3f 82install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
825baa1c
AM
83install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pdnsd
84
913c14f8 85mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
8e605824 86
4aa9b7eb 87%clean
24df0c3f 88rm -rf $RPM_BUILD_ROOT
de114e37 89
94431927 90%pre
e44d0fe7
ER
91%groupadd -g 140 pdnsd
92%useradd -u 140 -d /tmp -s /bin/false -c "pdnsd user" -g pdnsd pdnsd
94431927 93
4aa9b7eb 94%post
fafa8732 95/sbin/chkconfig --add pdnsd
dbe438e2 96%service pdnsd restart
b294b2e1 97
4aa9b7eb 98%preun
fafa8732 99if [ "$1" = "0" ]; then
dbe438e2 100 %service pdnsd stop
fafa8732 101 /sbin/chkconfig --del pdnsd
102fi
b294b2e1 103
94431927
AM
104%postun
105if [ "$1" = "0" ]; then
e44d0fe7
ER
106 %userremove pdnsd
107 %groupremove pdnsd
94431927
AM
108fi
109
b294b2e1 110%files
4aa9b7eb 111%defattr(644,root,root,755)
04ce2cea 112%doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
86bf0013 113%attr(754,root,root) /etc/rc.d/init.d/pdnsd
9a2662f7 114%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdnsd
8e605824 115%attr(755,root,root) %{_sbindir}/pdnsd
bfe767e3 116%attr(755,root,root) %{_sbindir}/pdnsd-ctl
94431927 117%attr(775,pdnsd,pdnsd) %dir %{_var}/cache/pdnsd
9a2662f7 118%attr(664,pdnsd,pdnsd) %config(noreplace) %verify(not md5 mtime size) %{_var}/cache/pdnsd/pdnsd.cache
119%attr(640,root,pdnsd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pdnsd.conf
94431927 120%{_mandir}/man[58]/*
This page took 0.085415 seconds and 4 git commands to generate.