mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
37 lines
1,007 B
Text
37 lines
1,007 B
Text
VERSION="8.0p1"
|
|
SRCDIR="openssh-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable"
|
|
SHA256SUM="bd943879e69498e8031eb6b7f44d08cdc37d59a7ab689aa0b437320c3481fd68"
|
|
DEPENDS="openssl-dev zlib-dev toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
run_configure "$1" --with-pie --without-pam --without-stackprotect \
|
|
--without-selinux --disable-strip \
|
|
--with-sandbox=seccomp_filter \
|
|
--with-privsep-path=/var/lib/sshd
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
cp "$SOURCE/contrib/ssh-copy-id" "$PKGDEPLOYDIR/bin"
|
|
|
|
cat_file_override "sshd_config" > "$PKGDEPLOYDIR/etc/sshd_config"
|
|
}
|
|
|
|
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"
|
|
}
|