# HG changeset patch # User Pascal Bellard # Date 1224446607 0 # Node ID 43ae0b5f0a8a296d3aefab78e829c7c8cb3a0f63 # Parent f1d9734132861fc7021781cc50d5811af9c600a9 Add bind diff -r f1d973413286 -r 43ae0b5f0a8a bind-client/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind-client/receipt Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="bind-client" +VERSION="9.5.0-P2" +CATEGORY="network" +SHORT_DESC="Domain Name System client." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.isc.org/products/BIND/" +DEPENDS="libbind" +WANTED="bind" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr +} + diff -r f1d973413286 -r 43ae0b5f0a8a bind-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind-dev/receipt Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="bind-dev" +VERSION="9.5.0-P2" +CATEGORY="development" +SHORT_DESC="Domain Name System development files." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.isc.org/products/BIND/" +WANTED="bind" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/lib/*a $fs/usr + cp -a $_pkg/usr/include $fs/usr +} + diff -r f1d973413286 -r 43ae0b5f0a8a bind/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/receipt Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="bind" +VERSION="9.5.0-P2" +CATEGORY="network" +SHORT_DESC="Domain Name System daemon." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.isc.org/products/BIND/" +DEPENDS="libbind" +BUILD_DEPENDS="libtool" +WGET_URL="http://ftp.isc.org/isc/bind9/$VERSION/$TARBALL" +CONFIG_FILES="/etc/bind" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir -p _pkg/etc/bind + ./configure --prefix=/usr --infodir=/usr/share/info \ + --sysconfdir=/etc/bind --localstatedir=/var --with-libtool \ + --mandir=/usr/share/man $CONFIGURE_ARGS && \ + make && make DESTDIR=$PWD/_pkg install && \ + LD_LIBRARY_PATH=$src/_pkg/usr/lib \ + _pkg/usr/bin/dig ns . @a.root-servers.net. > _pkg/etc/bind/db.root +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/var/cache/bind + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/etc $fs + cp -a stuff/etc $fs + # Package all bind pkgs + for i in libbind $(cd $WOK; ls -d bind-*) + do + tazwok genpkg $i + done +} + diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/db.0 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/db.0 Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,12 @@ +; +; BIND reverse data file for broadcast zone +; +$TTL 604800 +@ IN SOA localhost. root.localhost. ( + 1 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS localhost. diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/db.127 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/db.127 Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,13 @@ +; +; BIND reverse data file for local loopback interface +; +$TTL 604800 +@ IN SOA localhost. root.localhost. ( + 1 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS localhost. +1.0.0 IN PTR localhost. diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/db.empty --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/db.empty Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,14 @@ +; BIND reverse data file for empty rfc1918 zone +; +; DO NOT EDIT THIS FILE - it is used for multiple zones. +; Instead, copy it, edit named.conf, and use that copy. +; +$TTL 86400 +@ IN SOA localhost. root.localhost. ( + 1 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 86400 ) ; Negative Cache TTL +; +@ IN NS localhost. diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/db.local --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/db.local Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,13 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA localhost. root.localhost. ( + 1 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS localhost. +@ IN A 127.0.0.1 diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/named.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/named.conf Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,55 @@ +// This is the primary configuration file for the BIND DNS server named. +// +// If you are just adding zones, please do that in /etc/bind/named.conf.local + +include "/etc/bind/named.conf.options"; + +// Allow control by rndc tool +include "/etc/bind/rndc.key"; +controls { + inet 127.0.0.1 port 953 allow { any; } keys { "rndc-key"; }; +}; + +// prime the server with knowledge of the root servers +zone "." { + type hint; + file "/etc/bind/db.root"; +}; + +// be authoritative for the localhost forward and reverse zones, and for +// broadcast zones as per RFC 1912 + +zone "localhost" { + type master; + file "/etc/bind/db.local"; +}; + +zone "127.in-addr.arpa" { + type master; + file "/etc/bind/db.127"; +}; + +zone "0.in-addr.arpa" { + type master; + file "/etc/bind/db.0"; +}; + +zone "255.in-addr.arpa" { + type master; + file "/etc/bind/db.255"; +}; + +// zone "com" { type delegation-only; }; +// zone "net" { type delegation-only; }; + +// From the release notes: +// Because many of our users are uncomfortable receiving undelegated answers +// from root or top level domains, other than a few for whom that behaviour +// has been trusted and expected for quite some length of time, we have now +// introduced the "root-delegations-only" feature which applies delegation-only +// logic to all top level domains, and to the root domain. An exception list +// should be specified, including "MUSEUM" and "DE", and any other top level +// domains from whom undelegated responses are expected and trusted. +// root-delegation-only exclude { "DE"; "MUSEUM"; }; + +include "/etc/bind/named.conf.local"; diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/named.conf.local --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/named.conf.local Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,8 @@ +// +// Do any local configuration here +// + +// Consider adding the 1918 zones here, if they are not used in your +// organization +//include "/etc/bind/zones.rfc1918"; + diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/named.conf.options --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/named.conf.options Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,24 @@ +options { + directory "/var/cache/bind"; + + // If there is a firewall between you and nameservers you want + // to talk to, you might need to uncomment the query-source + // directive below. Previous versions of BIND always asked + // questions using port 53, but BIND 8.1 and later use an unprivileged + // port by default. + + // query-source address * port 53; + + // If your ISP provided one or more IP addresses for stable + // nameservers, you probably want to use them as forwarders. + // Uncomment the following block, and insert the addresses replacing + // the all-0's placeholder. + + // forwarders { + // 0.0.0.0; + // }; + + auth-nxdomain no; # conform to RFC1035 + listen-on-v6 { any; }; +}; + diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/bind/zones.rfc1918 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/bind/zones.rfc1918 Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,20 @@ +zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; + +zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "25.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "26.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "27.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "28.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "29.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "30.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; +zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; + +zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; diff -r f1d973413286 -r 43ae0b5f0a8a bind/stuff/etc/init.d/named --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/stuff/etc/init.d/named Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,61 @@ +#!/bin/sh +# /etc/init.d/named: Start, stop and restart Named deamon on SliTaz, at boot +# time or with the command line. +# +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf. +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=Named +DESC="Named deamon" +DAEMON=/usr/sbin/named +OPTIONS=$NAMED_OPTIONS +PIDFILE=/var/run/named.pid +#[ -n "$OPTIONS" ] || OPTIONS="-u nobody" +[ -f /etc/bind/rndc.key ] || rndc-confgen -r /dev/urandom -a + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + /usr/sbin/rndc stop + status + ;; + reload) + /usr/sbin/rndc reload + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + /usr/sbin/rndc stop + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|reload|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r f1d973413286 -r 43ae0b5f0a8a libbind/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libbind/receipt Sun Oct 19 20:03:27 2008 +0000 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="libbind" +VERSION="9.5.0-P2" +CATEGORY="development" +SHORT_DESC="Domain Name System shared libraries." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.isc.org/products/BIND/" +WANTED="bind" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib +} +