diff options
author | mharo <mharo@FreeBSD.org> | 2000-04-02 12:26:02 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 2000-04-02 12:26:02 +0800 |
commit | ee7afd4729f36b6fa9b7116fc1e241df2c5aa332 (patch) | |
tree | 6db8ce339c3412af49bc646bda9cc5dadf2bf90e /net/mpich | |
parent | 28698a91f063874197fb029ceeb59fd975a80cf2 (diff) | |
download | freebsd-ports-gnome-ee7afd4729f36b6fa9b7116fc1e241df2c5aa332.tar.gz freebsd-ports-gnome-ee7afd4729f36b6fa9b7116fc1e241df2c5aa332.tar.zst freebsd-ports-gnome-ee7afd4729f36b6fa9b7116fc1e241df2c5aa332.zip |
use ssh in base system, if it exists.
PR: 17520
Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
Diffstat (limited to 'net/mpich')
-rw-r--r-- | net/mpich/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/net/mpich/Makefile b/net/mpich/Makefile index 1c65b3c88cb9..ccf88df7c6d5 100644 --- a/net/mpich/Makefile +++ b/net/mpich/Makefile @@ -20,14 +20,20 @@ DIST_SUBDIR= mpich HAS_CONFIGURE= yes CONFIGURE_ARGS= -cflags="${CFLAGS}" -prefix=${PREFIX}/mpich +.include <bsd.port.pre.mk> + # Include support for ssh client USE_SSH?= YES # Use ssh instead of rsh -.if defined(USE_SSH) && ${USE_SSH} == YES || \ - exists(${PREFIX}/bin/ssh) && \ +.if ${OSVERSION} >= 400016 && \ + exists(/usr/bin/ssh) && \ + (!defined(USE_SSH) || ${USE_SSH} != NO) +CONFIGURE_ARGS+= -rsh="/usr/bin/ssh" +.elif defined(USE_SSH) && ${USE_SSH} == YES || \ + exists(${LOCALBASE}/bin/ssh) && \ (!defined(USE_SSH) || ${USE_SSH} != NO) RUN_DEPENDS+= ssh:${PORTSDIR}/security/ssh -CONFIGURE_ARGS+= -rsh="${PREFIX}/bin/ssh" +CONFIGURE_ARGS+= -rsh="${LOCALBASE}/bin/ssh" .endif ALL_TARGET= @@ -178,4 +184,4 @@ MAN4= CLOG_Finalize.4 CLOG_Init.4 CLOG_Output.4 CLOG_commtype.4 \ MPE_TagsEnd.4 MPE_Update.4 INSTALL_TARGET= install -.include <bsd.port.mk> +.include <bsd.port.post.mk> |