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/sshd | |
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/sshd')
-rw-r--r-- | remote/modules/sshd/module.build | 20 | ||||
-rw-r--r-- | remote/modules/sshd/module.conf | 3 |
2 files changed, 23 insertions, 0 deletions
diff --git a/remote/modules/sshd/module.build b/remote/modules/sshd/module.build new file mode 100644 index 00000000..ebf42c12 --- /dev/null +++ b/remote/modules/sshd/module.build @@ -0,0 +1,20 @@ +fetch_source() { + : +} + +build() { + + local BIN_LOCATION="$(which sshd)" + [ ! -z "${BIN_LOCATION}" ] && BIN_LOCATION=$(readlink -f "$BIN_LOCATION") + if [ ! -z "${BIN_LOCATION}" -a -e "${BIN_LOCATION}" ]; then + tarcopy "${BIN_LOCATION}" "${MODULE_BUILD_DIR}" + else + perror "'sshd' not found on the system! Please install it." + fi +} + +post_copy() { + mkdir -p "${TARGET_BUILD_DIR}/var/lib/empty" # suse + + chmod go-rwx "${TARGET_BUILD_DIR}/etc/ssh/"* # no space, " before * +} diff --git a/remote/modules/sshd/module.conf b/remote/modules/sshd/module.conf new file mode 100644 index 00000000..25793c72 --- /dev/null +++ b/remote/modules/sshd/module.conf @@ -0,0 +1,3 @@ +REQUIRED_BINARIES="sshd" +REQUIRED_LIBRARIES="" +REQUIRED_DIRECTORIES="" |