From owner-freebsd-ports@FreeBSD.ORG Wed Mar 26 03:25:58 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9949836D for ; Wed, 26 Mar 2014 03:25:58 +0000 (UTC) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 26102E05 for ; Wed, 26 Mar 2014 03:25:57 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id n12so884515wgh.12 for ; Tue, 25 Mar 2014 20:25:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=i5BXG4SgpiFVqU+g1IMS7n8aoVZwr3tWmgIDodRdsRo=; b=D/NKsHl4cEi0PCU3uQ0ZGEsrq/6Anan2PjDpZbiU0JGmMMaOFZ6sY1fiHYkYyeu4gi 64up1zYioWuw7YvpSQTwL9sluo1cJhD2rkAOyw0QYiZpsSGZqigct8ItQq3Op0K01Uei lYp9sJ8zD7MQ1FIEkOvHw+vjs7u+JEukvOGS/JZ2ar+0C0JVSKiLGgBCg4JnZMKJ/ATo 4cFq7epGX2qiH75cs61ucJGcpgevI1LaTtUR7NIISXw9332FrBEQMC/MJJroUC5uMd+U sNq3/AY57dCfQqM7UhVS7bTmediu4kqADLHa+gk7JrRI0T1StL5ShFUz3SmCkXscJLEs aFQA== X-Gm-Message-State: ALoCoQmhwA1gktRLBjWWGA7zHoaZcWpWZ8EDl/tViYbWsIREYR6QBEfZjJgpzHwHN8Oa+Jn0YNDX X-Received: by 10.180.106.134 with SMTP id gu6mr27553794wib.61.1395804350338; Tue, 25 Mar 2014 20:25:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.152.130 with HTTP; Tue, 25 Mar 2014 20:25:30 -0700 (PDT) In-Reply-To: <5328F974.9090303@heuristicsystems.com.au> References: <5328F974.9090303@heuristicsystems.com.au> From: "Timur I. Bakeyev" Date: Wed, 26 Mar 2014 04:25:30 +0100 Message-ID: Subject: Re: Accommodating the security/heimdal port on FreeBSD10 To: Dewayne Geraghty Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "ports@FreeBSD.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 03:25:58 -0000 Kerberos5 support in the ports needs love and it's own .mk infrastructure. Wish I have enough overview of what is needed by various ports in that respect. With regards, Timur Bakeyev. On Wed, Mar 19, 2014 at 2:57 AM, Dewayne Geraghty < dewayne.geraghty@heuristicsystems.com.au> wrote: > Some port maintainers on FreeBSD 10 are modifying various ports to > accommodate gssapi use from heimdal base. Typically the change is > something like > ... > LDFLAGS+= -lgssapi_krb5 > .. > which works for heimdal in the base system, but prevents a package (or > port build) because in security/heimdal the content of libgssapi_krb5 is > contained within libgssapi; and so doesn't exist as a separate library. > > Would it be possible to wrap this dependency within a > .if !defined(HEIMDAL_HOME) > LDFLAGS+= -lgssapi_krb5 > .endif > > Its fairly standard practice to test for HEIMDAL_HOME which invariably > implies that the security/heimdal port is being used, and incidentally > identifies where the libraries are located. > > Though a better solution, which also reflects the real dependency upon > the security/heimdal port > .if defined(HEIMDAL_HOME) > BUILD_DEPENDS+= > ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal > RUN_DEPENDS+= > ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal > .else > LDFLAGS+= -lgssapi_krb5 > .endif > > As this also adds the heimdal port dependency into +COMMENTS (& possible > MANIFEST?), as well as build dependency. > > I'm not a port maintainer/committer, but for those that are, there are a > few ports that might be useful as a reference regarding use of the > heimdal port: > security/cyrus-sasl2-gssapi > net/samba3 > dns/bind99 > > I don't have heimdal from base installed, which is why I noticed that > mail/dovecot2 was the most recent port that needed some additional > lines, so I figured it might help others rather than my patching just my > ports tree. > > Regards, Dewayne. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >