# Depends on: openssl zlib tcp_wrappers
name=openssh
-version=5.8p2
+version=7.7p1
release=1
-source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
+source=(http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz sshd)
build() {
cd $name-$version
- sed -i 's/p1/p2/' version.h
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--libexecdir=/usr/lib/ssh \
--sysconfdir=/etc/ssh \
--with-mantype=man \
- --mandir=/usr/man \
- --with-tcp-wrappers \
+ --mandir=/usr/share/man \
--with-md5-passwords \
--with-privsep-user=nobody \
--with-privsep-path=/var/empty \
make AR="$AR" RANLIB="$RANLIB" AS="$AS" LD="$CC"
make DESTDIR=$PKG STRIP_OPT="-s --strip-program=$STRIP" AR="$AR" RANLIB="$RANLIB" AS="$AS" install
install -D -m 755 $SRC/sshd $PKG/etc/rc.d/sshd
- rm -rf $PKG/usr/share $PKG/var
+ rm -rf $PKG/var
}