diff --git a/packages/ldns/build.sh b/packages/ldns/build.sh index 5f31f2ca0..c934dbb26 100644 --- a/packages/ldns/build.sh +++ b/packages/ldns/build.sh @@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.nlnetlabs.nl/projects/ldns/ TERMUX_PKG_DESCRIPTION="Library for simplifying DNS programming and supporting recent and experimental RFCs" TERMUX_PKG_LICENSE="BSD 3-Clause" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=1.7.1 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_VERSION=1.8.1 TERMUX_PKG_SRCURL=https://www.nlnetlabs.nl/downloads/ldns/ldns-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=8ac84c16bdca60e710eea75782356f3ac3b55680d40e1530d7cea474ac208229 +TERMUX_PKG_SHA256=958229abce4d3aaa19a75c0d127666564b17216902186e952ca4aef47c6d7fa3 TERMUX_PKG_DEPENDS="openssl" TERMUX_PKG_BREAKS="ldns-dev" TERMUX_PKG_REPLACES="ldns-dev" diff --git a/packages/ldns/fix-hardcoded-paths.patch b/packages/ldns/fix-hardcoded-paths.patch index 677aac008..671a53ee8 100644 --- a/packages/ldns/fix-hardcoded-paths.patch +++ b/packages/ldns/fix-hardcoded-paths.patch @@ -13,15 +13,3 @@ diff -uNr ldns-1.7.0/ldns/resolver.h ldns-1.7.0.mod/ldns/resolver.h #define LDNS_RESOLV_KEYWORD -1 #define LDNS_RESOLV_DEFDOMAIN 0 -diff -uNr ldns-1.7.0/resolver.c ldns-1.7.0.mod/resolver.c ---- ldns-1.7.0/resolver.c 2016-12-20 12:48:22.000000000 +0200 -+++ ldns-1.7.0.mod/resolver.c 2017-10-04 16:28:34.203407382 +0300 -@@ -780,7 +780,7 @@ - if(!line_nr) line_nr = &lnr; - - if(!fp) { -- myfp = fopen("/etc/resolv.conf", "r"); -+ myfp = fopen("@TERMUX_PREFIX@/etc/resolv.conf", "r"); - if(!myfp) - return LDNS_STATUS_FILE_ERR; - }