From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 22:31:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 371FF1065670 for ; Thu, 26 Feb 2009 22:31:24 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id E0F828FC21 for ; Thu, 26 Feb 2009 22:31:23 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so528296ywt.13 for ; Thu, 26 Feb 2009 14:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=SQstqCBfHZP/nFNDjN8TL3A6to2DYA7NNtr/75D1dZQ=; b=qRsC0kKb+tNE0WTy0WyJmjCGluiv71R0RI3gqNZ0DwSsCWTlXQaUAzIi9urV0w2zr8 R/SVUTnT231u3FyF9TfMFCRUfl6ecrG3aMpm8706iEKkp6xJGGtwEKf1Ta4DT4XvSEPF dLoLwkslU88hkgFLbZSRzbRs42sH2oXjUTU6Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=BBqwxEdOilzOErKAgOhMGpIEp9gXjNZJQs5CNZyBKYX9aE3Zk7x63i/+peRN5gPkxm B2HVz/R+elwVXiFq1vKRTw1MZkIaXXBYnB5BMjZbyBFTzqAzRSnHFwIJWe9pHVAhfNNE gFVJ8TYxemqM1QtRAoVNPCxTUNm5bDXPfMko8= MIME-Version: 1.0 Received: by 10.231.13.136 with SMTP id c8mr2116790iba.45.1235687482500; Thu, 26 Feb 2009 14:31:22 -0800 (PST) In-Reply-To: <200902261323.37744.fbsd.questions@rachie.is-a-geek.net> References: <200902261323.37744.fbsd.questions@rachie.is-a-geek.net> Date: Thu, 26 Feb 2009 15:31:22 -0700 Message-ID: From: Tim Judd To: Mel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Heimdal vs MIT KerberosV X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 22:31:24 -0000 On Thu, Feb 26, 2009 at 3:23 PM, Mel wrote: > On Thursday 26 February 2009 08:48:35 Tim Judd wrote: > > It'd be just as easy for me to build > > MIT krb5 from ports and let it install into /usr/local. That's fine -- > but > > I wanted to stretch my knowledge on FreeBSD and the building process and > > would like to know what it would take to drop in MIT in exchange for > > Heimdal. I'd guess a couple possible ways to do it, but I wanted to ask > > the experts before I broke FreeBSD. :) > > > > Options as I see them: > > 1) Take the port directory and replace the contents of > > /usr/src/kerberos5 with security/krb5 from ports > > 2) Take the tarball from MIT and drop it into /usr/src/kerberos5 > > > > > > If anything were to work, I'd expect #1 to. So what is the expert's > > opinion, is it really this easy? > > Neither will work. The ports build system is a vastly different superset of > the src system. Ports core makefiles are in /usr/ports/Mk, and src > in /usr/share/mk. Ports take very little from /usr/share/mk, only sys.mkfor > default flags, bsd.own.mk for default ownerships, the bsd.ports*.mk to > point > to $PORTSDIR and exclude /etc/src.conf and that's about it. > > Further more, the base system doesn't use 'configure', patches are applied > to > make it work for FreeBSD without this hurdle. In short, if you want to > learn > about the src make system, this isn't a good project. A better project is > read the pmake tutorial, the make(1) manpage, comments in > /usr/share/mk/*.mk > and start writing your own software with this build system. > Start with something like: > ======== > cat < BSDmakefile > PROG=hello > > .include > EOF > cat <<'EOF' > hello.c > #include > > int main(int argc, char **argv) > { > printf("Hello world!\n"); > return 0; > } > EOF > make > ========= > > Building WITHOUT_KERBEROS and installing MIT-port, is best option to use > that > implementation. You may need to remove libraries by hand, not sure if make > delete-old-libs covers it. > -- > Mel > > Problem with today's modular software: they start with the modules > and never get to the software part. > Mel, Thank you very much for the informative reply. It not only gives me a starting point, but it also describes why it won't work in good detail. I always look forward to your posts -- for they're very well done. I will personally archive this off, because it's information is like gold to me, especially when I'm so new to altering OS functions... Thanks again.