diff options
author | Michael Haro <mharo@FreeBSD.org> | 2000-04-02 04:26:02 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 2000-04-02 04:26:02 +0000 |
commit | 28b70c3cc17827bd71fb0ef2339d18f96b0b1f6c (patch) | |
tree | e27e5b4a99503f49d077c2e2ed474e35ca8e4fec /net/mpich | |
parent | Activate oidentd (diff) |
use ssh in base system, if it exists.
PR: 17520
Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
Notes
Notes:
svn path=/head/; revision=27271
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> |