source: hybrid/branches/releng-10/nanobsd/tools/make-release.sh@ 13911

Last change on this file since 13911 was 13911, checked in by rick, 8 years ago

Stripping the number of resolvers unbound can use.

Unbound does not handle multiple resolvers well it internal 'logic' keeps
pounding and checking all resolvers making it a very slow process. By limiting
the count of resolvers it sould be more happy.

Count limititing is done using two-phase approch, firstly the initial resolvers
are limited to a fixed set of resolvers, secondly the list is updated based on
the results of the zone inquiries.

While here, ensure the listen is set on dynamic ranges ensuring failing
interfaces will not bring down the DNS server.

Making the list more limited and based on active resolvers.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2# Small tool to build nanobsd release, ready for distribution:
3
4BASEDIR="`dirname $0`/.."
5
6# Some cleaning at start
7for PORT in ${BASEDIR}/misc/ports/*/*; do
8 (cd $PORT; make clean);
9done
10
11# Version target
12# Either version from command line or else subversion base
13VERSION=${1-`svn info ${BASEDIR} | awk '/Revision:/ {print $2}'`}
14
15TMPDIR=`mktemp -d -t $(basename $0 .sh)`
16
17PKGDIR=wl-image-$VERSION
18WRKSRC=$TMPDIR/$PKGDIR
19mkdir $WRKSRC
20cp -R ${BASEDIR}/tools $WRKSRC
21cp -R ${BASEDIR}/cfg $WRKSRC
22cp -R ${BASEDIR}/misc $WRKSRC
23cp -R ${BASEDIR}/files $WRKSRC
24cp -R ${BASEDIR}/README.txt $WRKSRC
25
26# Present real image
27# XXX: Make path relative
28# XXX: Find some pretty options
29IMG=/usr/obj/nanobsd.wleiden/_.disk.full
30IMG_DIR=`dirname ${IMG}`
31IMG_PKGDIR=${IMG_DIR}/${PKGDIR}
32mkdir ${IMG_PKGDIR}
33ln ${IMG} ${IMG_PKGDIR}/disk_full.img
34
35# Make pretty tar file out of it
36tar --exclude ".svn" --exclude "Makefile" \
37 --exclude "config.cache" --exclude "config.log" --exclude "config.status" \
38 --exclude ".depend" \
39 -cjf wl-image-$VERSION.tbz \
40 -C $TMPDIR \
41 $PKGDIR/tools \
42 $PKGDIR/cfg \
43 $PKGDIR/files \
44 $PKGDIR/misc \
45 $PKGDIR/README.txt \
46 -C $IMG_DIR \
47 $PKGDIR/disk_full.img
48
49rm -fR $TMPDIR
50rm -fR $IMG_PKGDIR
51
Note: See TracBrowser for help on using the repository browser.