Install tor-stem from source.

This commit is contained in:
parazyd 2018-01-16 12:49:55 +01:00
parent aa5f7d7da1
commit e9b7261069
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 26 additions and 2 deletions

3
config
View File

@ -21,6 +21,9 @@ netdata_url="https://github.com/firehol/netdata/releases/download/v${netdata_ver
multichain_version="1.0.1"
multichain_url="https://www.multichain.com/download/multichain-${multichain_version}.tar.gz"
stem_version="1.6.0"
stem_url="https://git.torproject.org/stem.git"
size="4098"
filesystem="btrfs"

View File

@ -37,7 +37,7 @@ blend_postinst() {
notice "executing $blend_name postinst"
nopackage=(musl tomb golang netdata multichain)
nopackage=(musl tomb golang stem netdata multichain)
for app in $nopackage; do
blend_install_${app} || zerr
done || zerr
@ -108,7 +108,7 @@ EOF
## {{{ blend_install_golang()
blend_install_golang() {
fn blend_install_golang
req=(strapdir golang_version golang_arch golang_url)
req=(strapdir golang_version golang_url)
ckreq || return 1
notice "grabbing golang tarball"
@ -176,6 +176,27 @@ EOF
chroot-script install-multichain || zerr
}
## }}}
## {{{ blend_install_stem()
blend_install_stem() {
fn blend_install_stem
req=(strapdir stem_version stem_url)
ckreq || return 1
notice "installing stem tor library"
sudo git clone "$stem_url" "$strapdir/root/stem" || zerr
notice "installing stem in $strapdir"
cat <<EOF | sudo tee ${strapdir}/install-stem >/dev/null
#!/bin/sh
cd /root/stem
git checkout ${stem_version}
python3 setup.py install || exit 1
cd ..
rm -rf stem
EOF
chroot-script install-stem || zerr
}
## }}}
## {{{ blend_finalize()
blend_finalize() {