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?

[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@nlnetlabs.nl)
- made this spec file

[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?

btw, we are checking right now why your mail has spend a week in hibernation...

grtz Miek

a message of 9 lines which said:

btw, we are checking right now why your mail has spend a week in hibernation...

A black helicopter carrying an "ISC" logo was seen over NLnetLabs
offices? They could do anything to prevent people from using something
else than BIND :slight_smile:

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).

(attachments)

nsd.spec (2.04 KB)

[On 02 Feb, @15:18, Stephane wrote in "Re: A ".spec" for nsd, anyone? ..."]