aboutsummaryrefslogtreecommitdiff
path: root/security/ssh2
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-04-02 04:49:20 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-04-02 04:49:20 +0000
commit5e7984ac3c8cd6a0ad9be67af6061207ed377c4d (patch)
tree674f91d569ecd5519bec257e027ff6ff0ccc3b68 /security/ssh2
parent1fd5ef0385d91b6685ee234326524932fae7321c (diff)
downloadports-5e7984ac3c8cd6a0ad9be67af6061207ed377c4d.tar.gz
ports-5e7984ac3c8cd6a0ad9be67af6061207ed377c4d.zip
Notes
Diffstat (limited to 'security/ssh2')
-rw-r--r--security/ssh2/Makefile8
-rw-r--r--security/ssh2/pkg-plist2
2 files changed, 9 insertions, 1 deletions
diff --git a/security/ssh2/Makefile b/security/ssh2/Makefile
index 03d92264ea5e..73c6126417b6 100644
--- a/security/ssh2/Makefile
+++ b/security/ssh2/Makefile
@@ -41,6 +41,14 @@ CONFIGURE_ARGS+= --with-libwrap="-L${LOCALBASE}/lib -lwrap"
LIB_DEPENDS+= wrap.7:${PORTSDIR}/security/tcp_wrapper
.endif
+.if defined(WITH_X11) || (exists(${X11BASE}/lib/libX11.a) \
+ && !defined(WITHOUT_X11))
+USE_XLIB= yes
+PLIST_SUB= WITH_X11:=""
+.else
+PLIST_SUB= WITH_X11:="@comment "
+.endif
+
MAN1= ssh2.1 ssh-keygen2.1 ssh-add2.1 ssh-agent2.1 scp2.1 sftp2.1 \
sshregex.1 ssh-probe2.1 ssh-dummy-shell.1 ssh-pubkeymgr.1 \
ssh-chrootmgr.1
diff --git a/security/ssh2/pkg-plist b/security/ssh2/pkg-plist
index 986c688694bb..9352c29c4bcc 100644
--- a/security/ssh2/pkg-plist
+++ b/security/ssh2/pkg-plist
@@ -6,7 +6,7 @@ bin/ssh-keygen2
bin/ssh-add2
bin/ssh-signer2
bin/ssh-probe2
-bin/ssh-askpass2
+%%WITH_X11:%%bin/ssh-askpass2
bin/ssh-pam-client
bin/sftp-server2
bin/ssh-dummy-shell