[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Add support for Linux Mint



commit 4dbe80786f16108e26573c2e4d1a59b20726e183
Author: anadahz <kojgelo@xxxxxxxxx>
Date:   Thu Jan 15 03:02:16 2015 +0100

    Add support for Linux Mint
    
    Add support for Linux Mint, tested on Linux Mint 17, but it should work for
    other versions too.
---
 setup-dependencies.sh |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/setup-dependencies.sh b/setup-dependencies.sh
index bf7eb44..3c07745 100755
--- a/setup-dependencies.sh
+++ b/setup-dependencies.sh
@@ -7,6 +7,7 @@ TMP_KEYRING=${BUILD_DIR}/tmpkeyring.gpg
 DISTRO='unknown'
 DISTRO_VERSION='unknown'
 REPO_ROOT="$(pwd)"
+MINT_RELEASE_VARS="/etc/os-release"
 
 # Discover our Distro release
 if [ -f /etc/redhat-release ]; then
@@ -16,6 +17,10 @@ elif [ -r /lib/lsb/init-functions ]; then
   DISTRO_VERSION="$( lsb_release -cs )"
   if [ "$( lsb_release -is )" == "Ubuntu" ]; then
     DISTRO="ubuntu"
+  elif [ "$( lsb_release -is )" == "LinuxMint" ]; then
+    source $MINT_RELEASE_VARS
+    DISTRO="$ID"
+    DISTRO_VERSION="$( echo $VERSION | cut -d' ' -f2 | tr [:upper:] [:lower:] )"
   else
     DISTRO="debian"
   fi
@@ -906,7 +911,9 @@ case $DISTRO_VERSION in
   echo "[+] Updating OS package list...";
   sudo sudo apt-get update 2>&1 > /dev/null;
   echo "[+] Installing packages for your system...";
-  DO "sudo apt-get -y install curl git-core python python-dev python-setuptools build-essential libdumbnet1 python-dumbnet python-libpcap tor tor-geoipdb libgeoip-dev libpcap0.8-dev libssl-dev libffi-dev" "0"
+  DO "sudo apt-get -y install curl git-core python python-dev python-setuptools
+      build-essential libdumbnet1 python-dumbnet python-libpcap tor tor-geoipdb
+      libgeoip-dev libpcap0.8-dev libssl-dev libffi-dev libdumbnet-dev" "0"
 
   if [ "$PRIV_MODE" -eq "0" ]; then
     echo "[+] Using virtualenvironment..."



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits