A ".spec" for nsd, anyone?

Miek Gieben miekg at atoom.net
Wed Oct 15 16:21:36 CEST 2003


[On 07 Oct, @14:12, Stephane wrote in "A ".spec" for nsd, anyone? ..."]
> I plan to install nsd (on Tru64 machines) with rpm instead of the old
> manual (configure && make && make install) method. There is apparently
> no ".spec" file in the distribution. Before I write one, did someone
> already do it?

I'm made an effort once for nsd 1.0.2, haven't ported it to nsd1.2, we
did use it to generate the source rpm which is the on the webpage.
(I you do change it/port it, please let us now. We will put it on
the website than)

Anyhow here it is:



# converted from fluxbox spec file
%define name      nsd
%define version   1.0.2
%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
make PREFIX=/usr

%install
mkdir -p $RPM_BUILD_ROOT/usr/etc
mkdir -p $RPM_BUILD_ROOT/%_mandir
make PREFIX=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/%_mandir install

%clean 
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755) 
%doc CREDITS DESIGN DIFFERENCES README RELNOTES REQUIREMENTS ROADMAP TODO
%_mandir/man8/nsd.8.gz
%_mandir/man8/nsdc.8.gz
%_mandir/man8/zonec.8.gz
%_sbindir/nsd
%_sbindir/nsd-notify
%_sbindir/nsdc
%_sbindir/zonec

%changelog
* Wed Apr 23  2003 Miek Gieben (miek at nlnetlabs.nl)
- made this spec file


More information about the nsd-users mailing list