Browse Source

upgrading package: nsd 1.0.2 -> 1.1.0b

master
parent
commit
4e0f82831f
  1. 13
      nsd/nsd.conf
  2. 38
      nsd/nsd.patch
  3. 71
      nsd/nsd.spec
  4. 6
      nsd/nsdc.conf

13
nsd/nsd.conf

@ -0,0 +1,13 @@
##
## nsd.conf -- NSD configuration
##
flags="-a 127.0.0.1 -p 53"
configdir="@l_prefix@/etc/nsd"
sbindir="@l_prefix@/sbin"
dbfile="@l_prefix@/var/nsd/nsd.db"
zonesfile="@l_prefix@/etc/nsd/nsd.zones"
keysdir="@l_prefix@/etc/nsd/keys"
notify="@l_prefix@/sbin/nsd-notify"
namedxfer="@l_prefix@/libexec/bind/named-xfer"

38
nsd/nsd.patch

@ -1,38 +0,0 @@
--- nsd.c 17 Dec 2002 14:42:06 -0000 1.56.2.10
+++ nsd.c 12 Feb 2003 09:19:50 -0000
@@ -159,6 +159,7 @@
signal(SIGINT, &sig_handler);
signal(SIGILL, &sig_handler);
signal(SIGALRM, &sig_handler);
+ signal(SIGPIPE, SIG_IGN);
/* Are we a tcp child? */
@@ -566,6 +567,7 @@
signal(SIGINT, &sig_handler);
signal(SIGILL, &sig_handler);
signal(SIGALRM, &sig_handler);
+ signal(SIGPIPE, SIG_IGN);
/* Get our process id */
nsd.pid[0] = getpid();
diff -u -r1.83 query.c
--- query.c 14 Oct 2002 13:12:16 -0000 1.83
+++ query.c 18 Feb 2003 10:46:11 -0000
@@ -145,11 +145,13 @@
/* Truncate */
if(d && DOMAIN_FLAGS(d) & NAMEDB_DELEGATION) {
- ANCOUNT(q) = NSCOUNT(q);
+ ANCOUNT(q) = htons(ntohs(NSCOUNT(q)) + ntohs(ARCOUNT(q)));
+ } else {
+ q->iobufptr = qptr + ANSWER_RRS(a, ntohs(ANCOUNT(q)));
}
- NSCOUNT(q) = 0;
+
ARCOUNT(q) = 0;
- q->iobufptr = qptr + ANSWER_RRS(a, ntohs(ANCOUNT(q)));
+ NSCOUNT(q) = 0;
/* More data... */
return 1;

71
nsd/nsd.spec

@ -35,23 +35,25 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [EVAL]
Group: DNS
License: GPL
Version: 1.0.2
Release: 20030413
Version: 1.1.0b
Release: 20030416
# package option
%option with_fsl yes
# list of sources
Source0: http://www.nlnetlabs.nl/downloads/nsd/nsd-%{version}.tar.gz
Source1: rc.nsd
Source2: nsd.zones
Source3: nsdc.conf
Source3: nsd.conf
Source4: example.com
Source5: fsl.nsd
Patch0: nsd.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20030103, fsl, make
PreReq: OpenPKG, openpkg >= 20030103, fsl
BuildPreReq: OpenPKG, openpkg >= 20030415, fsl, make
PreReq: OpenPKG, openpkg >= 20030415, fsl
AutoReq: no
AutoReqProv: no
@ -64,23 +66,29 @@ AutoReqProv: no
%prep
%setup -q
%patch -p0
%build
# configure programs
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LDFLAGS="%{l_ldflags}" \
./configure \
--prefix=%{l_prefix} \
--with-configdir=%{l_prefix}/etc/nsd \
--with-configfile=%{l_prefix}/etc/nsd/nsd.conf \
--with-pidfile=%{l_prefix}/var/nsd/nsd.pid \
--with-zonesdir=%{l_prefix}/etc/nsd \
--with-zonesfile=%{l_prefix}/etc/nsd/nsd.zones \
--with-dbfile=%{l_prefix}/var/nsd/nsd.db \
--with-user="%{l_ruid}.%{l_rgid}" \
--with-namedxfer=%{l_prefix}/libexec/bind/named-xfer \
--with-libwrap="%{l_fsl_ldflags} %{l_fsl_libs}" \
--enable-bind8-stats \
--disable-shared \
--disable-nls
# 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`"
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
@ -96,17 +104,25 @@ AutoReqProv: no
# 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"
prefix=$RPM_BUILD_ROOT%{l_prefix} \
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
configdir=$RPM_BUILD_ROOT%{l_prefix}/etc/nsd \
configfile=$RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.conf \
pidfile=$RPM_BUILD_ROOT%{l_prefix}/var/nsd/nsd.pid \
zonesdir=$RPM_BUILD_ROOT%{l_prefix}/etc/nsd \
zonesfile=$RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.zones \
dbfile=$RPM_BUILD_ROOT%{l_prefix}/var/nsd/nsd.db
# post-adjustments
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.zones.sample
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/nsd.conf.sample
# install default configuration
%{l_shtool} install -c -m 644 \
%{SOURCE nsdc.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/
-e 's;@l_prefix@;%{l_prefix};g' \
%{SOURCE nsd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/nsd/
%{l_shtool} install -c -m 644 \
-e 's;@l_prefix@;%{l_prefix};g' \
%{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/
@ -128,6 +144,7 @@ AutoReqProv: no
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/nsd/*' \
'%not %dir %{l_prefix}/etc/rc.d' \
'%not %dir %{l_prefix}/etc/fsl' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/nsd'

6
nsd/nsdc.conf

@ -1,6 +0,0 @@
##
## nsdc.conf -- nsd control configuration
##
NSDFLAGS="-a 127.0.0.1 -p 53"
Loading…
Cancel
Save