[nsd-users] [NLnet Labs Maintainers] NSD 3.2.2 release [critical]

Stephane Bortzmeyer bortzmeyer at nic.fr
Wed May 20 21:39:30 UTC 2009


On Mon, May 18, 2009 at 08:46:13PM -0400,
 Brad <brad at comstyle.com> wrote 
 a message of 45 lines which said:

> Did the same thing for OpenBSD otherwise the build fails.. 

Also for Gentoo. Here is the patch I used and the ebuild (Gentoo
package description) which seems to work.

********************** dir.patch ***********************

--- Makefile.in.orig    2009-05-20 23:26:57.000000000 +0200
+++ Makefile.in 2009-05-20 23:29:03.000000000 +0200
@@ -318,8 +318,6 @@
 install: all
        $(INSTALL) -d $(DESTDIR)$(sbindir)
        $(INSTALL) -d $(DESTDIR)$(configdir)
-       $(INSTALL) -d $(DESTDIR)$(piddir)
-       $(INSTALL) -d $(DESTDIR)$(dbdir)
        $(INSTALL) -d $(DESTDIR)$(mandir)
        $(INSTALL) -d $(DESTDIR)$(mandir)/man8
        $(INSTALL) -d $(DESTDIR)$(mandir)/man5

******************** nsd ebuild ********************

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="an authoritative only, high performance, open source name
server"
HOMEPAGE="http://www.nlnetlabs.nl/nsd/"
SRC_URI="http://www.nlnetlabs.nl/downloads/nsd/${P}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="bind8-stats checking dnssec ipv6 nsid root-server ssl tcpd tsig"

DEPEND="ssl? ( >=dev-libs/openssl-0.9.7i )
        tcpd? ( sys-apps/tcp-wrappers )"

pkg_setup() {
        enewuser nsd -1 -1 /var/lib/nsd
}

src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}/${P}-dir.patch"
}

src_compile() {
        econf \
                --with-user=nsd \
                --with-dbfile=/var/lib/nsd/nsd.db \
                --with-pidfile=/var/run/nsd/nsd.pid \
                --with-zonesdir=/var/lib/nsd \
                $(use_enable bind8-stats) \
                $(use_enable checking) \
                $(use_enable dnssec) \
                $(use_enable ipv6) \
                $(use_enable nsid) \
                $(use_enable root-server) \
                $(use_with ssl) \
                $(use_enable tsig) || die "econf failed"

        emake || die "emake failed"
}

src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"

        dodoc \
                DIFFERENCES \
                NSD-DATABASE \
                README \
                README.icc \
                RELNOTES \
                REQUIREMENTS \
                CREDITS \
                TODO

        dobin nsdc.sh

        exeinto /etc/cron.hourly
        newexe "${FILESDIR}"/nsd.cron nsd.cron

        newinitd "${FILESDIR}"/nsd.initd nsd

        keepdir /var/run/nsd
        fowners nsd /var/run/nsd
        fperms 750 /var/run/nsd

        keepdir /var/lib/nsd
        fowners nsd /var/lib/nsd
        fperms 750 /var/lib/nsd
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20090520/226277f1/attachment.bin>


More information about the nsd-users mailing list