summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-05-20 11:14:33 +0000
committersbd <sbd@pkgsrc.org>2012-05-20 11:14:33 +0000
commit838abe2c35cd97fec924d4f5d73c1e59e575309b (patch)
tree8337545b9fffd7826995802030777f03df407184 /sysutils
parent0c193e1ad0e05fb69e7c2da23b254d39b217f535 (diff)
downloadpkgsrc-838abe2c35cd97fec924d4f5d73c1e59e575309b.tar.gz
If /usr/bin/ssh doesn't exist add openssh depenedance.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/amanda-common/options.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysutils/amanda-common/options.mk b/sysutils/amanda-common/options.mk
index 292d8f4ee52..754176baf97 100644
--- a/sysutils/amanda-common/options.mk
+++ b/sysutils/amanda-common/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2012/05/20 11:13:35 sbd Exp $
+# $NetBSD: options.mk,v 1.3 2012/05/20 11:14:33 sbd Exp $
# Since amanda's ipv6 usage is broken, turn it off by default.
@@ -23,4 +23,11 @@ CONFIGURE_ARGS+= --with-fqdn
.if !empty(PKG_OPTIONS:Mamanda-ssh)
CONFIGURE_ARGS+= --with-ssh-security
+
+. if !exists(/usr/bin/ssh)
+DEPENDS+= openssh-[0-9]*:../../security/openssh
+FIND_PREFIX:= SSHPREFIX=openssh
+.include "../../mk/find-prefix.mk"
+CONFIGURE_ENV+= ac_cv_path_SSH=${SSHPREFIX}/bin/ssh
+. endif
.endif