2019-04-18 18:44:44 +02:00
|
|
|
VERSION="8.0p1"
|
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"
|
2019-04-18 18:44:44 +02:00
|
|
|
SHA256SUM="bd943879e69498e8031eb6b7f44d08cdc37d59a7ab689aa0b437320c3481fd68"
|
2019-03-30 23:28:30 +01:00
|
|
|
DEPENDS="openssl-dev zlib-dev toolchain"
|
2018-02-12 01:27:58 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-11-03 17:32:50 +01:00
|
|
|
return
|
2018-02-12 01:27:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2019-03-06 21:51:55 +01:00
|
|
|
cp "$SOURCE/contrib/ssh-copy-id" "$PKGDEPLOYDIR/bin"
|
2018-08-31 21:30:49 +02:00
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
cat_file_override "sshd_config" > "$PKGDEPLOYDIR/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"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|