dnsutils: Break out $PREFIX/etc/resolv.conf
authorFredrik Fornwall <fredrik@fornwall.net>
Wed, 16 Dec 2015 01:14:15 +0000 (20:14 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 16 Dec 2015 01:14:15 +0000 (20:14 -0500)
This introduces a new resolv-conf package containing
$PREFIX/etc/resolv.conf which can be used by other packages.

packages/dnsutils/build.sh
packages/resolv-conf/build.sh [new file with mode: 0644]

index b346959..ed1c377 100644 (file)
@@ -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 (file)
index 0000000..ea55c52
--- /dev/null
@@ -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
+}