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.
This commit is contained in:
parent
f1f58a7159
commit
13633dba6a
@ -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
|
||||
}
|
||||
|
8
packages/resolv-conf/build.sh
Normal file
8
packages/resolv-conf/build.sh
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user