wok-stable rev 1612

Add bind
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 19 20:03:27 2008 +0000 (2008-10-19)
parents f1d973413286
children fd43687faffa
files bind-client/receipt bind-dev/receipt bind/receipt bind/stuff/etc/bind/db.0 bind/stuff/etc/bind/db.127 bind/stuff/etc/bind/db.empty bind/stuff/etc/bind/db.local bind/stuff/etc/bind/named.conf bind/stuff/etc/bind/named.conf.local bind/stuff/etc/bind/named.conf.options bind/stuff/etc/bind/zones.rfc1918 bind/stuff/etc/init.d/named libbind/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bind-client/receipt	Sun Oct 19 20:03:27 2008 +0000
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="bind-client"
     1.7 +VERSION="9.5.0-P2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Domain Name System client."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.isc.org/products/BIND/"
    1.12 +DEPENDS="libbind"
    1.13 +WANTED="bind"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr
    1.19 +	cp -a $_pkg/usr/bin $fs/usr
    1.20 +}
    1.21 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/bind-dev/receipt	Sun Oct 19 20:03:27 2008 +0000
     2.3 @@ -0,0 +1,18 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="bind-dev"
     2.7 +VERSION="9.5.0-P2"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Domain Name System development files."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +WEB_SITE="http://www.isc.org/products/BIND/"
    2.12 +WANTED="bind"
    2.13 +
    2.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.15 +genpkg_rules()
    2.16 +{
    2.17 +	mkdir -p $fs/usr
    2.18 +	cp -a $_pkg/usr/lib/*a $fs/usr
    2.19 +	cp -a $_pkg/usr/include $fs/usr
    2.20 +}
    2.21 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/bind/receipt	Sun Oct 19 20:03:27 2008 +0000
     3.3 @@ -0,0 +1,41 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="bind"
     3.7 +VERSION="9.5.0-P2"
     3.8 +CATEGORY="network"
     3.9 +SHORT_DESC="Domain Name System daemon."
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.12 +WEB_SITE="http://www.isc.org/products/BIND/"
    3.13 +DEPENDS="libbind"
    3.14 +BUILD_DEPENDS="libtool"
    3.15 +WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL"
    3.16 +CONFIG_FILES="/etc/bind"
    3.17 +
    3.18 +# Rules to configure and make the package.
    3.19 +compile_rules()
    3.20 +{
    3.21 +	cd $src
    3.22 +	mkdir -p _pkg/etc/bind
    3.23 +	./configure --prefix=/usr --infodir=/usr/share/info \
    3.24 +	--sysconfdir=/etc/bind --localstatedir=/var --with-libtool \
    3.25 +	--mandir=/usr/share/man $CONFIGURE_ARGS && \
    3.26 +	make && make DESTDIR=$PWD/_pkg install && \
    3.27 +	LD_LIBRARY_PATH=$src/_pkg/usr/lib \
    3.28 +	_pkg/usr/bin/dig ns . @a.root-servers.net. > _pkg/etc/bind/db.root
    3.29 +}
    3.30 +
    3.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.32 +genpkg_rules()
    3.33 +{
    3.34 +	mkdir -p $fs/usr $fs/var/cache/bind
    3.35 +	cp -a $_pkg/usr/sbin $fs/usr
    3.36 +	cp -a $_pkg/etc $fs
    3.37 +	cp -a stuff/etc $fs
    3.38 +	# Package all bind pkgs
    3.39 +	for i in libbind $(cd $WOK; ls -d bind-*)
    3.40 +	do
    3.41 +		tazwok genpkg $i
    3.42 +	done
    3.43 +}
    3.44 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/bind/stuff/etc/bind/db.0	Sun Oct 19 20:03:27 2008 +0000
     4.3 @@ -0,0 +1,12 @@
     4.4 +;
     4.5 +; BIND reverse data file for broadcast zone
     4.6 +;
     4.7 +$TTL	604800
     4.8 +@	IN	SOA	localhost. root.localhost. (
     4.9 +			      1		; Serial
    4.10 +			 604800		; Refresh
    4.11 +			  86400		; Retry
    4.12 +			2419200		; Expire
    4.13 +			 604800 )	; Negative Cache TTL
    4.14 +;
    4.15 +@	IN	NS	localhost.
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/bind/stuff/etc/bind/db.127	Sun Oct 19 20:03:27 2008 +0000
     5.3 @@ -0,0 +1,13 @@
     5.4 +;
     5.5 +; BIND reverse data file for local loopback interface
     5.6 +;
     5.7 +$TTL	604800
     5.8 +@	IN	SOA	localhost. root.localhost. (
     5.9 +			      1		; Serial
    5.10 +			 604800		; Refresh
    5.11 +			  86400		; Retry
    5.12 +			2419200		; Expire
    5.13 +			 604800 )	; Negative Cache TTL
    5.14 +;
    5.15 +@	IN	NS	localhost.
    5.16 +1.0.0	IN	PTR	localhost.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/bind/stuff/etc/bind/db.empty	Sun Oct 19 20:03:27 2008 +0000
     6.3 @@ -0,0 +1,14 @@
     6.4 +; BIND reverse data file for empty rfc1918 zone
     6.5 +;
     6.6 +; DO NOT EDIT THIS FILE - it is used for multiple zones.
     6.7 +; Instead, copy it, edit named.conf, and use that copy.
     6.8 +;
     6.9 +$TTL	86400
    6.10 +@	IN	SOA	localhost. root.localhost. (
    6.11 +			      1		; Serial
    6.12 +			 604800		; Refresh
    6.13 +			  86400		; Retry
    6.14 +			2419200		; Expire
    6.15 +			  86400 )	; Negative Cache TTL
    6.16 +;
    6.17 +@	IN	NS	localhost.
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/bind/stuff/etc/bind/db.local	Sun Oct 19 20:03:27 2008 +0000
     7.3 @@ -0,0 +1,13 @@
     7.4 +;
     7.5 +; BIND data file for local loopback interface
     7.6 +;
     7.7 +$TTL	604800
     7.8 +@	IN	SOA	localhost. root.localhost. (
     7.9 +			      1		; Serial
    7.10 +			 604800		; Refresh
    7.11 +			  86400		; Retry
    7.12 +			2419200		; Expire
    7.13 +			 604800 )	; Negative Cache TTL
    7.14 +;
    7.15 +@	IN	NS	localhost.
    7.16 +@	IN	A	127.0.0.1
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/bind/stuff/etc/bind/named.conf	Sun Oct 19 20:03:27 2008 +0000
     8.3 @@ -0,0 +1,55 @@
     8.4 +// This is the primary configuration file for the BIND DNS server named.
     8.5 +//
     8.6 +// If you are just adding zones, please do that in /etc/bind/named.conf.local
     8.7 +
     8.8 +include "/etc/bind/named.conf.options";
     8.9 +
    8.10 +// Allow control by rndc tool
    8.11 +include "/etc/bind/rndc.key";
    8.12 +controls {
    8.13 +   inet 127.0.0.1 port 953 allow { any; } keys { "rndc-key"; };
    8.14 +};
    8.15 +
    8.16 +// prime the server with knowledge of the root servers
    8.17 +zone "." {
    8.18 +	type hint;
    8.19 +	file "/etc/bind/db.root";
    8.20 +};
    8.21 +
    8.22 +// be authoritative for the localhost forward and reverse zones, and for
    8.23 +// broadcast zones as per RFC 1912
    8.24 +
    8.25 +zone "localhost" {
    8.26 +	type master;
    8.27 +	file "/etc/bind/db.local";
    8.28 +};
    8.29 +
    8.30 +zone "127.in-addr.arpa" {
    8.31 +	type master;
    8.32 +	file "/etc/bind/db.127";
    8.33 +};
    8.34 +
    8.35 +zone "0.in-addr.arpa" {
    8.36 +	type master;
    8.37 +	file "/etc/bind/db.0";
    8.38 +};
    8.39 +
    8.40 +zone "255.in-addr.arpa" {
    8.41 +	type master;
    8.42 +	file "/etc/bind/db.255";
    8.43 +};
    8.44 +
    8.45 +// zone "com" { type delegation-only; };
    8.46 +// zone "net" { type delegation-only; };
    8.47 +
    8.48 +// From the release notes:
    8.49 +//  Because many of our users are uncomfortable receiving undelegated answers
    8.50 +//  from root or top level domains, other than a few for whom that behaviour
    8.51 +//  has been trusted and expected for quite some length of time, we have now
    8.52 +//  introduced the "root-delegations-only" feature which applies delegation-only
    8.53 +//  logic to all top level domains, and to the root domain.  An exception list
    8.54 +//  should be specified, including "MUSEUM" and "DE", and any other top level
    8.55 +//  domains from whom undelegated responses are expected and trusted.
    8.56 +// root-delegation-only exclude { "DE"; "MUSEUM"; };
    8.57 +
    8.58 +include "/etc/bind/named.conf.local";
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/bind/stuff/etc/bind/named.conf.local	Sun Oct 19 20:03:27 2008 +0000
     9.3 @@ -0,0 +1,8 @@
     9.4 +//
     9.5 +// Do any local configuration here
     9.6 +//
     9.7 +
     9.8 +// Consider adding the 1918 zones here, if they are not used in your
     9.9 +// organization
    9.10 +//include "/etc/bind/zones.rfc1918";
    9.11 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/bind/stuff/etc/bind/named.conf.options	Sun Oct 19 20:03:27 2008 +0000
    10.3 @@ -0,0 +1,24 @@
    10.4 +options {
    10.5 +	directory "/var/cache/bind";
    10.6 +
    10.7 +	// If there is a firewall between you and nameservers you want
    10.8 +	// to talk to, you might need to uncomment the query-source
    10.9 +	// directive below.  Previous versions of BIND always asked
   10.10 +	// questions using port 53, but BIND 8.1 and later use an unprivileged
   10.11 +	// port by default.
   10.12 +
   10.13 +	// query-source address * port 53;
   10.14 +
   10.15 +	// If your ISP provided one or more IP addresses for stable 
   10.16 +	// nameservers, you probably want to use them as forwarders.  
   10.17 +	// Uncomment the following block, and insert the addresses replacing 
   10.18 +	// the all-0's placeholder.
   10.19 +
   10.20 +	// forwarders {
   10.21 +	// 	0.0.0.0;
   10.22 +	// };
   10.23 +
   10.24 +	auth-nxdomain no;    # conform to RFC1035
   10.25 +	listen-on-v6 { any; };
   10.26 +};
   10.27 +
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/bind/stuff/etc/bind/zones.rfc1918	Sun Oct 19 20:03:27 2008 +0000
    11.3 @@ -0,0 +1,20 @@
    11.4 +zone "10.in-addr.arpa"      { type master; file "/etc/bind/db.empty"; };
    11.5 + 
    11.6 +zone "16.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
    11.7 +zone "17.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
    11.8 +zone "18.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
    11.9 +zone "19.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.10 +zone "20.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.11 +zone "21.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.12 +zone "22.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.13 +zone "23.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.14 +zone "24.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.15 +zone "25.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.16 +zone "26.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.17 +zone "27.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.18 +zone "28.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.19 +zone "29.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.20 +zone "30.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.21 +zone "31.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
   11.22 +
   11.23 +zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/bind/stuff/etc/init.d/named	Sun Oct 19 20:03:27 2008 +0000
    12.3 @@ -0,0 +1,61 @@
    12.4 +#!/bin/sh
    12.5 +# /etc/init.d/named: Start, stop and restart Named deamon on SliTaz, at boot
    12.6 +# time or with the command line.
    12.7 +#
    12.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
    12.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
   12.10 +#
   12.11 +. /etc/init.d/rc.functions
   12.12 +. /etc/daemons.conf
   12.13 +
   12.14 +NAME=Named
   12.15 +DESC="Named deamon"
   12.16 +DAEMON=/usr/sbin/named
   12.17 +OPTIONS=$NAMED_OPTIONS
   12.18 +PIDFILE=/var/run/named.pid
   12.19 +#[ -n "$OPTIONS" ] || OPTIONS="-u nobody"
   12.20 +[ -f /etc/bind/rndc.key ] || rndc-confgen -r /dev/urandom -a
   12.21 +
   12.22 +case "$1" in
   12.23 +  start)
   12.24 +    if [ -f $PIDFILE ] ; then
   12.25 +      echo "$NAME already running."
   12.26 +      exit 1
   12.27 +    fi
   12.28 +    echo -n "Starting $DESC: $NAME... "
   12.29 +    $DAEMON $OPTIONS 
   12.30 +    status
   12.31 +    ;;
   12.32 +  stop)
   12.33 +    if [ ! -f $PIDFILE ] ; then
   12.34 +      echo "$NAME is not running."
   12.35 +      exit 1
   12.36 +    fi
   12.37 +    echo -n "Stopping $DESC: $NAME... "
   12.38 +    /usr/sbin/rndc stop
   12.39 +    status
   12.40 +    ;;
   12.41 +  reload)
   12.42 +    /usr/sbin/rndc reload
   12.43 +    status
   12.44 +    ;;
   12.45 +  restart)
   12.46 +    if [ ! -f $PIDFILE ] ; then
   12.47 +      echo "$NAME is not running."
   12.48 +      exit 1
   12.49 +    fi
   12.50 +    echo -n "Restarting $DESC: $NAME... "
   12.51 +    /usr/sbin/rndc stop
   12.52 +    sleep 2
   12.53 +    $DAEMON $OPTIONS
   12.54 +    status
   12.55 +    ;;
   12.56 +  *)
   12.57 +    echo ""
   12.58 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|reload|restart]"
   12.59 +    echo ""
   12.60 +    exit 1
   12.61 +    ;;
   12.62 +esac
   12.63 +
   12.64 +exit 0
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/libbind/receipt	Sun Oct 19 20:03:27 2008 +0000
    13.3 @@ -0,0 +1,17 @@
    13.4 +# SliTaz package receipt.
    13.5 +
    13.6 +PACKAGE="libbind"
    13.7 +VERSION="9.5.0-P2"
    13.8 +CATEGORY="development"
    13.9 +SHORT_DESC="Domain Name System shared libraries."
   13.10 +MAINTAINER="pascal.bellard@slitaz.org"
   13.11 +WEB_SITE="http://www.isc.org/products/BIND/"
   13.12 +WANTED="bind"
   13.13 +
   13.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
   13.15 +genpkg_rules()
   13.16 +{
   13.17 +	mkdir -p $fs/usr/lib
   13.18 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
   13.19 +}
   13.20 +