summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorsbd <sbd>2012-05-20 11:14:33 +0000
committersbd <sbd>2012-05-20 11:14:33 +0000
commit7e8f443dfe663a7d54e88564441b339082aec71e (patch)
tree8337545b9fffd7826995802030777f03df407184 /sysutils
parent2e071e5158325afefd4f3bd72a73b640ec9ec16d (diff)
downloadpkgsrc-7e8f443dfe663a7d54e88564441b339082aec71e.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