diff options
author | knu <knu@FreeBSD.org> | 2002-04-02 12:49:20 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-04-02 12:49:20 +0800 |
commit | 48db52a3881e331c1a6036675a079b7f3dbd569a (patch) | |
tree | 7d59b5219944cce8b34f645ef75d1b74afaadb96 /security/ssh2 | |
parent | 5c8f3a4bc8aac130061f09ae0b9ca5da7698ae5b (diff) | |
download | freebsd-ports-gnome-48db52a3881e331c1a6036675a079b7f3dbd569a.tar.gz freebsd-ports-gnome-48db52a3881e331c1a6036675a079b7f3dbd569a.tar.zst freebsd-ports-gnome-48db52a3881e331c1a6036675a079b7f3dbd569a.zip |
ssh_askpass2 is built only when X11 is installed. Support
{WITH,WITHOUT}_X11 and detect ${X11BASE}/lib/libX11.a.
Reported by: bento
Obtained from: security/ssh (partly)
Diffstat (limited to 'security/ssh2')
-rw-r--r-- | security/ssh2/Makefile | 8 | ||||
-rw-r--r-- | security/ssh2/pkg-plist | 2 |
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 |