diff options
-rw-r--r-- | crypto/openssh/includes.h | 2 | ||||
-rw-r--r-- | secure/usr.bin/ssh/Makefile | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/crypto/openssh/includes.h b/crypto/openssh/includes.h index 848a82f..9e181a7 100644 --- a/crypto/openssh/includes.h +++ b/crypto/openssh/includes.h @@ -58,7 +58,9 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #include "version.h" /* Define this to be the path of the xauth program. */ +#ifndef XAUTH_PATH #define XAUTH_PATH "/usr/X11R6/bin/xauth" +#endif /* * Define this to use pipes instead of socketpairs for communicating with the diff --git a/secure/usr.bin/ssh/Makefile b/secure/usr.bin/ssh/Makefile index 2c7f18a..91900bf 100644 --- a/secure/usr.bin/ssh/Makefile +++ b/secure/usr.bin/ssh/Makefile @@ -36,5 +36,9 @@ DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT} .include <bsd.prog.mk> +.if defined(X11BASE) +CFLAGS+= -DXAUTH_PATH=${X11BASE}/bin/xauth +.endif + LDADD+= -L${.OBJDIR}/../../lib/libssh -lssh -lcrypto -lutil -lz DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} |