summaryrefslogtreecommitdiffstats
path: root/core/modules/usbguard
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-09 14:14:34 +0200
committerSimon Rettberg2021-07-09 14:14:34 +0200
commit9b9e3b19cdccf5e442c129d4814da7987afb16a7 (patch)
tree803302a75fd40c039cf2eb35055001c2c5053570 /core/modules/usbguard
parentRequire explicit confgig for distcc/ccache, print local config (diff)
downloadmltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.gz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.xz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.zip
Use autoclone where possible
Diffstat (limited to 'core/modules/usbguard')
-rw-r--r--core/modules/usbguard/module.build5
-rw-r--r--core/modules/usbguard/module.conf3
2 files changed, 2 insertions, 6 deletions
diff --git a/core/modules/usbguard/module.build b/core/modules/usbguard/module.build
index bbf5b330..d4879f91 100644
--- a/core/modules/usbguard/module.build
+++ b/core/modules/usbguard/module.build
@@ -2,10 +2,7 @@ fetch_source() {
[ -d "${MODULE_WORK_DIR}/src/.git" ] && return 0
rm -rf -- "${MODULE_WORK_DIR}/src"
download_untar "${REQUIRED_LIBSODIUM_URL}" "src/libsodium/"
- git clone --depth 1 "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src/usbguard" || perror "Could not clone git to ${MODULE_WORK_DIR}/src/usbguard"
- cd "${MODULE_WORK_DIR}/src/usbguard"
- git checkout "${REQUIRED_COMMIT}" || perror "Could not switch to required commit"
- cd - &>/dev/null
+ autoclone
}
build() {
diff --git a/core/modules/usbguard/module.conf b/core/modules/usbguard/module.conf
index cf9bfc10..61c83b6c 100644
--- a/core/modules/usbguard/module.conf
+++ b/core/modules/usbguard/module.conf
@@ -1,8 +1,7 @@
#!/bin/bash
-REQUIRED_GIT="https://github.com/dkopecek/usbguard.git"
+REQUIRED_GIT="https://github.com/dkopecek/usbguard.git||4ba9fbb337da439a1bcff6886847fb24b3df95b3"
REQUIRED_LIBSODIUM_URL="https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz"
REQUIRED_LIBSODIUM_UNTAR_NAME="libsodium-1.0.16"
-REQUIRED_COMMIT="4ba9fbb337da439a1bcff6886847fb24b3df95b3"
REQUIRED_BINARIES="usbguard usbguard-daemon"
REQUIRED_LIBRARIES=""
REQUIRED_DIRECTORIES="/"