From e9b7261069e3bb04bceaf4a96494e119ece64c78 Mon Sep 17 00:00:00 2001 From: parazyd Date: Tue, 16 Jan 2018 12:49:55 +0100 Subject: [PATCH] Install tor-stem from source. --- config | 3 +++ decode.blend | 25 +++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/config b/config index 74243a4..36cd593 100644 --- a/config +++ b/config @@ -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" diff --git a/decode.blend b/decode.blend index cb26b93..2e9946f 100644 --- a/decode.blend +++ b/decode.blend @@ -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 </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() {