dnsutils: fix path to 'resolv.conf' in liblwres (#1616)

This commit is contained in:
Leonid Pliushch 2017-10-05 09:28:44 +03:00 committed by Fredrik Fornwall
parent 3600c8d8ec
commit 0ca9b21406
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.isc.org/downloads/bind/
TERMUX_PKG_DESCRIPTION="Clients provided with BIND"
TERMUX_PKG_VERSION=9.11.1-P3
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=52426e75432e46996dc90f24fca027805a341c38fbbb022b60dc9acd2677ccf4
TERMUX_PKG_SRCURL="ftp://ftp.isc.org/isc/bind9/${TERMUX_PKG_VERSION}/bind-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_DEPENDS="openssl, readline, resolv-conf"

View File

@ -0,0 +1,12 @@
diff -uNr bind-9.11.1-P3/lib/lwres/include/lwres/lwres.h bind-9.11.1-P3.mod/lib/lwres/include/lwres/lwres.h
--- bind-9.11.1-P3/lib/lwres/include/lwres/lwres.h 2017-07-07 18:01:52.000000000 +0300
+++ bind-9.11.1-P3.mod/lib/lwres/include/lwres/lwres.h 2017-10-04 16:48:56.466109542 +0300
@@ -74,7 +74,7 @@
#define LWRES_UDP_PORT 921 /*%< UDP Port Number */
#define LWRES_RECVLENGTH 16384 /*%< Maximum Packet Length */
#define LWRES_ADDR_MAXLEN 16 /*%< changing this breaks ABI */
-#define LWRES_RESOLV_CONF "/etc/resolv.conf" /*%< Location of resolv.conf */
+#define LWRES_RESOLV_CONF "@TERMUX_PREFIX@/etc/resolv.conf" /*%< Location of resolv.conf */
/*% DNSSEC is not required (input). Only relevant to rrset queries. */
#define LWRES_FLAG_TRUSTNOTREQUIRED 0x00000001U