From 3d1235af060955e271be68240c0ca46bc6d81b03 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 25 Mar 2014 15:24:04 +0100 Subject: [modules] new module naming convention rename $MODULE.{conf,build} to module.{conf,build} --- remote/modules/sshd/module.build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 remote/modules/sshd/module.build (limited to 'remote/modules/sshd/module.build') 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 * +} -- cgit v1.2.3-55-g7522