From owner-freebsd-ports@FreeBSD.ORG Mon Jan 25 17:24:11 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 DAC5F1065670 for ; Mon, 25 Jan 2010 17:24:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id BE1AF8FC16 for ; Mon, 25 Jan 2010 17:24:09 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.3) with ESMTP id o0PHNvHV006417; Mon, 25 Jan 2010 17:24:04 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o0PHNvHV006417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1264440244; bh=W8mcyDebj2yF0Gjw9RSaqMzQHqXZv22ldsD54kqBUVw=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B5DD3A6.4010203@infracaninophile.co.uk>|Date:=20M on,=2025=20Jan=202010=2017:23:50=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20100114)|MIME-Vers ion:=201.0|To:=20Larry=20Rosenman=20|CC:=20freebsd -ports@freebsd.org|Subject:=20Re:=20Porting=20question|References: =20<00d801ca9ddf$05054620$0f0fd260$@org>|In-Reply-To:=20<00d801ca9 ddf$05054620$0f0fd260$@org>|X-Enigmail-Version:=200.95.6|Content-T ype:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protoc ol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"---------- --enigAB8712E00F5DF262556B79C4"; b=cd8/fPjCzVGyyQuC2H58E0QNWZNHtfcnn+GXzQhD1sPfYnmZzNA1+/TpZyXrHRSOW UQn15vg9bwbgwb7xRoxwi7KlDZlREr2q42K4dvQFFhN/DCGerX8e4ZBI5T3E8N623P 6v6QIlXybI4tN4x/Z0X/ZGlCexpJM/ML5fprr+pM= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B5DD3A6.4010203@infracaninophile.co.uk> Date: Mon, 25 Jan 2010 17:23:50 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20100114) MIME-Version: 1.0 To: Larry Rosenman References: <00d801ca9ddf$05054620$0f0fd260$@org> In-Reply-To: <00d801ca9ddf$05054620$0f0fd260$@org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigAB8712E00F5DF262556B79C4" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: 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 17:24:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAB8712E00F5DF262556B79C4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Larry Rosenman wrote: > I've asked portmgr before, but still haven't found a decent way to do w= hat I > want, so let me post this publicly. >=20 > I want to make the sysutils/lsof port fail early with a decent message = if > the kernel sources aren't loaded on the system. >=20 > The most common question/problem report I get is when the lsof configur= e > script fails due to a lack of the system sources.=20 >=20 > Ideas on how to do this cleanly in the port Makefile? >=20 Can't you do something like this? pre-everything: @if [ ! -f /usr/src/sys/conf/newvers.sh ] ; then \ ${ECHO_MSG} "=3D=3D> Error: Can't find kernel sources" ; \ ${FALSE} ; \ fi (completely untested...) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigAB8712E00F5DF262556B79C4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktd060ACgkQ8Mjk52CukIxGYQCeJtaOdZGXaxbZo/a3KZAnSPEc mc8AnjpU/Q8oJSs8RWwA//gEiLj7rUen =B4Ef -----END PGP SIGNATURE----- --------------enigAB8712E00F5DF262556B79C4--