Merge pull request #4292 from termux/bitcoin-lnd-service-scripts

Bitcoin lnd service scripts
This commit is contained in:
Henrik Grimler 2019-09-13 17:29:32 +02:00 committed by GitHub
commit feeed4a59f
2 changed files with 17 additions and 1 deletions

View File

@ -2,9 +2,11 @@ TERMUX_PKG_HOMEPAGE=https://bitcoincore.org/
TERMUX_PKG_DESCRIPTION="Bitcoin Core"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=0.18.1
TERMUX_PKG_REVISION=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="

View File

@ -2,11 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://github.com/lightningnetwork/lnd
TERMUX_PKG_DESCRIPTION="Lightning Network Daemon"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=0.7.1-beta
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=(https://github.com/lightningnetwork/lnd/archive/v${TERMUX_PKG_VERSION}.tar.gz
https://github.com/lightningnetwork/lnd/releases/download/v${TERMUX_PKG_VERSION}/vendor.tar.gz)
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 +21,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
}