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