summaryrefslogtreecommitdiffstats
path: root/core/modules/redsocks
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/redsocks
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/redsocks')
-rw-r--r--core/modules/redsocks/module.build12
-rw-r--r--core/modules/redsocks/module.conf3
2 files changed, 3 insertions, 12 deletions
diff --git a/core/modules/redsocks/module.build b/core/modules/redsocks/module.build
index b1298c9d..a905d736 100644
--- a/core/modules/redsocks/module.build
+++ b/core/modules/redsocks/module.build
@@ -1,16 +1,8 @@
#!/bin/bash
-#tool/distro specific functions for fetching, building and installing dependencies
-
fetch_source () {
- mkdir -p src
- cde src
- if [ ! -d "redsocks" ]; then
- git clone "$REQUIRED_GIT" "redsocks" || perror "Could not clone redoscks from github"
- fi
- cde redsocks
- git checkout "$REQUIRED_REVISION" || perror "Could not checkout revision $REQUIRED_REVISION"
-}
+ autoclone
+}
build () {
cde "$MODULE_WORK_DIR/src/redsocks"
diff --git a/core/modules/redsocks/module.conf b/core/modules/redsocks/module.conf
index a9093160..56ac3a41 100644
--- a/core/modules/redsocks/module.conf
+++ b/core/modules/redsocks/module.conf
@@ -1,6 +1,5 @@
#!/bin/bash
-REQUIRED_GIT="git://github.com/darkk/redsocks.git"
-REQUIRED_REVISION="2e3f648809e27cc19cb7a8702f19b553a7ef9a81"
+REQUIRED_GIT="git://github.com/darkk/redsocks.git||2e3f648809e27cc19cb7a8702f19b553a7ef9a81"
REQUIRED_BINARIES="
redsocks
"