From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-110032-garchives=archives.gentoo.org@lists.gentoo.org>) id 1O3Mg6-0006A2-UC for garchives@archives.gentoo.org; Sun, 18 Apr 2010 05:04:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C6E1E0837; Sun, 18 Apr 2010 05:03:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 311B1E0837 for <gentoo-user@lists.gentoo.org>; Sun, 18 Apr 2010 05:03:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9071B6423D for <gentoo-user@lists.gentoo.org>; Sun, 18 Apr 2010 05:03:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.491 X-Spam-Level: X-Spam-Status: No, score=-2.491 required=5.5 tests=[AWL=0.108, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7IY3Vcccdr-v for <gentoo-user@lists.gentoo.org>; Sun, 18 Apr 2010 05:03:21 +0000 (UTC) Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by smtp.gentoo.org (Postfix) with ESMTP id EC2291B407C for <gentoo-user@gentoo.org>; Sun, 18 Apr 2010 05:03:19 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGQvyktMCpe7/2dsb2JhbACbeHK6M4UQBIhvgnw X-IronPort-AV: E=Sophos;i="4.52,229,1270440000"; d="scan'208";a="61098601" Received: from 76-10-151-187.dsl.teksavvy.com (HELO waltdnes.org) ([76.10.151.187]) by ironport2-out.pppoe.ca with SMTP; 18 Apr 2010 01:03:17 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 18 Apr 2010 01:03:57 -0400 From: "Walter Dnes" <waltdnes@waltdnes.org> Date: Sun, 18 Apr 2010 01:03:57 -0400 To: Gentoo Users List <gentoo-user@lists.gentoo.org> Subject: [gentoo-user] Questions for my first ebuild Message-ID: <20100418050357.GA5090@waltdnes.org> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 5ab970ea-0041-4866-85ca-abe8ad027f6c X-Archives-Hash: dd61884ec8009ffd810657723e3744bf I intend to get the Silicon Dust HDHomerun dual tuner box. It has a linux library and CLI plus a separate gtk+ GUI. The linux source comes with a makefile that puts stuff in /usr/local. But I want at least a "wrapper" ebuild so that Portage knows about the files, and can manage them. I'd prefer to write my own ebuild rather than depend on somebody else to always have the most recent version supported somwehere in layman. I've RTFM'd a lot, including http://devmanual.gentoo.org/ebuild-writing/index.html but am still unsure about a few things. Here's my setup so far... * The latest file is http://download.silicondust.com/hdhomerun/libhdhomerun_20100213.tgz (underscore instead of hyphen, bleagh). * I've set PORTDIR_OVERLAY="/usr/local/portage" in /etc/make.conf * I've actually created /usr/local/portage/media-tv * my ebuild file in media-tv is named libhdhomerun-20100213.ebuild * here it is so far... # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="HD Homerun networked TV tuner base library and API" ACTUAL_P="${PN}_${PV}" SRC_URI="http://download.silicondust.com/hdhomerun/${ACTUAL_P}.tgz" HOMEPAGE="http://www.silicondust.com/downloads/linux" KEYWORDS="x86" SLOT="0" LICENSE="LGPL-3" IUSE="" RESTRICT="test" src_install () { emake -j1 DESTDIR="${D}" install || die "make failed" dobin hdhomerun_config dolib libhdhomerun.so dodoc README insinto /usr/include/local/libhdhomerun doins *.h } Now for the questions... 1) do I need to create /usr/local/portage/distfiles? 2) the provided Makefile is supposed to put everything into the /usr/local hierarchy. Does portage/emerge over-ride that, and if so, what do I have to do to get send all files to the /usr/local hierarchy? 3) any glaring errors ? I intend to pick it up next week, so I won't be able to test it immediately. I do want my laptop to be ready to go when I bring the tuner box home. -- Walter Dnes <waltdnes@waltdnes.org>