diff --git a/packaging/deps.sh b/packaging/deps.sh
index 832bfcf2f..e295632fb 100644
--- a/packaging/deps.sh
+++ b/packaging/deps.sh
@@ -5,11 +5,12 @@ set -e
 PREFIX=${PREFIX:-/usr/local}
 TRIPLET=${TRIPLET:-x86_64-linux-gnu}
 
+GIT_OPTS+=" --depth=1"
 CONFIGURE_OPTS+=" --host=${TRIPLET} --prefix=${PREFIX}"
 CMAKE_OPTS+=" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PREFIX}"
 
 MAKE_THREADS=${MAKE_THREADS:-$(nproc)}
-MAKE_OPTS+="-j${MAKE_THREADS}"
+MAKE_OPTS+="--jobs=${MAKE_THREADS}"
 
 git config --global http.postBuffer 524288000
 git config --global core.compression 0
@@ -36,7 +37,7 @@ pushd ${DIR}
 if ! pkg-config "criterion >= 2.3.1" && \
    [ "${ARCH}" == "x86_64" ] && \
    [ -z "${SKIP_CRITERION}" ]; then
-    git clone --branch v2.3.3 --depth 1 --recursive https://github.com/Snaipe/Criterion
+    git clone ${GIT_OPTS} --branch v2.3.3 --recursive https://github.com/Snaipe/Criterion
     mkdir -p Criterion/build
     pushd Criterion/build
     cmake ${CMAKE_OPTS} ..
@@ -49,7 +50,7 @@ fi
 # Build & Install libjansson
 if ! pkg-config "jansson >= 2.7" && \
     [ -z "${SKIP_JANSSON}" ]; then
-    git clone --branch v2.14 --depth 1 https://github.com/akheron/jansson
+    git clone ${GIT_OPTS} --branch v2.14 https://github.com/akheron/jansson
     pushd jansson
     autoreconf -i
     ./configure ${CONFIGURE_OPTS}
@@ -79,7 +80,7 @@ fi
 # Build & Install mosquitto
 if ! pkg-config "libmosquitto >= 1.4.15" && \
     [ -z "${SKIP_LIBMOSQUITTO}" ]; then
-    git clone --branch v2.0.12 --depth 1 https://github.com/eclipse/mosquitto
+    git clone ${GIT_OPTS} --branch v2.0.12 https://github.com/eclipse/mosquitto
     mkdir -p mosquitto/build
     pushd mosquitto/build
     cmake -DWITH_BROKER=OFF \
@@ -94,7 +95,7 @@ fi
 # Build & Install rabbitmq-c
 if ! pkg-config "librabbitmq >= 0.8.0" && \
     [ -z "${SKIP_LIBRABBITMQ}" ]; then
-    git clone --branch v0.11.0 --depth 1 https://github.com/alanxz/rabbitmq-c
+    git clone ${GIT_OPTS} --branch v0.11.0 https://github.com/alanxz/rabbitmq-c
     mkdir -p rabbitmq-c/build
     pushd rabbitmq-c/build
     cmake ${CMAKE_OPTS} ..
@@ -105,7 +106,7 @@ fi
 # Build & Install libzmq
 if ! pkg-config "libzmq >= 2.2.0" && \
     [ -z "${SKIP_LIBZMQ}" ]; then
-    git clone --branch v4.3.4 --depth 1 https://github.com/zeromq/libzmq
+    git clone ${GIT_OPTS} --branch v4.3.4 https://github.com/zeromq/libzmq
     mkdir -p libzmq/build
     pushd libzmq/build
     cmake -DWITH_PERF_TOOL=OFF \
@@ -118,7 +119,7 @@ fi
 
 # Build & Install EtherLab
 if [ -z "${SKIP_ETHERLAB}" ]; then
-   git clone --branch stable-1.5 --depth 1 https://gitlab.com/etherlab.org/ethercat.git
+   git clone ${GIT_OPTS} --branch stable-1.5 https://gitlab.com/etherlab.org/ethercat.git
     pushd ethercat
     ./bootstrap
     ./configure --enable-userlib=yes --enable-kernel=no ${CONFIGURE_OPTS}
@@ -135,7 +136,7 @@ fi
 # Build & Install libiec61850
 if ! pkg-config "libiec61850 >= 1.3.1" && \
     [ -z "${SKIP_LIBIEC61850}" ]; then
-    git clone --branch v1.4 --depth 1 https://github.com/mz-automation/libiec61850
+    git clone ${GIT_OPTS} --branch v1.4 https://github.com/mz-automation/libiec61850
     mkdir -p libiec61850/build
     pushd libiec61850/build
     cmake ${CMAKE_OPTS} ..
@@ -149,7 +150,7 @@ fi
 # Build & Install librdkafka
 if ! pkg-config "rdkafka >= 1.5.0" && \
     [ -z "${SKIP_RDKAFKA}" ]; then
-    git clone --branch v1.6.0 --depth 1 https://github.com/edenhill/librdkafka
+    git clone ${GIT_OPTS} --branch v1.6.0 https://github.com/edenhill/librdkafka
     mkdir -p librdkafka/build
     pushd librdkafka/build
     cmake -DRDKAFKA_BUILD_TESTS=OFF \
@@ -163,7 +164,7 @@ fi
 if ! ( pkg-config "libcgraph >= 2.30" && \
        pkg-config "libgvc >= 2.30" \
      ) && [ -z "${SKIP_RDKAFKA}" ]; then
-    git clone --branch 2.49.0 --depth 1 https://gitlab.com/graphviz/graphviz.git
+    git clone ${GIT_OPTS} --branch 2.49.0 https://gitlab.com/graphviz/graphviz.git
     mkdir -p graphviz/build
     pushd graphviz/build
     cmake ${CMAKE_OPTS} ..
@@ -174,7 +175,7 @@ fi
 # Build & Install uldaq
 if ! pkg-config "libuldaq >= 1.2.0" && \
     [ -z "${SKIP_ULDAQ}" ]; then
-    git clone --branch v1.2.0 --depth 1 https://github.com/mccdaq/uldaq
+    git clone ${GIT_OPTS} --branch v1.2.0 https://github.com/mccdaq/uldaq
     pushd uldaq
     autoreconf -i
     ./configure --enable-examples=no ${CONFIGURE_OPTS}
@@ -192,7 +193,7 @@ fi
 if ! ( pkg-config "libnl-3.0 >= 3.2.25" && \
        pkg-config "libnl-route-3.0 >= 3.2.25" \
      ) && [ -z "${SKIP_ULDAQ}" ]; then
-    git clone --branch libnl3_5_0 --depth 1 https://github.com/thom311/libnl
+    git clone ${GIT_OPTS} --branch libnl3_5_0 https://github.com/thom311/libnl
     pushd libnl
     autoreconf -i
     ./configure ${CONFIGURE_OPTS}
@@ -205,7 +206,7 @@ fi
 # Build & Install libconfig
 if ! pkg-config "libconfig >= 1.4.9" && \
     [ -z "${SKIP_ULDAQ}" ]; then
-    git clone --branch v1.7.3 --depth 1 https://github.com/hyperrealm/libconfig
+    git clone ${GIT_OPTS} --branch v1.7.3 https://github.com/hyperrealm/libconfig
     pushd libconfig
     autoreconf -i
     ./configure ${CONFIGURE_OPTS} \
@@ -221,7 +222,7 @@ fi
 # Build & Install comedilib
 if ! pkg-config "comedilib >= 0.11.0" && \
     [ -z "${SKIP_COMEDILIB}" ]; then
-    git clone --branch r0_12_0 --depth 1 https://github.com/Linux-Comedi/comedilib.git
+    git clone ${GIT_OPTS} --branch r0_12_0 https://github.com/Linux-Comedi/comedilib.git
     pushd comedilib
     ./autogen.sh
     ./configure ${CONFIGURE_OPTS}
@@ -239,7 +240,7 @@ fi
 # Build & Install libre
 if ! pkg-config "libre >= 0.5.6" && \
     [ -z "${SKIP_LIBRE}" ]; then
-    git clone --branch v0.6.1 --depth 1 https://github.com/creytiv/re.git
+    git clone ${GIT_OPTS} --branch v0.6.1 https://github.com/creytiv/re.git
     pushd re
     if [ -z "${PACKAGE}" ]; then
         make ${MAKE_OPTS} install
@@ -253,7 +254,7 @@ fi
 # Build & Install nanomsg
 if ! pkg-config "nanomsg >= 1.0.0" && \
     [ -z "${SKIP_NANOMSG}" ]; then
-    git clone --branch 1.1.5 --depth 1 https://github.com/nanomsg/nanomsg.git
+    git clone ${GIT_OPTS} --branch 1.1.5 https://github.com/nanomsg/nanomsg.git
     mkdir -p nanomsg/build
     pushd nanomsg/build
     cmake ${CMAKE_OPTS} ..
@@ -266,7 +267,7 @@ fi
 # Build & Install libxil
 if ! pkg-config "libxil >= 1.0.0" && \
     [ -z "${SKIP_LIBXIL}" ]; then
-    git clone --branch v0.1.0 --depth 1 https://git.rwth-aachen.de/acs/public/villas/fpga/libxil.git
+    git clone ${GIT_OPTS} --branch v0.1.0 https://git.rwth-aachen.de/acs/public/villas/fpga/libxil.git
     mkdir -p libxil/build
     pushd libxil/build
     cmake ${CMAKE_OPTS} ..
@@ -279,7 +280,7 @@ fi
 # Build & Install hiredis
 if ! pkg-config "hiredis>1.0.0" && \
     [ -z "${SKIP_HIREDIS}" -a -z "${SKIP_REDIS}" ]; then
-    git clone --branch v1.0.0 --depth 1 https://github.com/redis/hiredis.git
+    git clone ${GIT_OPTS} --branch v1.0.0 https://github.com/redis/hiredis.git
     mkdir -p hiredis/build
     pushd hiredis/build
     cmake -DDISABLE_TESTS=ON \
@@ -291,7 +292,7 @@ fi
 
 # Build & Install redis++
 if [ -z "${SKIP_REDISPP}" -a -z "${SKIP_REDIS}" ]; then
-    git clone --branch 1.2.3 --depth 1 https://github.com/sewenew/redis-plus-plus.git
+    git clone ${GIT_OPTS} --branch 1.2.3 https://github.com/sewenew/redis-plus-plus.git
     mkdir -p redis-plus-plus/build
     pushd redis-plus-plus/build
 
@@ -308,7 +309,7 @@ fi
 # Build & Install Fmtlib
 if ! pkg-config "fmt >= 6.1.2" && \
     [ -z "${SKIP_FMTLIB}" ]; then
-    git clone --branch 6.1.2 --depth 1 --recursive https://github.com/fmtlib/fmt.git
+    git clone ${GIT_OPTS} --branch 6.1.2 --recursive https://github.com/fmtlib/fmt.git
     mkdir -p fmt/build
     pushd fmt/build
     cmake -DBUILD_SHARED_LIBS=1 \
@@ -323,7 +324,7 @@ fi
 # Build & Install spdlog
 if ! pkg-config "spdlog >= 1.8.2" && \
     [ -z "${SKIP_SPDLOG}" ]; then
-    git clone --branch v1.8.2 --depth 1 --recursive https://github.com/gabime/spdlog.git
+    git clone ${GIT_OPTS} --branch v1.8.2 --recursive https://github.com/gabime/spdlog.git
     mkdir -p spdlog/build
     pushd spdlog/build
     cmake -DSPDLOG_FMT_EXTERNAL=ON \
@@ -340,7 +341,7 @@ fi
 # Build & Install libwebsockets
 if ! pkg-config "libwebsockets >= 2.3.0" && \
     [ -z "${SKIP_WEBSOCKETS}" ]; then
-    git clone --branch v4.0-stable --depth 1 https://libwebsockets.org/repo/libwebsockets
+    git clone ${GIT_OPTS} --branch v4.0-stable https://libwebsockets.org/repo/libwebsockets
     mkdir -p libwebsockets/build
     pushd libwebsockets/build
     cmake -DLWS_WITH_IPV6=ON \