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 | |
| 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')
| -rw-r--r-- | remote/modules/redsocks/module.build | 24 | ||||
| -rw-r--r-- | remote/modules/redsocks/module.conf | 6 | ||||
| -rw-r--r-- | remote/modules/redsocks/module.conf.debian | 3 | ||||
| -rw-r--r-- | remote/modules/redsocks/module.conf.opensuse | 3 | ||||
| -rw-r--r-- | remote/modules/redsocks/module.conf.ubuntu | 3 |
5 files changed, 39 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 +} + diff --git a/remote/modules/redsocks/module.conf b/remote/modules/redsocks/module.conf new file mode 100644 index 00000000..62c15c70 --- /dev/null +++ b/remote/modules/redsocks/module.conf @@ -0,0 +1,6 @@ +REQUIRED_GIT="git://github.com/darkk/redsocks.git" +REQUIRED_REVISION="2e3f648809e27cc19cb7a8702f19b553a7ef9a81" +REQUIRED_BINARIES=" + redsocks +" + diff --git a/remote/modules/redsocks/module.conf.debian b/remote/modules/redsocks/module.conf.debian new file mode 100644 index 00000000..da41b04e --- /dev/null +++ b/remote/modules/redsocks/module.conf.debian @@ -0,0 +1,3 @@ +REQUIRED_INSTALLED_PACKAGES=" + libevent-dev +" diff --git a/remote/modules/redsocks/module.conf.opensuse b/remote/modules/redsocks/module.conf.opensuse new file mode 100644 index 00000000..fcc0fb45 --- /dev/null +++ b/remote/modules/redsocks/module.conf.opensuse @@ -0,0 +1,3 @@ +REQUIRED_INSTALLED_PACKAGES=" + libevent-devel +" diff --git a/remote/modules/redsocks/module.conf.ubuntu b/remote/modules/redsocks/module.conf.ubuntu new file mode 100644 index 00000000..da41b04e --- /dev/null +++ b/remote/modules/redsocks/module.conf.ubuntu @@ -0,0 +1,3 @@ +REQUIRED_INSTALLED_PACKAGES=" + libevent-dev +" |
