pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/amanda-common If /usr/bin/ssh doesn't exist a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f11cd8c2224
branches:  trunk
changeset: 604004:5f11cd8c2224
user:      sbd <sbd%pkgsrc.org@localhost>
date:      Sun May 20 11:14:33 2012 +0000

description:
If /usr/bin/ssh doesn't exist add openssh depenedance.

diffstat:

 sysutils/amanda-common/options.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3fa7814e71c6 -r 5f11cd8c2224 sysutils/amanda-common/options.mk
--- a/sysutils/amanda-common/options.mk Sun May 20 11:13:35 2012 +0000
+++ b/sysutils/amanda-common/options.mk Sun May 20 11:14:33 2012 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index