2018-08-31 15:15:21 +02:00
|
|
|
VERSION="7.8p1"
|
2018-02-12 01:27:58 +01:00
|
|
|
SRCDIR="openssh-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable"
|
2018-08-31 15:15:21 +02:00
|
|
|
SHA256SUM="1a484bb15152c183bb2514e112aa30dd34138c3cfb032eee5490a66c507144ca"
|
2018-02-12 01:27:58 +01:00
|
|
|
DEPENDS="openssl zlib"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
apply_patches
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --with-pie --without-pam --without-stackprotect \
|
2018-02-16 23:22:04 +01:00
|
|
|
--without-selinux --disable-strip \
|
|
|
|
--with-sandbox=seccomp_filter \
|
|
|
|
--with-privsep-path=/var/lib/sshd
|
2018-02-12 01:27:58 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-02-12 01:27:58 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-02-12 01:27:58 +01:00
|
|
|
mkdir -p "$DEPLOY/var/lib/sshd"
|
|
|
|
install -v -m755 "$SOURCE/contrib/ssh-copy-id" "$DEPLOY/bin"
|
2018-08-31 21:30:49 +02:00
|
|
|
|
|
|
|
cat_file_override "sshd_config" > "$DEPLOY/etc/sshd_config"
|
2018-02-12 01:27:58 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
local version=$(echo $VERSION | sed 's/p/./g')
|
|
|
|
|
|
|
|
curl --silent -L "$URL" | grep -o ">openssh-[0-9.]*p[0-9]*.tar.gz<" | \
|
|
|
|
sed 's/>openssh-//g' | sed 's/.tar.gz<//g' | sed 's/p/./g' | \
|
|
|
|
verson_find_greatest "$version"
|
|
|
|
}
|