summaryrefslogtreecommitdiffstats
path: root/core/modules/sshd/module.build
blob: 2bcac7ae8f724d06ab52e50eeb4c8404ecb803ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
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"
}