From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DATE_IN_PAST_03_06, DKIM_ADSP_NXDOMAIN,DMARC_MISSING,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from lucifer.evil-core.com (evil-core.com [63.160.181.167]) by chiba.3jane.net (Postfix) with ESMTP id BEF7A20EDB04 for ; Mon, 11 Mar 2002 14:32:52 -0600 (CST) Received: from localhost (bob@localhost) by lucifer.evil-core.com (8.10.2/8.10.2) with ESMTP id g2BFOJk07279 for ; Mon, 11 Mar 2002 15:24:19 GMT Date: Mon, 11 Mar 2002 15:24:19 +0000 (/etc/localtime) From: Bob Phan X-Sender: bob@lucifer.evil-core.com To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] ebuild optional dependancy question In-Reply-To: <20020311152003.A1A4E33E7A@bmr.zenmonkey.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 49d38cf6-ce70-4787-b9c0-c3984a24887d X-Archives-Hash: 920a14b09d8290f4def6067e81e7e48c On Mon, 11 Mar 2002, Brian M. Rzycki wrote: > The second program (yafc -- yafc.sourceforge.net) is not as > straightforward as zile. For the uninitiated, yafc is an interactive > ftp client similar to lftp with support for socks4/5, kerberos4/5, and > sftp. Yafc's configure script automatically enables/disables ssh and > readline if it finds the libraries. The same is not true for socks and > kerberos. I merged kth-krb (kerberos4) and saw it installed everything in > /usr/athena. When I manually gave configure the parameter > --with-krb4=/usr/athena it compiled with kerberos4 support. I had similar > results with dante (socks4/5). > > After discovering I had to manually apply parameters to the configure > script in order for socks/kerberos support I went looking for use > variables. I planned on using the "if [ -z "use_var" ]" trick from the > gentoo-howto. Unfortunately I didn't see either socks or krb4/5 use > variables. > > So my question is this: What is the correct gentoo way of discovering > these packages? Should I consult /var/db/pkg/app_group/app_name* to see > if the program is installed? Should I check the physical location for > the libraries (a la -d /usr/athena)? Or am I just a numbskull and > missing some obvious feature of portage which makes my life much easier? I was actually planning on making a yafc ebuild myself :). Anyway, you want to use the notation like this (which is all in the developer howto): DEPEND="... lots of usual stuff ... NAME_OF_USE_VAR? ( >=category/package-version_number ) for example: krb4? ( >=app-crypt/kth-krb-1.1-r1 ) Then, in the src_compile secion of the ebuild, you want to put: local myopts if [ -n "`use krb4`" ] then myopts="${myopts} --with-krb4" fi ./configure \ ${myopts} You might want to read some other ebuilds to get a good feel as to how this works. Disclaimer: I'm not a gentoo developer, so my suggestions are subject to critisizm. Also, krb4 is not a recognized USE parameter. You might want to ask an official gentoo developer how that should be handled, perhaps there should be an official gentoo USE parameter for kerberos 4 and 5. My suggestion is krb4 and krb5, but that's just my suggestion. Hope this was helpful. -- /* * Bob Phan * Computational Chemistry Informatics * Neurogen Corporation * (203)488-8201 x4645 * * To understand recursion, you must first understand recursion. */