Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2012 15:33:09 -0400
From:      Wesley Shields <wxs@FreeBSD.org>
To:        Robert Simmons <rsimmons0@gmail.com>
Cc:        joerg.pulz@frm2.tum.de, freebsd-ports@freebsd.org
Subject:   Re: More Heimdal 1.5.2 port problems
Message-ID:  <20120527193309.GC38274@atarininja.org>
In-Reply-To: <CA%2BQLa9B3ZkCOV9R0jgqnUCgRhjRJ9F9h0k_9xZ39J9i-0Ku92w@mail.gmail.com>
References:  <CA%2BQLa9BKDeasr8xe=KSCVVFvOHmBGQ=Mo2am_3PRFgRxsxRf-A@mail.gmail.com> <CA%2BQLa9B3ZkCOV9R0jgqnUCgRhjRJ9F9h0k_9xZ39J9i-0Ku92w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 27, 2012 at 01:58:23PM -0400, Robert Simmons wrote:
> On Sat, May 26, 2012 at 3:22 PM, Robert Simmons <rsimmons0@gmail.com> wrote:
> > I've found another problem with the port.
> >
> > kadmind and kdc both look for krb5.conf in /usr/local/etc, but
> > kpasswdd and kstash look for it in /etc. ?This can be fixed with a
> > symlink, but I feel like that's not the best solution. ?Ultimately,
> > all the heimdal utilities and daemons should be looking in the same
> > location for krb5.conf, correct?
> >
> > I don't see any flags for kstash or kpasswdd to change where they look
> > for krb5.conf.
> >
> > I'm going to go back and compile it from source again and see if there
> > is another configure flag that is missing from the port.
> 
> I've attached a patch for this problem.  Please review it and make
> sure this is the right way to fix the problem.

> --- Makefile.old	2012-05-27 13:53:01.132516965 -0400
> +++ Makefile	2012-05-27 13:54:13.928517659 -0400
> @@ -7,7 +7,7 @@
>  
>  PORTNAME=	heimdal
>  PORTVERSION=	1.5.2
> -PORTREVISION=	2
> +PORTREVISION=	3
>  CATEGORIES=	security ipv6
>  MASTER_SITES=	http://www.h5l.org/dist/src/ \
>  		http://ftp.pdc.kth.se/pub/heimdal/src/ \
> @@ -39,7 +39,8 @@
>  CONFIGURE_ARGS+=	--with-libintl=${LOCALBASE} \
>  			--with-readline=${DESTDIR}/usr \
>  			--enable-pthread-support \
> -			--with-hdbdir=/var/db/${PORTNAME}
> +			--with-hdbdir=/var/db/${PORTNAME} \
> +			--sysconfdir=${LOCALBASE}/etc
>  MAKE_ENV+=	INSTALL_CATPAGES=no

You want to use PREFIX instead of LOCALBASE for sysconfdir.

PREFIX is where the port will install into, LOCALBASE is where the
dependencies will be looked for. It's almost always the case that PREFIX
is the same as LOCALBASE but we should support them being different.

Otherwise the patch looks sane to me. Awaiting Joerg's input before I
commit. Thanks again!

-- WXS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120527193309.GC38274>