From owner-freebsd-ports@FreeBSD.ORG Mon Jan 25 16:54:14 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A84F106566B for ; Mon, 25 Jan 2010 16:54:14 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id 12FF88FC08 for ; Mon, 25 Jan 2010 16:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=lS2phpXvWUcgwPvaz+DOQ1WcJSrj91IyA+wc/vZAcYk=; b=s4+GPwmwQVNWAFBisi2LD/bsHjdRX5kZii7gruf/GFxeMXKU/SEtVY05Cka0AbeUJMNG+Sj/DGpM8tqvatYfG2trlJb/QpfTr0CJ2Xp1csjuvgFvE/pFm2CEesX4a4xCxIoEp/45m+eeQ1aFRQNQ256mpZTLPx+lUj4i5fNlMpo=; Received: from 64.3.1.253.ptr.us.xo.net ([64.3.1.253]:2250 helo=LROSENMAN) by thebighonker.lerctr.org with esmtpa (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NZSCa-000MgV-2b for freebsd-ports@freebsd.org; Mon, 25 Jan 2010 10:54:13 -0600 From: "Larry Rosenman" To: Date: Mon, 25 Jan 2010 10:54:01 -0600 Message-ID: <00d801ca9ddf$05054620$0f0fd260$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acqd3v6TSbWc9VVQQ9qsIVq1UMoQww== Content-Language: en-us X-Spam-Score: -2.5 (--) X-LERCTR-Spam-Score: -2.5 (--) X-Spam-Report: SpamScore (-2.5/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, TVD_RCVD_IP=1.931 X-LERCTR-Spam-Report: SpamScore (-2.5/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, TVD_RCVD_IP=1.931 Subject: Porting question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 16:54:14 -0000 I've asked portmgr before, but still haven't found a decent way to do what I want, so let me post this publicly. I want to make the sysutils/lsof port fail early with a decent message if the kernel sources aren't loaded on the system. The most common question/problem report I get is when the lsof configure script fails due to a lack of the system sources. Ideas on how to do this cleanly in the port Makefile? Thanks! -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893