A ".spec" for nsd, anyone?

Stephane Bortzmeyer bortzmeyer at nic.fr
Mon Feb 2 14:18:34 UTC 2004


On Wed, Oct 15, 2003 at 04:21:36PM +0200,
 Miek Gieben <miekg at atoom.net> wrote 
 a message of 77 lines which said:

> I'm made an effort once for nsd 1.0.2, haven't ported it to nsd1.2, we

Here is my version, which seems to work with nsd 1.2.4 (check
ns2.nic.fr, which just upgraded).
-------------- next part --------------
# converted from fluxbox spec file
%define name      nsd
%define version   1.2.4
%define release   1
%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:      makefile.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 -u < %_sourcedir/makefile.patch
./configure --prefix=%{_prefix} --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/%_prefix mandir=$RPM_BUILD_ROOT/%_mandir configdir=$RPM_BUILD_ROOT/etc/nsd 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
* 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



More information about the nsd-users mailing list