summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-08-18 11:10:08 +0000
committerobache <obache@pkgsrc.org>2007-08-18 11:10:08 +0000
commit45fe7aeabf7c14c204e4668d135656147d17f466 (patch)
tree283627ab6f65769b82a5001d8a1e31a0619b5274 /security
parent7b0b779d9fdbc81a695b3ebb774b3a6bc1345501 (diff)
downloadpkgsrc-45fe7aeabf7c14c204e4668d135656147d17f466.tar.gz
Fix build problem on ssh-less environment, reported in PR 36793.
Let to depend on ssh package.
Diffstat (limited to 'security')
-rw-r--r--security/seahorse/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/security/seahorse/Makefile b/security/seahorse/Makefile
index a2e9d52831e..fb3f3173e74 100644
--- a/security/seahorse/Makefile
+++ b/security/seahorse/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2007/08/18 07:28:48 obache Exp $
+# $NetBSD: Makefile,v 1.64 2007/08/18 11:10:08 obache Exp $
DISTNAME= seahorse-1.0.1
PKGREVISION= 1
@@ -12,6 +12,17 @@ COMMENT= GnuPG front end and bonobo component for GNOME
DEPENDS+= gnupg>=1.2.1:../../security/gnupg
+.if exists(/usr/bin/ssh) && exists(/usr/bin/ssh-add) && exists(/usr/bin/ssh-keygen)
+SSH_PATH=/usr/bin/ssh
+SSH_ADD_PATH=/usr/bin/ssh-add
+SSH_KEYGEN_PATH=/usr/bin/ssh-keygen
+.else
+DEPENDS+= {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh
+SSH_PATH=${PREFIX}/bin/ssh
+SSH_ADD_PATH=${PREFIX}/bin/ssh-add
+SSH_KEYGEN_PATH=${PREFIX}/ssh-keygen
+.endif
+
GNU_CONFIGURE= yes
USE_DIRS+= gnome2-1.5
USE_TOOLS+= gmake intltool msgfmt pkg-config
@@ -20,6 +31,9 @@ USE_PKGLOCALEDIR= yes
CONFIGURE_ARGS+= --disable-gedit
CONFIGURE_ARGS+= --disable-nautilus
+CONFIGURE_ENV+= SSH_PATH=${SSH_PATH:Q}
+CONFIGURE_ENV+= SSH_ADD_PATH=${SSH_ADD_PATH:Q}
+CONFIGURE_ENV+= SSH_KEYGEN_PATH=${SSH_KEYGEN_PATH:Q}
PKGCONFIG_OVERRIDE+= libcryptui/cryptui.pc.in
GCONF2_SCHEMAS= seahorse.schemas