nsd patch to support fedora rpm building

Hi,

Attached is a patch against nsd-2.3.1 that adds support for building
Fedora RPMS. It adds the directory packaging/fedora/ which contains the
spec file for building rpms and a nsd initscript for use on Fedora.

This was tested on Fedora Core 4 i386 and
x86_64. Source and binary rpms for FC4 are available at
ftp://ftp.xelerance.com/binaries/nsd/binaries/fedora/

You can add the repository for use with the Yum package manager by adding
the following in /etc/yum.conf or /etc/yum.repos.d/nsd.conf:

   [nsd]
   name=nsd - Fedora Core nsd packages
   baseurl=ftp://ftp.xelerance.com/mirror/otr/binaries/fedora/$releasever/$basearch/
      http://www.xelerance.com/mirror/otr/binaries/fedora/$releasever/$basearch/
   enabled=1
   # get the key for paul@cypherpunks.ca from a key server (eg pgpkeys.mit.edu)
   # or: finger paul@xelerance.com > nsdkey ; rpm --import nsdkey
   # and enable gpgcheck to verify the package
   gpgcheck=0

All source and binary rpms have been signed with my key
(paul@xelerance.com), available on key servers and by using 'finger
paul@xelerance.com'.

One note to the current 'make install' target. I could not use it since
it does not support installing into a "dist" directory. It only installs
files in "prefix". This makes the target unusable for rpm building, and
I had to replicate the 'make install' targets manually within the spec file.

If this patch is applied to the tree, it also requires that the build process
for the official nsd releases change the Version: and Release: values in
packaging/fedora/nsd.spec. Version: should be the nsd version, and Release
should be set to 1.

The rpm has been made according to the Fedora Extra Package guidelines,
so it should not be too hard to get it included into fedora extras
Though it takes some time to register and get a hang of the Fedora
Extra build and submission system. If the NSD team has no objections
to me submitting and maintaining the rpms for nsd in Fedora Extra's,
I'm happy to do so. As of Fedora Core 4, yum has the "fedora extra"
repositories enabled per default, so any FC4 installation could then
simple run 'yum install nsd' to obtain nsd for their host.

Regards,

Paul Wouters
Xelerance Corp.

(attachments)

nsd-2.3.1-fedora.patch (5.81 KB)

The correct paths for these are ofcourse:

   [nsd]
   name=nsd - Fedora Core nsd packages
   baseurl=ftp://ftp.xelerance.com/nsd/binaries/fedora/$releasever/$basearch/
   http://www.xelerance.com/nsd/binaries/fedora/$releasever/$basearch/

Paul

The spec file I submitted earlier is missing a BuildRequires for openssl-dev
and a Requires: for openssl.

This was not apparent on FC4, where these come in the base install.

Paul

I have added signed rpms for Fedora Core 3 now. i386 only, as Xen does not
yet run on the x86_64, and my x86_64 machine is running FC4.

The build version was bumped to 3 since the spec file had two minor changes
to fix missing dependancy requirements on opensssl and openssl-devel.

Paul
ps. I'll stop spamming the list now :slight_smile:

[On 05 Oct, @07:23, Paul Wouters wrote in "nsd patch to support fedora rp ..."]

Extra build and submission system. If the NSD team has no objections
to me submitting and maintaining the rpms for nsd in Fedora Extra's,
I'm happy to do so. As of Fedora Core 4, yum has the "fedora extra"

no objections here! Thanks for your effort,

grtz Miek