Index: 9.16.13/Makefile
===================================================================
--- 9.16.13/Makefile (nonexistent)
+++ 9.16.13/Makefile (revision 5)
@@ -0,0 +1,334 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/n/bind
+
+REQUIRES = secure/libcap/2.48
+REQUIRES += libs/libxml2/2.9.9
+REQUIRES += libs/libidn2/2.3.0
+REQUIRES += libs/libuv/1.41.0
+REQUIRES += libs/json-c/0.15
+REQUIRES += net/libmaxminddb/1.6.0
+REQUIRES += net/krb5/1.19.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 9.16.13
+tar_xz_archive = $(SRC_PACKAGE_PATH)/packages/n/bind/bind-$(version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/bind-$(version)
+src_dir_name = bind-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+caching_dir = $(CURDIR)/caching-example
+rc_bind = $(CURDIR)/scripts/rc.bind
+
+
+PATCHES = PATCHES
+
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = net
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BIND_PKG_NAME = bind
+BIND_PKG_VERSION = 9.16.13
+BIND_PKG_ARCH = $(PKGARCH)
+BIND_PKG_DISTRO_NAME = $(DISTRO_NAME)
+BIND_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+BIND_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+BIND_PKG_SHORT_DESCRIPTION = DNS server and utilities
+BIND_PKG_URL = $(BUG_URL)
+BIND_PKG_LICENSE = MPL2
+BIND_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(BIND_PKG_NAME)-pkg-description
+BIND_PKG_DESCRIPTION_FILE_IN = $(BIND_PKG_NAME)-pkg-description.in
+BIND_PKG_INSTALL_SCRIPT = $(BIND_PKG_NAME)-pkg-install.sh
+
+BIND_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BIND_PKG_NAME)-package
+
+pkg_basename = $(BIND_PKG_NAME)-$(BIND_PKG_VERSION)-$(BIND_PKG_ARCH)-$(BIND_PKG_DISTRO_NAME)-$(BIND_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(BIND_PKG)
+
+
+extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --with-libtool
+extra_configure_switches += --with-libxml2=yes
+extra_configure_switches += --with-libidn2=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-openssl=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-pkcs11=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-maxminddb=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-readline=auto
+extra_configure_switches += --with-json-c=yes
+extra_configure_switches += --with-zlib=yes
+extra_configure_switches += --with-gssapi=$(TARGET_DEST_DIR)/usr/bin/krb5-config
+extra_configure_switches += --with-lmdb=no
+extra_configure_switches += --with-cmocka=no
+extra_configure_switches += --with-python=$(PYTHON3)
+extra_configure_switches += --with-python-install-dir='/usr/lib/python3.10/site-packages'
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+dev_environment = BUILD_CC=gcc PYTHON=$(PYTHON3)
+
+LDFLAGS += -Wl,-rpath,/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)
+ @touch $@
+
+$(build_target): $(src_done)
+ @cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(dev_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr \
+ --build=$(BUILD) \
+ --host=$(TARGET) \
+ $(extra_configure_switches)
+ @( cd $(SRC_DIR)/make ; \
+ sed -i "s,^\(STD_CINCLUDES =\).*,\1 -I$(TARGET_DEST_DIR)/usr/include," rules ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ for file in `find . -type f -name "Makefile*"` ; do \
+ sed -i "s,^\(STD_CINCLUDES =\).*,\1 -I$(TARGET_DEST_DIR)/usr/include," $$file ; \
+ done ; \
+ )
+ @( cd $(SRC_DIR)/bin/named ; \
+ sed -i "/^CONFIGARGS/s,$(BUILDSYSTEM),,g" Makefile ; \
+ sed -i "/^CONFIGARGS/s,$(TARGET_DEST_DIR),,g" Makefile ; \
+ sed -i "/^CONFIGARGS/s,$(BUILD),$(TARGET),g" Makefile ; \
+ sed -i "/^CONFIGARGS/s,$(CCACHE)$(CROSS_PREFIX),/usr/bin/,g" Makefile ; \
+ sed -i "/^CONFIGARGS/s,$(CROSS_PREFIX),,g" Makefile ; \
+ sed -i "/^CONFIGARGS/s, --sysroot=,,g" Makefile ; \
+ sed -i "/DMAXMINDDB_PREFIX=/s,$$$(TARGET_DEST_DIR),,g" Makefile ; \
+ )
+ @cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(BIND_PKG)
+ @cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @mkdir -p $(BIND_PKG)/etc/rc.d
+ @mkdir -p $(BIND_PKG)/etc/default
+ @cp -a $(rc_bind) $(BIND_PKG)/etc/rc.d/rc.bind.new
+ @chmod 0644 $(BIND_PKG)/etc/rc.d/rc.bind.new
+ @mkdir -p $(BIND_PKG)/var/run/named
+ @( cd $(BIND_PKG)/usr/sbin ; \
+ ln -sf named lwresd ; \
+ )
+ # ======= Install Documentation =======
+ @if [ -d $(BIND_PKG)/usr/share/man ]; then \
+ ( cd $(BIND_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(BIND_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/COPYRIGHT $(SRC_DIR)/LICENSE \
+ $(BIND_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(BIND_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ cp -a COPYRIGHT HISTORY* OPTIONS* PLATFORMS* README* doc/arm doc/misc \
+ $(BIND_PKG)/usr/share/doc/$(src_dir_name) ; \
+ )
+ @( cd $(BIND_PKG)/usr/share/doc/$(src_dir_name)/arm ; \
+ rm -f Makefile* *.pdf .gitattributes ; \
+ )
+ @( cd $(BIND_PKG)/usr/share/doc/$(src_dir_name)/misc ; \
+ rm -f Makefile* ; \
+ )
+ @mkdir -p $(BIND_PKG)/usr/share/doc/$(src_dir_name)/rndc
+ @( cd $(SRC_DIR)/bin/rndc ; \
+ cp -a rndc.conf *.rst \
+ $(BIND_PKG)/usr/share/doc/$(src_dir_name)/rndc ; \
+ )
+ @( cd $(BIND_PKG)/usr/share/doc/$(src_dir_name)/rndc ; \
+ mv rndc.conf rndc.conf-example ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ if [ -r CHANGES ]; then \
+ DOCSDIR=`echo $(BIND_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat CHANGES | head -n 1000 > $$DOCSDIR/CHANGES ; \
+ touch -r CHANGES $$DOCSDIR/CHANGES ; \
+ fi \
+ )
+ # ======= Add sample config files for a simple caching nameserver =======
+ @mkdir -p $(BIND_PKG)/var/named/caching-example
+ @cat $(caching_dir)/named.conf > $(BIND_PKG)/etc/named.conf.new
+ @cat $(caching_dir)/localhost.zone > $(BIND_PKG)/var/named/caching-example/localhost.zone
+ @cat $(caching_dir)/named.local > $(BIND_PKG)/var/named/caching-example/named.local
+ @cat $(caching_dir)/named.root > $(BIND_PKG)/var/named/caching-example/named.root
+ # ------- add deprecated 'named.ca' sample for old configurations -------
+ @cat $(caching_dir)/named.root > $(BIND_PKG)/var/named/caching-example/named.ca
+ # ======= remove toolchain path from target libtool *.la files =======
+ @( cd $(BIND_PKG)/usr/lib$(LIBSUFFIX) ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" libbind9.la libdns.la libirs.la \
+ libisc.la libisccc.la libisccfg.la libns.la ; \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(BIND_PKG))
+ # ======= Remove BS path from target scripts =======
+ @( cd $(BIND_PKG)/usr/sbin ; \
+ sed -i 's,$(BUILDSYSTEM),,g' dnssec-checkds dnssec-coverage dnssec-keymgr ; \
+ )
+ # ======= tune libtool *.la search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libbind9.la libdns.la libirs.la \
+ libisc.la libisccc.la libisccfg.la libns.la ; \
+ sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libbind9.la libdns.la libirs.la \
+ libisc.la libisccc.la libisccfg.la libns.la ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(BIND_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ifeq ($(__ENABLE_STATIC__),yes)
+ @( cd $(BIND_PKG) ; \
+ find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+ )
+endif
+ifneq ($(PATCHELF),)
+ # ======= Set RPATH/RUNPATH for target binaries =======
+ @( cd $(BIND_PKG)/usr ; \
+ for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ )
+ # ======= Set RPATH/RUNPATH for target shared objects =======
+ @( cd $(BIND_PKG)/usr/lib$(LIBSUFFIX) ; \
+ for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ )
+endif
+ @touch $@
+
+$(BIND_PKG_DESCRIPTION_FILE): $(BIND_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(BIND_PKG_DESCRIPTION_FILE) $(BIND_PKG_INSTALL_SCRIPT)
+ @cp $(BIND_PKG_DESCRIPTION_FILE) $(BIND_PKG)/.DESCRIPTION
+ @cp $(BIND_PKG_INSTALL_SCRIPT) $(BIND_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(BIND_PKG)/.REQUIRES
+ @echo "pkgname=$(BIND_PKG_NAME)" > $(BIND_PKG)/.PKGINFO ; \
+ echo "pkgver=$(BIND_PKG_VERSION)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "arch=$(BIND_PKG_ARCH)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "distroname=$(BIND_PKG_DISTRO_NAME)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "distrover=$(BIND_PKG_DISTRO_VERSION)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "group=$(BIND_PKG_GROUP)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(BIND_PKG_SHORT_DESCRIPTION)\"" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "url=$(BIND_PKG_URL)" >> $(BIND_PKG)/.PKGINFO ; \
+ echo "license=$(BIND_PKG_LICENSE)" >> $(BIND_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(BIND_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 9.16.13/PATCHES
===================================================================
Index: 9.16.13/bind-pkg-description.in
===================================================================
--- 9.16.13/bind-pkg-description.in (nonexistent)
+++ 9.16.13/bind-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+bind: bind @VERSION@ (DNS server and utilities)
+bind:
+bind: The named daemon and support utilities such as dig, host, and
+bind: nslookup. Sample configuration files for running a simple caching
+bind: nameserver are included. Documentation for advanced name server
+bind: setup can be found in /usr/share/doc/bind-@VERSION@/ .
+bind:
+bind:
+bind:
+bind:
+bind:
Index: 9.16.13/bind-pkg-install.sh
===================================================================
--- 9.16.13/bind-pkg-install.sh (nonexistent)
+++ 9.16.13/bind-pkg-install.sh (revision 5)
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ # Keep same perms on rc.bind.new:
+ if [ -e etc/rc.d/rc.bind ]; then
+ cp -a etc/rc.d/rc.bind etc/rc.d/rc.bind.new.incoming
+ cat etc/rc.d/rc.bind.new > etc/rc.d/rc.bind.new.incoming
+ mv etc/rc.d/rc.bind.new.incoming etc/rc.d/rc.bind.new
+ fi
+
+ install_file etc/named.conf.new
+ install_file etc/rc.d/rc.bind.new
+
+ # Add a /var/named if it doesn't exist:
+ if [ ! -d var/named ]; then
+ mkdir -p var/named
+ chmod 755 var/named
+ fi
+
+ # Generate /etc/rndc.key if there's none there, and there also no /etc/rndc.conf
+ # (the other way to set this up).
+ #
+ # Also we have to check that we are not in the installer mode on the target system
+ # ("/etc/system-installer"), and we have to be sure that we are on the working system
+ # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+ if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a ! -r /etc/rndc.key -a ! -r /etc/rndc.conf ]; then
+ /sbin/ldconfig
+ /usr/sbin/rndc-confgen -r /dev/urandom -a 2> /dev/null
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 9.16.13/bind-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 9.16.13/caching-example/localhost.zone
===================================================================
--- 9.16.13/caching-example/localhost.zone (nonexistent)
+++ 9.16.13/caching-example/localhost.zone (revision 5)
@@ -0,0 +1,11 @@
+$TTL 86400
+$ORIGIN localhost.
+@ 1D IN SOA @ root (
+ 42 ; serial (d. adams)
+ 3H ; refresh
+ 15M ; retry
+ 1W ; expiry
+ 1D ) ; minimum
+
+ 1D IN NS @
+ 1D IN A 127.0.0.1
Index: 9.16.13/caching-example/named.conf
===================================================================
--- 9.16.13/caching-example/named.conf (nonexistent)
+++ 9.16.13/caching-example/named.conf (revision 5)
@@ -0,0 +1,31 @@
+options {
+ directory "/var/named";
+ /*
+ * 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 uses an unprivileged
+ * port by default.
+ */
+ // query-source address * port 53;
+};
+
+//
+// a caching only nameserver config
+//
+zone "." IN {
+ type hint;
+ file "caching-example/named.root";
+};
+
+zone "localhost" IN {
+ type master;
+ file "caching-example/localhost.zone";
+ allow-update { none; };
+};
+
+zone "0.0.127.in-addr.arpa" IN {
+ type master;
+ file "caching-example/named.local";
+ allow-update { none; };
+};
Index: 9.16.13/caching-example/named.local
===================================================================
--- 9.16.13/caching-example/named.local (nonexistent)
+++ 9.16.13/caching-example/named.local (revision 5)
@@ -0,0 +1,10 @@
+$TTL 86400
+@ IN SOA localhost. root.localhost. (
+ 2011032500 ; Serial
+ 28800 ; Refresh
+ 14400 ; Retry
+ 3600000 ; Expire
+ 86400 ) ; Minimum
+ IN NS localhost.
+
+1 IN PTR localhost.
Index: 9.16.13/caching-example/named.root
===================================================================
--- 9.16.13/caching-example/named.root (nonexistent)
+++ 9.16.13/caching-example/named.root (revision 5)
@@ -0,0 +1,92 @@
+; This file holds the information on root name servers needed to
+; initialize cache of Internet domain name servers
+; (e.g. reference this file in the "cache . <file>"
+; configuration file of BIND domain name servers)
+;
+; This file is made available by InterNIC
+; under anonymous FTP as
+; file /domain/named.cache
+; on server FTP.INTERNIC.NET
+; -OR- RS.INTERNIC.NET
+;
+; last update: July 30, 2019
+; related version of root zone: 2019073000
+;
+; FORMERLY NS.INTERNIC.NET
+;
+. 3600000 NS A.ROOT-SERVERS.NET.
+A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
+A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:ba3e::2:30
+;
+; FORMERLY NS1.ISI.EDU
+;
+. 3600000 NS B.ROOT-SERVERS.NET.
+B.ROOT-SERVERS.NET. 3600000 A 199.9.14.201
+B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:200::b
+;
+; FORMERLY C.PSI.NET
+;
+. 3600000 NS C.ROOT-SERVERS.NET.
+C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
+C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::c
+;
+; FORMERLY TERP.UMD.EDU
+;
+. 3600000 NS D.ROOT-SERVERS.NET.
+D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
+D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2d::d
+;
+; FORMERLY NS.NASA.GOV
+;
+. 3600000 NS E.ROOT-SERVERS.NET.
+E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
+E.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:a8::e
+;
+; FORMERLY NS.ISC.ORG
+;
+. 3600000 NS F.ROOT-SERVERS.NET.
+F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
+F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f
+;
+; FORMERLY NS.NIC.DDN.MIL
+;
+. 3600000 NS G.ROOT-SERVERS.NET.
+G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
+G.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:12::d0d
+;
+; FORMERLY AOS.ARL.ARMY.MIL
+;
+. 3600000 NS H.ROOT-SERVERS.NET.
+H.ROOT-SERVERS.NET. 3600000 A 198.97.190.53
+H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::53
+;
+; FORMERLY NIC.NORDU.NET
+;
+. 3600000 NS I.ROOT-SERVERS.NET.
+I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
+I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fe::53
+;
+; OPERATED BY VERISIGN, INC.
+;
+. 3600000 NS J.ROOT-SERVERS.NET.
+J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
+J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:c27::2:30
+;
+; OPERATED BY RIPE NCC
+;
+. 3600000 NS K.ROOT-SERVERS.NET.
+K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
+K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1
+;
+; OPERATED BY ICANN
+;
+. 3600000 NS L.ROOT-SERVERS.NET.
+L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
+L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:9f::42
+;
+; OPERATED BY WIDE
+;
+. 3600000 NS M.ROOT-SERVERS.NET.
+M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
+M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35
+; End of file
Index: 9.16.13/caching-example
===================================================================
--- 9.16.13/caching-example (nonexistent)
+++ 9.16.13/caching-example (revision 5)
Property changes on: 9.16.13/caching-example
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 9.16.13/scripts/rc.bind
===================================================================
--- 9.16.13/scripts/rc.bind (nonexistent)
+++ 9.16.13/scripts/rc.bind (revision 5)
@@ -0,0 +1,145 @@
+#!/bin/sh
+# Start/stop/restart the BIND name server daemon (named).
+
+# Start BIND. In the past it was more secure to run BIND as a non-root
+# user (for example, with '-u daemon'), but the modern version of BIND
+# knows how to use the kernel's capability mechanism to drop all root
+# privileges except the ability to bind() to a privileged port and set
+# process resource limits, so running as a non-root user is not needed.
+# But if you want to run as a non-root user anyway, the command options
+# can be set like this in /etc/default/named:
+# NAMED_OPTIONS="-u daemon"
+# So you will not have to edit this script.
+#
+# Please note that if you run BIND as a non-root user, your files in
+# /var/named may need to be chowned to this user or else named will
+# refuse to start.
+
+# You might also consider running BIND in a "chroot jail",
+# a discussion of which may be found in
+# /usr/doc/Linux-HOWTOs/Chroot-BIND-HOWTO.
+
+# One last note: rndc has a lot of other nice features that it is not
+# within the scope of this start/stop/restart script to support.
+# For more details, see "man rndc" or just type "rndc" to see the options.
+
+# Load command defaults:
+if [ -f /etc/default/named ] ; then . /etc/default/named ; fi
+if [ -f /etc/default/rndc ] ; then . /etc/default/rndc ; fi
+
+# Sanity check. If /usr/sbin/named is missing then it
+# doesn't make much sense to try to run this script:
+if [ ! -x /usr/sbin/named ]; then
+ echo "/etc/rc.d/rc.bind: no /usr/sbin/named found (or not executable); cannot start."
+ exit 1
+fi
+
+# Function to find the user BIND is running as in $NAMED_OPTIONS:
+find_bind_user() {
+ if echo $NAMED_OPTIONS | grep -wq "\-u" ; then
+ unset BIND_USER USER_FOUND
+ echo $NAMED_OPTIONS | tr ' ' '\n' | while read element ; do
+ if [ "$USER_FOUND" = "true" ]; then
+ BIND_USER="$element"
+ echo $BIND_USER
+ break
+ elif [ "$element" = "-u" ]; then
+ USER_FOUND="true"
+ fi
+ done
+ else
+ echo "root"
+ fi
+}
+
+# Start BIND. As many times as you like. ;-)
+# Seriously, don't run "rc.bind start" if BIND is already
+# running or you'll get more than one copy running.
+bind_start() {
+ # Make sure /var/run/named exists:
+ mkdir -p /var/run/named
+ # If we are running as a non-root user, we'll need to be sure that
+ # /var/run/named is chowned properly to that user. Your files in
+ # /var/named may need to be chowned as well, but that will be up to
+ # the sysadmin to do.
+ BIND_USER="$(find_bind_user)"
+ if [ ! "$BIND_USER" = "root" ]; then
+ chown -R $BIND_USER /var/run/named
+ else # prevent error if switching back to running as root:
+ chown -R root /var/run/named
+ fi
+ # Start named:
+ if [ -x /usr/sbin/named ]; then
+ echo "Starting BIND: /usr/sbin/named $NAMED_OPTIONS"
+ /usr/sbin/named $NAMED_OPTIONS
+ sleep 1
+ fi
+ # Make sure that named started:
+ if ! ps axc | grep -q named ; then
+ echo "WARNING: named did not start."
+ echo "Attempting to start named again: /usr/sbin/named $NAMED_OPTIONS"
+ /usr/sbin/named $NAMED_OPTIONS
+ sleep 1
+ if ps axc | grep -q named ; then
+ echo "SUCCESS: named started."
+ else
+ echo "FAILED: Sorry, a second attempt to start named has also failed."
+ echo "There may be a configuration error that needs fixing. Good luck!"
+ fi
+ fi
+}
+
+# Stop all running copies of BIND (/usr/sbin/named):
+bind_stop() {
+ echo "Stopping BIND: /usr/sbin/rndc $RDNC_OPTIONS stop"
+ /usr/sbin/rndc $RDNC_OPTIONS stop
+ # A problem with using "/usr/sbin/rndc stop" is that if you
+ # managed to get multiple copies of named running it will
+ # only stop one of them and then can't stop the others even
+ # if you run it again. So, after doing things the nice way
+ # we'll do them the old-fashioned way. If you don't like
+ # it you can comment it out, but unless you have a lot of
+ # other programs you run called "named" this is unlikely
+ # to have any ill effects:
+ sleep 1
+ if ps axc | grep -q named ; then
+ echo "Stopping all named processes in this namespace: /bin/killall --ns \$\$ named"
+ /bin/killall --ns $$ named 2> /dev/null
+ fi
+}
+
+# Reload BIND:
+bind_reload() {
+ /usr/sbin/rndc $RDNC_OPTIONS reload
+}
+
+# Restart BIND:
+bind_restart() {
+ bind_stop
+ bind_start
+}
+
+# Get BIND status:
+bind_status() {
+ /usr/sbin/rndc $RDNC_OPTIONS status
+}
+
+case "$1" in
+'start')
+ bind_start
+ ;;
+'stop')
+ bind_stop
+ ;;
+'reload')
+ bind_reload
+ ;;
+'restart')
+ bind_restart
+ ;;
+'status')
+ bind_status
+ ;;
+*)
+ echo "usage $0 start|stop|reload|restart|status"
+esac
Index: 9.16.13/scripts
===================================================================
--- 9.16.13/scripts (nonexistent)
+++ 9.16.13/scripts (revision 5)
Property changes on: 9.16.13/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 9.16.13
===================================================================
--- 9.16.13 (nonexistent)
+++ 9.16.13 (revision 5)
Property changes on: 9.16.13
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~