Subject: Re: USE_SSH, comments please
To: None <mcmahill@mtl.mit.edu>
From: Frederick Bruckman <fb@enteract.com>
List: tech-pkg
Date: 08/24/2000 20:05:57
On Thu, 24 Aug 2000 mcmahill@mtl.mit.edu wrote:

> I want to be sure that the user can over ride a default if they choose.
> Thoughts on that?

Of course. That's what '?=' is for. It might be even more natural,
though, to accept whatever "ssh" is installed, but pull in in openssh
if necessary. The following assumes the user will set SSH_PKG if he
has a preference.

.if defined(USE_SSH) && !defined(SSH)
.if exists(/usr/bin/ssh)
SSH=		/usr/bin/ssh
.elif defined(SSH_PKG)
SSH=		${LOCALBASE}/bin/ssh
DEPENDS+=	${SSH_PKG}-*:../../security/${SSH_PKG}
.else
SSH=		${LOCALBASE}/bin/ssh
DEPENDS+=	{,open}ssh{,6}-*:../../security/openssh
.endif
.endif # need "SSH"



Frederick