nsd rpm

Farkas Levente lfarkas at bppiac.hu
Thu Oct 21 08:52:57 UTC 2004


and what is the nsd-notify-make.patch ?
would it be possible to include it in the upstream tar.gz?

Stephane Bortzmeyer wrote:
> On Wed, Oct 20, 2004 at 02:05:01PM +0200,
>  Farkas Levente <lfarkas at bppiac.hu> wrote 
>  a message of 12 lines which said:
> 
> 
>>is anybody create an rpm nsd especially on rhel 3?
> 
> 
> Here is the .spec I use on Tru64.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> # converted from fluxbox spec file
> %define name      nsd
> %define version   2.1.2
> %define release   2
> %define title     NSD
> %define summary   Small, fast, authoritative only nameserver
> 
> Summary:    %summary
> Name:       %name
> Version:    %version
> Release:    %release
> Group:      Network/Daemons
> License:    BSD
> URL:        http://www.nlnetlabs.nl/nsd
> 
> BuildRoot:  %_tmppath/%name-buildroot
> Prefix:     %_prefix
> 
> Source:     http://www.nlnetlabs.nl/downloads/nsd/%name-%version.tar.gz
> Patch:      nsd-notify-make.patch
> 
> %description
> NSD is a complete implementation of an authoritative DNS nameserver. 
> 
> NSD consists of two programs: the zone compiler 'zonec' 
> and the name server 'nsd' itself. The name server works with an 
> intermediate database prepared by the zone compiler from standard
> zone files. Most of the complexity in preparing answers is dealt
> with in zonec, such that the processing nsd has to do per query is 
> kept at the absolutely necessary minimum. 
> 
> 
> %prep
> rm -rf $RPM_BUILD_ROOT
> %setup 
> 
> %build
> patch -p0 < %_sourcedir/nsd-notify-make.patch
> ./configure --prefix=/usr/local --sbindir=/usr/local/sbin --with-pidfile=/var/run/nsd.pid --with-configdir=/etc/nsd --with-namedxfer=/usr/local/bind/sbin/named-xfer --with-dbfile=/var/nsd/nsd.db --with-zonesdir=/var/nsd --with-libwrap --enable-ipv6 --enable-bind8-stats --with-facility=LOG_LOCAL2
> make 
> 
> %install
> mkdir -p $RPM_BUILD_ROOT/%_mandir
> mkdir -p $RPM_BUILD_ROOT/var/nsd
> make prefix=$RPM_BUILD_ROOT exec_prefix=$RPM_BUILD_ROOT mandir=$RPM_BUILD_ROOT/%_mandir configdir=$RPM_BUILD_ROOT/etc/nsd sbindir=$RPM_BUILD_ROOT/usr/local/sbin configfile=$RPM_BUILD_ROOT/etc/nsd/nsdc.conf zonesfile=$RPM_BUILD_ROOT/etc/nsd/nsd.zones install
> 
> %clean 
> rm -rf $RPM_BUILD_ROOT
> 
> %files
> %defattr(-,root,root,0755) 
> %doc CREDITS DIFFERENCES README README.icc RELNOTES REQUIREMENTS TODO
> %_mandir/man8/nsd.8
> %_mandir/man8/nsdc.8
> %_mandir/man8/zonec.8
> %_sbindir/nsd
> %_sbindir/nsd-notify
> %_sbindir/nsdc
> %_sbindir/zonec
> %config /etc/nsd/*
> /var/nsd
> 
> %changelog
> * Tue Aug 3 2004 Stephane Bortzmeyer (bortzmeyer at nic.fr)
> - upgrade to nsd 2.1.2
> * Tue Jul 27  2004 Stephane Bortzmeyer (bortzmeyer at nic.fr)
> - upgrade to nsd 2
> * Mon Feb 2  2004 Stephane Bortzmeyer (bortzmeyer at nic.fr)
> - upgrade to nsd 1.2
> * Wed Apr 23  2003 Miek Gieben (miek at nlnetlabs.nl)
> - made this spec file


-- 
   Levente                               "Si vis pacem para bellum!"




More information about the nsd-users mailing list