summaryrefslogtreecommitdiff
path: root/security/openssh/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2004-04-28 03:54:08 +0000
committerjlam <jlam>2004-04-28 03:54:08 +0000
commit758624ee96412b52f92dc6abea91d3c66ec35183 (patch)
treef9059a6c6d0700556983ef2fed50e9d82958ca2a /security/openssh/Makefile
parente37878341cfaf3f9c13fffd3e20430c4b18c7d51 (diff)
downloadpkgsrc-758624ee96412b52f92dc6abea91d3c66ec35183.tar.gz
Building with Kerberos 4 support doesn't work when using mit-krb5. Only
allow building with Kerberos 4 support when using Heimdal and if the kerberosIV headers exist.
Diffstat (limited to 'security/openssh/Makefile')
-rw-r--r--security/openssh/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index e6ea31b70af..f1540987e03 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.131 2004/04/27 21:39:39 markd Exp $
+# $NetBSD: Makefile,v 1.132 2004/04/28 03:54:08 jlam Exp $
DISTNAME= openssh-3.8p1
PKGNAME= openssh-3.8.1
@@ -88,23 +88,22 @@ CONFIGURE_ARGS+= --without-skey
.endif
.if defined(KERBEROS)
-PKG_USE_KERBEROS= yes
-.include "../../mk/krb5.buildlink3.mk"
+. include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE}
CPPFLAGS+= -I${KRB5BASE}/include/krb5
-.if ${OPSYS} != "SunOS"
+. if (${KRB5_TYPE} == "heimdal") && exists(/usr/include/kerberosIV/krb.h)
CONFIGURE_ARGS+= --with-kerberos4=/usr
CPPFLAGS+= -I/usr/include/kerberosIV
# kerberos 5 dependencies are detected correctly.
LDFLAGS+= -lkrb -lcom_err -lroken -ldes -lcrypto
-.endif
+. endif
.endif
-.if ${OPSYS} == "NetBSD" && exists(/usr/include/utmpx.h)
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/utmpx.h)
# if we have utmpx et al do not try to use login()
CONFIGURE_ARGS+= --disable-libutil
.endif
-.if ${OPSYS} == "SunOS" && (${OS_VERSION} == "5.8" || ${OS_VERSION} == "5.9")
+.if (${OPSYS} == "SunOS") && (${OS_VERSION} == "5.8" || ${OS_VERSION} == "5.9")
CONFIGURE_ARGS+= --disable-utmp --disable-wtmp
.endif
@@ -151,6 +150,10 @@ MESSAGE_SUBST+= OPENSSH_GROUP=${OPENSSH_GROUP}
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../security/tcp_wrappers/buildlink3.mk"
+
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}; for file in ${CONFS} ${SUPPS}; do \
@@ -160,8 +163,4 @@ post-install:
# ${INSTALL_DATA} ${WRKSRC}/contrib/sshd.pam.freebsd ${EGDIR}/sshd.pam
#.endif
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
-.include "../../security/tcp_wrappers/buildlink3.mk"
-
.include "../../mk/bsd.pkg.mk"