Browse Source

Merge pull request #4291 from bitcoinprivacy/android-5

added termux-services to lnd
android-5
Henrik Grimler 5 years ago
committed by GitHub
parent
commit
e26f8801e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/bitcoin/build.sh
  2. 13
      packages/lnd/build.sh

3
packages/bitcoin/build.sh

@ -4,7 +4,8 @@ TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=0.18.1
TERMUX_PKG_SRCURL=https://github.com/bitcoin/bitcoin/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=db3c76ac913adfd67e3c7ff243b443c9706f81dd382d1212875fefc2de1ea5ff
TERMUX_PKG_DEPENDS="boost, libdb, libevent, libzmq, termux-services"
TERMUX_PKG_DEPENDS="boost, libdb, libevent, libzmq"
TERMUX_PKG_CONFFILES="var/service/bitcoind/run var/service/bitcoind/log/run"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

13
packages/lnd/build.sh

@ -7,6 +7,7 @@ TERMUX_PKG_SRCURL=(https://github.com/lightningnetwork/lnd/archive/v${TERMUX_PKG
TERMUX_PKG_SHA256=(13e1ef723a1dc0fc5af9fe48ca5766417e3c7de48c87a082a8fe83a6b38bb6a4
3bbfa000e2b4c7702f92d24235b5a098f37fd7b5830ca42586678f03d7cf9da3)
TERMUX_PKG_DEPENDS="bitcoin"
TERMUX_PKG_CONFFILES="var/service/lnd/run var/service/lnd/log/run"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
@ -19,3 +20,15 @@ termux_step_make() {
termux_step_make_install() {
install -Dm700 lnd lncli "$TERMUX_PREFIX"/bin/
}
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/var/service
cd $TERMUX_PREFIX/var/service
mkdir -p lnd/log
echo "#!$TERMUX_PREFIX/bin/sh" > lnd/run
echo 'exec lnd 2>&1' >> lnd/run
chmod +x lnd/run
touch lnd/down
ln -sf $TERMUX_PREFIX/share/termux-services/svlogger lnd/log/run
}

Loading…
Cancel
Save