summaryrefslogtreecommitdiffstats
path: root/core/modules/sshd/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/sshd/module.build')
-rw-r--r--core/modules/sshd/module.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/modules/sshd/module.build b/core/modules/sshd/module.build
new file mode 100644
index 00000000..ebf42c12
--- /dev/null
+++ b/core/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 *
+}