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=-1.0 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from bmr.zenmonkey.org (cs666835-192.austin.rr.com [66.68.35.192]) by chiba.3jane.net (Postfix) with ESMTP id A37092015F95 for ; Mon, 11 Mar 2002 09:23:19 -0600 (CST) Received: by bmr.zenmonkey.org (Postfix, from userid 1000) id A1A4E33E7A; Mon, 11 Mar 2002 09:20:03 -0600 (CST) To: gentoo-dev@gentoo.org Message-Id: <20020311152003.A1A4E33E7A@bmr.zenmonkey.org> Date: Mon, 11 Mar 2002 09:20:03 -0600 (CST) From: bmr@zenmonkey.org (Brian M. Rzycki) Subject: [gentoo-dev] ebuild optional dependancy question 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: 615d60b7-cf7e-4824-89e4-d146438af28c X-Archives-Hash: c1c20a0608c766132973b24110972ade Hello everyone! I'm a recent convert to gentoo from debian (at least on my workstation) and I love it! Gentoo doesn't have two of my favorite programs available as .ebuilds. No big deal, I decided to roll up my sleeves and get cracking on creating them for everyone. And herein lies the problem. The first program (zile -- zile.sourceforge.net) was a breeze using the skel.ebuild. I plan on uploading it to bugs as soon as I get my second ebuild correct. 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? Any help is appreciated -- I'd love to maintain a couple of ebuilds for everyone. It sure seems easier being a maintainer for gentoo than for debian ;). -- Brian M. Rzycki "Alright, WHO let the polack near the computer?!?"