bl3ify and convert to use krb5.buildlink3.mk for proper Kerberos
detection and linkage. This fixes PR 24498.
This commit is contained in:
parent
acebb9db3c
commit
342197e64b
4 changed files with 37 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2004/02/08 03:00:29 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2004/03/23 06:13:30 jlam Exp $
|
||||
|
||||
PKGNAME= ${DISTNAME:S/cyrus-sasl/cy-login/}
|
||||
COMMENT= Cyrus SASL LOGIN authentication plugin
|
||||
|
@ -12,7 +12,7 @@ SASL_PLUGIN= YES
|
|||
CONFIGURE_ARGS+= --enable-login # LOGIN
|
||||
CONFIGURE_ARGS+= --enable-plain # PLAIN
|
||||
.if defined(USE_PAM)
|
||||
. include "../../security/PAM/buildlink2.mk"
|
||||
. include "../../security/PAM/buildlink3.mk"
|
||||
BUILD_DEFS+= USE_PAM
|
||||
CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam}
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.41 2003/11/12 03:39:42 jschauma Exp $
|
||||
# $NetBSD: Makefile,v 1.42 2004/03/23 06:13:30 jlam Exp $
|
||||
|
||||
.include "Makefile.common"
|
||||
|
||||
|
@ -14,17 +14,19 @@ CONFIGURE_ARGS+= --enable-cram # CRAM-MD5
|
|||
|
||||
CONFIGURE_ARGS+= --enable-plain # PLAIN
|
||||
.if defined(USE_PAM)
|
||||
. include "../../security/PAM/buildlink2.mk"
|
||||
. include "../../security/PAM/buildlink3.mk"
|
||||
BUILD_DEFS+= USE_PAM
|
||||
CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam}
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+= --enable-digest # DIGEST-MD5
|
||||
CONFIGURE_ARGS+= --with-rc4=${SSLBASE}
|
||||
.include "../../security/openssl/buildlink2.mk"
|
||||
.include "../../security/openssl/buildlink3.mk"
|
||||
|
||||
.if defined(SASL_USE_GSSAPI) && ${SASL_USE_GSSAPI} == "YES"
|
||||
CONFIGURE_ARGS+= --enable-gssapi=/usr # GSSAPI
|
||||
.if defined(KERBEROS) || \
|
||||
(defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS]))
|
||||
. include "../../mk/krb5.buildlink3.mk"
|
||||
CONFIGURE_ARGS+= --enable-gssapi=${KRB5BASE} # GSSAPI
|
||||
PLIST_SRC+= ${.CURDIR}/PLIST.krb5
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.common,v 1.5 2004/01/24 15:00:22 grant Exp $
|
||||
# $NetBSD: Makefile.common,v 1.6 2004/03/23 06:13:30 jlam Exp $
|
||||
#
|
||||
# This Makefile fragment should be included _below_ and SASL_PLUGIN
|
||||
# definition and _above_ any CONFIGURE_ARGS definitions.
|
||||
|
@ -19,11 +19,10 @@ PATCHDIR= ${.CURDIR}/../cyrus-sasl/patches
|
|||
DEPENDS+= cyrus-sasl>=1.5.27:../../security/cyrus-sasl
|
||||
.endif
|
||||
|
||||
USE_BUILDLINK2= YES
|
||||
GNU_CONFIGURE= YES
|
||||
USE_BUILDLINK3= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GNU_TOOLS+= make
|
||||
USE_LIBTOOL= YES
|
||||
LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
|
|
24
security/cyrus-sasl/buildlink3.mk
Normal file
24
security/cyrus-sasl/buildlink3.mk
Normal file
|
@ -0,0 +1,24 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2004/03/23 06:13:30 jlam Exp $
|
||||
|
||||
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
||||
CYRUS_SASL_BUILDLINK3_MK:= ${CYRUS_SASL_BUILDLINK3_MK}+
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.if !empty(BUILDLINK_DEPTH:M+)
|
||||
BUILDLINK_DEPENDS+= cyrus-sasl
|
||||
.endif
|
||||
|
||||
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncyrus-sasl}
|
||||
BUILDLINK_PACKAGES+= cyrus-sasl
|
||||
|
||||
.if !empty(CYRUS_SASL_BUILDLINK3_MK:M+)
|
||||
BUILDLINK_DEPENDS.cyrus-sasl+= cyrus-sasl>=1.5.27nb3
|
||||
BUILDLINK_PKGSRCDIR.cyrus-sasl?= ../../security/cyrus-sasl
|
||||
.endif # CYRUS_SASL_BUILDLINK3_MK
|
||||
|
||||
.if defined(USE_PAM)
|
||||
. include "../../security/PAM/buildlink3.mk"
|
||||
.endif
|
||||
|
||||
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|
Loading…
Reference in a new issue