diff options
| author | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
| commit | 3d1235af060955e271be68240c0ca46bc6d81b03 (patch) | |
| tree | ef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/redsocks/module.build | |
| parent | [rootfs-stage32] /var/log/openslx in tmpfiles.d (diff) | |
| download | tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip | |
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/modules/redsocks/module.build')
| -rw-r--r-- | remote/modules/redsocks/module.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/remote/modules/redsocks/module.build b/remote/modules/redsocks/module.build new file mode 100644 index 00000000..f6a05350 --- /dev/null +++ b/remote/modules/redsocks/module.build @@ -0,0 +1,24 @@ +#tool/distro specific functions for fetching, building and installing dependencies + + +fetch_source () { + mkdir -p src + cd src || perror "Could not cd to src" + if [ ! -d "redsocks" ]; then + git clone "$REQUIRED_GIT" "redsocks" || perror "Could not clone redoscks from github" + fi + cd redsocks || perror "Could not cd to src/redsocks" + git checkout "$REQUIRED_REVISION" || perror "Could not checkout revision $REQUIRED_REVISION" +} + +build () { + cd "$MODULE_DIR/src/redsocks" || perror "src/redsocks not found" + make || perror "make failed." + mkdir -p "$MODULE_BUILD_DIR/sbin" + cp "redsocks" "$MODULE_BUILD_DIR/sbin/" || perror "Could not copy redsocks binary to build dir" +} + +post_copy() { + add_user redsocks +} + |
