[prev in list] [next in list] [prev in thread] [next in thread]
List: openpkg-cvs
Subject: [CVS] OpenPKG: openpkg-re/vcheck/ vc.nsd openpkg-src/nsd/ example.com ...
From: "Ralf S. Engelschall" <rse () openpkg ! org>
Date: 2003-02-27 21:05:23
[Download RAW message or body]
OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: rse@openpkg.org
Module: openpkg-src openpkg-web openpkg$ Date: 27-Feb-2003 22:05:23
Branch: HEAD Handle: 2003022721052002
Added files:
openpkg-re/vcheck vc.nsd
openpkg-src/nsd example.com fsl.nsd nsd.spec nsd.zones nsdc.conf
rc.nsd
Modified files:
openpkg-web news.txt
Log:
new package: nsd 1.0.2 (Name Server Daemon)
Summary:
Revision Changes Path
1.1 +9 -0 openpkg-re/vcheck/vc.nsd
1.1 +18 -0 openpkg-src/nsd/example.com
1.1 +16 -0 openpkg-src/nsd/fsl.nsd
1.1 +141 -0 openpkg-src/nsd/nsd.spec
1.1 +9 -0 openpkg-src/nsd/nsd.zones
1.1 +6 -0 openpkg-src/nsd/nsdc.conf
1.1 +23 -0 openpkg-src/nsd/rc.nsd
1.3485 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.nsd
============================================================================
$ cvs diff -u -r0 -r1.1 vc.nsd
--- /dev/null 2003-02-27 22:05:20.000000000 +0100
+++ vc.nsd 2003-02-27 22:05:20.000000000 +0100
@@ -0,0 +1,9 @@
+config = {
+}
+
+prog nsd = {
+ version = 1.0.2
+ url = http://www.nlnetlabs.nl/downloads/nsd/
+ regex = nsd-(__VER__)\.tar\.gz
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/example.com
============================================================================
$ cvs diff -u -r0 -r1.1 example.com
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ example.com 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,18 @@
+;
+; db.example -- zonefile for example.com zone
+;
+
+$TTL 86400
+
+@ IN SOA example.com. root.example.com. (
+ 2001010101 ; SERIAL
+ 6H ; REFRESH: Secondaries refresh
+ 60M ; RETRY: Secondaries retry
+ 1W ; EXPIRE: Maximum TTL of data (expiry)
+ 1D ; MINTTL: Minimum TTL of data (expiry)
+ )
+
+ IN NS 127.0.0.1
+
+www IN A 127.0.0.1
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/fsl.nsd
============================================================================
$ cvs diff -u -r0 -r1.1 fsl.nsd
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ fsl.nsd 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,16 @@
+##
+## fsl.nsd -- OSSP fsl configuration for NSD
+##
+
+ident (nsd)/.+ q{
+ prefix(
+ prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
+ )
+ -> {
+ debug: file(
+ path="@l_prefix@/var/nsd/nsd.log",
+ append=1, perm=0644
+ )
+ }
+};
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/nsd.spec
============================================================================
$ cvs diff -u -r0 -r1.1 nsd.spec
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ nsd.spec 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,141 @@
+##
+## nsd.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# FIXME rse: optional AXFR support via BIND8 named-xfer?
+# FIXME rse: optional libwrap support via {tcp,socket}_wrappers for AXFR
+
+# package information
+Name: nsd
+Summary: Name Server Daemon
+URL: http://www.nlnetlabs.nl/nsd/
+Vendor: NLNet Labs
+Packager: The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group: DNS
+License: GPL
+Version: 1.0.2
+Release: 20030227
+
+# list of sources
+Source0: http://www.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz
+Source1: rc.nsd
+Source2: nsd.zones
+Source3: nsdc.conf
+Source4: example.com
+Source5: fsl.nsd
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20030103, fsl, make
+PreReq: OpenPKG, openpkg >= 20030103, fsl
+AutoReq: no
+AutoReqProv: no
+
+%description
+ NSD is an authoritative only, high performance, simple name server.
+ It is especially intended to be run as a root nameserver and
+ actually is used for the Internet K-Root-Server driven by RIPE NCC.
+ It supports BIND-style zone files, but pre-compiles the DNS RRs into
+ packet format in a separate step.
+
+%prep
+ %setup -q
+
+%build
+ # build programs
+ %{l_make} %{l_mflags -O} \
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ NSDUSER="%{l_ruid}.%{l_rgid}" \
+ NAMEDXFER="%{l_prefix}/libexec/bind/named-xfer" \
+ NSDKEYSDIR="%{l_prefix}/etc/nsd/keys" \
+ PREFIX="%{l_prefix}" \
+ NSDZONESDIR="%{l_prefix}/etc/nsd" \
+ NSDZONES="%{l_prefix}/etc/nsd/nsd.zones" \
+ NSDDB="%{l_prefix}/var/nsd/nsd.db" \
+ NSDPIDFILE="%{l_prefix}/var/nsd/nsd.pid" \
+ FEATURES="-DLOG_NOTIFIES -DBIND8_STATS" \
+ LIBWRAP="`%{l_prefix}/bin/fsl-config --all --ldflags --libs`"
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+
+ # pre-create installation hierarchy
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.db \
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
+ $RPM_BUILD_ROOT%{l_prefix}/var/nsd
+
+ # perform default installation procedure
+ %{l_make} %{l_mflags} install \
+ PREFIX="$RPM_BUILD_ROOT%{l_prefix}" \
+ NSDZONESDIR="$RPM_BUILD_ROOT%{l_prefix}/etc/nsd" \
+ NSDZONES="$RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.zones" \
+ NSDDB="$RPM_BUILD_ROOT%{l_prefix}/var/nsd/nsd.db" \
+ NSDPIDFILE="$RPM_BUILD_ROOT%{l_prefix}/var/nsd/nsd.pid" \
+ INSTALL="%{l_shtool} install -c"
+
+ # install default configuration
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE nsdc.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE nsd.zones} $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE example.com} $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.db/
+
+ # install run-command script
+ %{l_shtool} install -c -m 755 \
+ -e 's;@l_prefix@;%{l_prefix};g' \
+ -e 's;@l_susr@;%{l_susr};g' \
+ %{SOURCE rc.nsd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+ # install fsl configuration file
+ %{l_shtool} install -c -m 644 \
+ -e 's;@l_prefix@;%{l_prefix};g' \
+ %{SOURCE fsl.nsd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
+
+ # strip installation
+ strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%not %dir %{l_prefix}/etc/rc.d' \
+ '%not %dir %{l_prefix}/etc/fsl' \
+ '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nsd'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
+%post
+ # update database
+ %{l_prefix}/sbin/nsdc rebuild
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/nsd.zones
============================================================================
$ cvs diff -u -r0 -r1.1 nsd.zones
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ nsd.zones 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,9 @@
+;;
+;; nsd.zones -- NSD Zones Configuration
+;;
+
+;zone name filename [ masters/notify ip-address ]
+zone example.com nsd.db/example.com
+;zone example.org nsd.db/example.org notify 192.168.0.1 192.168.0.2 192.168.0.3
+;zone example.net nsd.db/example.net masters 192.168.0.4
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/nsdc.conf
============================================================================
$ cvs diff -u -r0 -r1.1 nsdc.conf
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ nsdc.conf 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,6 @@
+##
+## nsdc.conf -- nsd control configuration
+##
+
+NSDFLAGS="-a 127.0.0.1 -p 53"
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/nsd/rc.nsd
============================================================================
$ cvs diff -u -r0 -r1.1 rc.nsd
--- /dev/null 2003-02-27 22:05:23.000000000 +0100
+++ rc.nsd 2003-02-27 22:05:23.000000000 +0100
@@ -0,0 +1,23 @@
+#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+## rc.nsd -- Run-Commands for NSD
+##
+
+%config
+ nsd_enable="yes"
+
+%start -p 100 -u @l_susr@
+ if opServiceEnabled nsd; then
+ @l_prefix@/sbin/nsdc start
+ fi
+
+%stop -p 200 -u @l_susr@
+ if opServiceEnabled nsd; then
+ @l_prefix@/sbin/nsdc stop
+ fi
+
+%reload -p 200 -u @l_susr@
+ if opServiceEnabled nsd; then
+ @l_prefix@/sbin/nsdc reload
+ fi
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.3484 -r1.3485 news.txt
--- openpkg-web/news.txt 27 Feb 2003 19:03:41 -0000 1.3484
+++ openpkg-web/news.txt 27 Feb 2003 21:05:21 -0000 1.3485
@@ -1,3 +1,4 @@
+27-Feb-2003: New package: P<nsd-1.0.2-20030227>
27-Feb-2003: Upgraded package: P<mysql4-4.0.11a-20030227>
27-Feb-2003: Upgraded package: P<unixodbc-2.2.5-20030227>
27-Feb-2003: Upgraded package: P<perl-mail-20030227-20030227>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic