summaryrefslogtreecommitdiff
path: root/security/openssh
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-04-27 12:21:49 +0000
committermarkd <markd@pkgsrc.org>2004-04-27 12:21:49 +0000
commitddc2279c9a0007ca165276a5599babae7b8fa06f (patch)
tree6532f0c4684a50717075200a326e845db36a1cd5 /security/openssh
parent7e2c1fed6a47fcc759c254c469ef905343a640cc (diff)
downloadpkgsrc-ddc2279c9a0007ca165276a5599babae7b8fa06f.tar.gz
Use krb5.buildlink3.mk to find krb5 locations.
Diffstat (limited to 'security/openssh')
-rw-r--r--security/openssh/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index 1e5a5bf1a97..2b9f738c18f 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.126 2004/04/25 23:36:52 wiz Exp $
+# $NetBSD: Makefile,v 1.127 2004/04/27 12:21:49 markd Exp $
DISTNAME= openssh-3.8p1
PKGNAME= openssh-3.8.1
@@ -28,7 +28,7 @@ CRYPTO= yes
# retain the following line, for IPv6-ready pkgsrc webpage
BUILD_DEFS+= USE_INET6
-#BUILD_DEFS+= KERBEROS
+BUILD_DEFS+= KERBEROS
.include "../../mk/bsd.prefs.mk"
@@ -89,12 +89,14 @@ CONFIGURE_ARGS+= --without-skey
.if defined(KERBEROS)
PKG_USE_KERBEROS= yes
+.include "../../mk/krb5.buildlink3.mk"
+CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE}
+CPPFLAGS+= -I${KRB5BASE}/include/krb5
+.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+= --with-kerberos4=/usr
-CONFIGURE_ARGS+= --with-kerberos5=/usr
-CPPFLAGS+= -I/usr/include/krb5
CPPFLAGS+= -I/usr/include/kerberosIV
# kerberos 5 dependencies are detected correctly.
-LDFLAGS+= -lkrb -lcom_err -lroken -ldes
+LDFLAGS+= -lkrb -lcom_err -lroken -ldes -lcrypto
.endif
# The ssh-askpass program is in ${X11BASE}/bin or ${X11PREFIX}/bin depending