Subject: Re: detecting ssh
To: None <kent@goathill.org>
From: Mike Pelley <mike@pelley.com>
List: tech-pkg
Date: 09/13/2001 13:36:25
>
>
>>>Should I just do
>>>
>>>.if !exists(/usr/bin/ssh-agent)
>>>DEPENDS+=	...
>>>.endif
>>>
>>>or should I check for the operating system version and assume that
>>>after certain release there is ssh included in the operating system?
>>>Which is the "right" way to do this?
>>>
>Shouldn't one check for /usr/pkg/bin/ssh-agent or some other
>mechanism also? Especially such as with 1.5.1 where the included
>ssh doesn't have the ssh2 compatibility patch and openssh from
>pkgsrc needs to be installed to work with ssh2? /usr/bin/ssh* may
>have been removed or otherwise worked around.
>
The DEPENDS+=ssh-* will check for the ssh package (and hence 
/usr/pkg/bin/ssh-agent) as part of the standard package make.

Mike.