From owner-freebsd-stable@FreeBSD.ORG Mon Jun 30 08:40:45 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41B3637B401 for ; Mon, 30 Jun 2003 08:40:45 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D717B43FA3 for ; Mon, 30 Jun 2003 08:40:43 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from ADMIN00 (admin00.westbend.net [216.47.253.17]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h5UFecC4086843; Mon, 30 Jun 2003 10:40:38 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <00a501c33f1d$f37d9140$11fd2fd8@westbend.net> From: "Scot W. Hetzel" To: "Vivek Khera" , "Melvyn Sopacua" References: <200306281217.52962.freebsd-stable@webteckies.org> <16128.16443.484759.953220@yertle.int.kciLink.com> Date: Mon, 30 Jun 2003 10:40:36 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=1.0 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, UPPERCASE_25_50,USER_AGENT_OE version=2.43 X-Spam-Level: * cc: freebsd-stable@freebsd.org Subject: Re: Hardcoded krb reference in ports/postfix X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 15:40:45 -0000 From: "Vivek Khera" > >>>>> "MS" == Melvyn Sopacua writes: > > MS> AFAIK - my /usr/lib/libkrb.a stems from the 4.2-RELEASE cd install I started > MS> this comp with (it's dated Nov 2000) and thus hasn't been updated since and > > Then delete the file. If it exists, it is assumed you use kerberos in > the current 4.x releases. It doesn't exist otherwise. > > Patches to alter the bahavior are welcome, if you don't agree with > this. > I had to deal with this problem in the security/cyrus-sasl port where /usr/lib/krb.a existed but the user didn't want it or needs to use the krb4 port due to Kerberos IV is no longer in -CURRENT. I use the following, which allows -CURRENT and -STABLE users to use the security/krb4 port, or use Kerberos IV libraries that is built during a buildworld on on systems who's OSVERSION is <+ 500105: # KERBEROS 4 was removed in FreeBSD 5.0-CURRENT .if ${OSVERSION} > 500105 .if defined(WITH_KERBEROS4) LIB_DEPENDS+= krb.2:${PORTSDIR}/security/krb4 CONFIGURE_ARGS+= --enable-krb4=${LOCALBASE}/krb4 .else CONFIGURE_ARGS+= --disable-krb4 EBONES= "@comment " .endif .elif exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) && !defined(WITHOUT_KERBEROS4) CONFIGURE_ARGS+= --enable-krb4 .elif !exists(/usr/lib/libkrb.a) && defined(WITH_KERBEROS4) LIB_DEPENDS+= krb.2:${PORTSDIR}/security/krb4 CONFIGURE_ARGS+= --enable-krb4=${LOCALBASE}/krb4 .else CONFIGURE_ARGS+= --disable-krb4 EBONES= "@comment " .endif I use two *_KERBEROS4 variables: WITH_KERBEROS4 -CURRENT: Selects the security/krb4 port -STABLE: Selects the security/krb4 port if /usr/lib/libkrb.a dosen't exist. WITHOUT_KERBEROS4 OSVERSION <= 500105: Used to deselect Kerberos IV if MAKE_KERBEROS4 is defined in /etc/make.conf. Scot