1
# $Id: pdnsd.spec.in,v 1.9 2001/05/17 14:14:27 tmm Exp $
7
%define distro @distribution@
9
Summary: A caching dns proxy for small networks or dialin accounts
15
Source: %{name}-%{ver}.tar.gz
16
URL: http://home.t-online.de/home/Moestl/
18
Distribution: %{distro}
20
BuildRoot: /var/tmp/%{name}-%{ver}-%{rel}-rpm-buildroot
23
pdnsd is a proxy DNS daemon with permanent (disk-)cache and the ability
24
to serve local records. It is designed to detect network outages or hangups
25
and to prevent DNS-dependent applications like Netscape Navigator from hanging.
31
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --sysconfdir=%{confdir} --with-distribution=%{distro} --mandir=%{_mandir} --enable-specbuild=yes
35
%__make DESTDIR=${RPM_BUILD_ROOT} install; \
36
cp -f file-list.base file-list ; \
37
CURDIR=`pwd`; cd ${RPM_BUILD_ROOT} ; \
38
FILES=$(find . | sed 's/^\.//' \
39
| grep -v pdnsd.conf \
40
| grep -v '/usr/doc' \
41
| grep -v '/usr/share/doc' \
43
for FILE in $FILES; do \
44
if [ ! -d "$FILE" ] ; then \
45
if echo $FILE | grep -v '\.gz$' | grep -q man ; then \
48
echo $FILE >> $CURDIR/file-list ; \
53
if [ -O "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" -a "$RPM_BUILD_ROOT" != "$HOME" ]; then
54
echo "Deleting build root $RPM_BUILD_ROOT"
55
rm -rf "$RPM_BUILD_ROOT"
57
rm -rf ${RPM_BUILD_DIR}/%{name}-%{ver}
62
if [ "%{distro}" = "SuSE" -a -w /etc/rc.config ]; then
63
grep "START_PDNSD" /etc/rc.config > /dev/null
64
if [ $? -ne 0 ] ; then
66
"\n\n#\n# Set to yes to start pdnsd at boot time\n#\nSTART_PDNSD=yes" \
69
elif [ "%{distro}" = "RedHat" ]; then
71
/sbin/chkconfig --add pdnsd
76
if [ "%{distro}" = "RedHat" ]; then
78
/sbin/chkconfig --del pdnsd
83
if [ "%{distro}" = "RedHat" ]; then
85
/sbin/service pdnsd condrestart >/dev/null 2>&1
90
* Sun May 16 2001 Thomas Moestl <tmoestl@gmx.net>
91
- Make use of chkconfig for Red Hat (patch by Christian Engstler)
92
* Sun Mar 25 2001 Thomas Moestl <tmoestl@gmx.net>
93
- Merged SuSE fixes by Christian Engstler
94
* Fri Feb 09 2001 Thomas Moestl <tmoestl@gmx.net>
95
- Merged in a spec fix for mapage inclusion contributed by Sourav K.
97
* Sun Nov 26 2000 Thomas Moestl <tmoestl@gmx.net>
98
- Added some patches contributed by Bernd Leibing
99
* Tue Aug 15 2000 Thomas Moestl <tmoestl@gmx.net>
100
- Added the distro for configure
101
* Tue Jul 11 2000 Sourav K. Mandal <smandal@mit.edu>
102
- autoconf/automake modifications