From 13633dba6aa52531b1d3f180d5b016155f4142b4 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 15 Dec 2015 20:14:15 -0500 Subject: [PATCH] dnsutils: Break out $PREFIX/etc/resolv.conf This introduces a new resolv-conf package containing $PREFIX/etc/resolv.conf which can be used by other packages. --- packages/dnsutils/build.sh | 6 ++---- packages/resolv-conf/build.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 packages/resolv-conf/build.sh diff --git a/packages/dnsutils/build.sh b/packages/dnsutils/build.sh index b3469594..ed1c377c 100644 --- a/packages/dnsutils/build.sh +++ b/packages/dnsutils/build.sh @@ -1,10 +1,10 @@ TERMUX_PKG_HOMEPAGE=https://www.isc.org/downloads/bind/ TERMUX_PKG_DESCRIPTION="Clients provided with BIND" TERMUX_PKG_VERSION=9.10.3 -TERMUX_PKG_BUILD_REVISION=5 +TERMUX_PKG_BUILD_REVISION=6 TERMUX_PKG_SRCURL="https://www.isc.org/downloads/file/bind-9-10-3/?version=tar-gz" TERMUX_PKG_FOLDERNAME="bind-${TERMUX_PKG_VERSION}" -TERMUX_PKG_DEPENDS="openssl, readline" +TERMUX_PKG_DEPENDS="openssl, readline, resolv-conf" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-gssapi=no --with-randomdev=/dev/random -with-ecdsa=no --with-gost=no --with-libxml2=no --with-libtool" export BUILD_AR=ar @@ -36,6 +36,4 @@ termux_step_make_install () { make -C lib/bind9 install make -C lib/lwres install make -C bin/dig install - - printf "nameserver 8.8.8.8\nnameserver 8.8.4.4" > $_RESOLV_CONF } diff --git a/packages/resolv-conf/build.sh b/packages/resolv-conf/build.sh new file mode 100644 index 00000000..ea55c52e --- /dev/null +++ b/packages/resolv-conf/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=http://man7.org/linux/man-pages/man5/resolv.conf.5.html +TERMUX_PKG_DESCRIPTION="Resolver configuration file" +TERMUX_PKG_VERSION=1.0 + +termux_step_make_install () { + _RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf + printf "nameserver 8.8.8.8\nnameserver 8.8.4.4" > $_RESOLV_CONF +} -- 2.11.0