diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index b8435084a0..d445c0fc71 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -7,7 +7,7 @@ configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh --sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody --with-mantype=man --without-rpath --with-xauth=/usr/bin/xauth --with-ssl-engine --disable-strip --with-privsep-path=/var/chroot/ssh - --with-kerberos5=/usr --with-pid-dir=/run --with-pam LD=$CC" + --with-pid-dir=/run --with-pam LD=$CC" hostmakedepends="perl" makedepends="zlib-devel openssl-devel pam-devel mit-krb5-devel" short_desc="The OpenSSH implementation of SSH protocol versions 1 and 2 (client)" @@ -17,6 +17,12 @@ license="BSD" distfiles="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$version.tar.gz" checksum=7f29b9d2ad672ae0f9e1dcbff871fc5c2e60a194e90c766432e32161b842313b +if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-kerberos5=$XBPS_CROSS_BASE" +else + configure_args+=" --with-kerberos5=/usr" +fi + post_install() { vinstall contrib/sshd.pam.generic 644 etc/pam.d sshd vinstall contrib/ssh-copy-id 755 usr/bin