bind: Allow packages to be built with optional filter-aaaa option
authorNoah Meyerhans <redacted>
Sat, 23 Jan 2016 17:28:58 +0000 (09:28 -0800)
committerNoah Meyerhans <redacted>
Sat, 23 Jan 2016 19:25:38 +0000 (11:25 -0800)
Signed-off-by: Noah Meyerhans <redacted>
net/bind/Config.in [new file with mode: 0644]
net/bind/Makefile

diff --git a/net/bind/Config.in b/net/bind/Config.in
new file mode 100644 (file)
index 0000000..f0d4847
--- /dev/null
@@ -0,0 +1,17 @@
+if PACKAGE_bind-server
+
+config BIND_ENABLE_FILTER_AAAA
+       bool
+       default n
+       prompt "Enable filtering of AAAA records returned to the client"
+       help
+               BIND 9 has an option to filter AAAA (IPv6 address) records
+               returned to the client based on the transport used for the
+               query, and other filtering conditions. This filtering does
+               not affect the recursive queries made by the server (if
+               any) as a result of the client request.
+
+               Additional details are available at
+               https://kb.isc.org/article/AA-00576/0/Filter-AAAA-option-in-BIND-9-.html
+
+endif
index 93383102d516f1a859dbb44a4ea471cc4e2c2376..6b3601e0b734bc5d5ff6989b38106ea45f0ecc6f 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bind
 PKG_VERSION:=9.9.8-P3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 USERID:=bind=57:bind=57
 
 PKG_MAINTAINER := Noah Meyerhans <frodo@morgul.net>
@@ -27,7 +27,9 @@ PKG_REMOVE_FILES:=aclocal.m4 libtool.m4
 
 PKG_INSTALL:=1
 
-PKG_CONFIG_DEPENDS := CONFIG_OPENSSL_WITH_EC
+PKG_CONFIG_DEPENDS := \
+       CONFIG_OPENSSL_WITH_EC \
+       CONFIG_BIND_ENABLE_FILTER_AAAA
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -53,6 +55,10 @@ define Package/bind-server
   TITLE+= DNS server
 endef
 
+define Package/bind-server/config
+       source "$(SOURCE)/Config.in"
+endef
+
 define Package/bind-client
   $(call Package/bind/Default)
   TITLE+= dynamic DNS client
@@ -105,6 +111,11 @@ CONFIGURE_ARGS += \
        --with-ecdsa=$(if $(CONFIG_OPENSSL_WITH_EC),yes,no) \
        --with-readline=no
 
+ifdef CONFIG_BIND_ENABLE_FILTER_AAAA
+       CONFIGURE_ARGS += \
+               --enable-filter-aaaa
+endif
+
 CONFIGURE_VARS += \
        BUILD_CC="$(TARGET_CC)" \
 
git clone https://git.99rst.org/PROJECT