Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 18:18:12 +0100
From:      Ulrich =?utf-8?B?U3DDtnJsZWlu?= <uqs@spoerlein.net>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Porting question
Message-ID:  <20100125171812.GA92615@acme.spoerlein.net>
In-Reply-To: <00d801ca9ddf$05054620$0f0fd260$@org>
References:  <00d801ca9ddf$05054620$0f0fd260$@org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25.01.2010 at 10:54:01 -0600, Larry Rosenman wrote:
> 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?

from sysutils/fusefs-kmod:

.include <bsd.port.pre.mk>

.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE=         requires the Kernel source to be installed. Set SRC_BASE if it is not in /usr/src
.endif
.if !exists(${SRC_BASE}/sbin/mount)
IGNORE=         requires the userland sources to be installed. Set SRC_BASE if it is not in /usr/src
.endif


Me, I would not test for the Makefile, but one of the actually required headers.

Regards,
Uli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100125171812.GA92615>