From d0e9933400b1f4eb40f5031d352de20ecab382d6 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 14 Sep 1999 02:32:21 +0000 Subject: Change how Kerberos support is enabled in pkgsrc. Quick guide for compiling packages: - set KERBEROS=4 or KERBEROS=5 in /etc/mk.conf Quick guide for configuring Kerberos support in a package Makefile: - test for KERBEROS value and enable the appropriate version with CONFIGURE_ARGS or other means and set USE_KERBEROS=yes - make sure to disable Kerberos support otherwise (especially if using configure, which might automatically detect it) - BUILD_DEFS and RESTRICTED are set automatically in bsd.pkg.mk when USE_KERBEROS=yes is set --- mail/fetchmail/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mail/fetchmail') diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index f87133a3e1e..1110d2cd214 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.52 1999/09/03 22:00:52 tron Exp $ +# $NetBSD: Makefile,v 1.53 1999/09/14 02:32:24 kim Exp $ # DISTNAME= fetchmail-5.0.7 @@ -15,14 +15,17 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf GNU_CONFIGURE= yes CONFIGURE_ENV= LDFLAGS="${CFLAGS}" -BUILD_DEFS+= USE_KERBEROS4 USE_INET6 +BUILD_DEFS+= USE_INET6 .include "../../mk/bsd.prefs.mk" -.if defined(USE_KERBEROS4) +.if defined(KERBEROS) && ${KERBEROS} == 4 +USE_KERBEROS= yes CONFIGURE_ARGS+=--with-kerberos=yes -RESTRICTED= uses Kerberos encryption code +.else +CONFIGURE_ARGS+=--with-kerberos=no .endif + .if defined(USE_INET6) && ${USE_INET6} == YES CONFIGURE_ARGS+=--enable-inet6 .endif -- cgit v1.2.3