From owner-freebsd-ports@FreeBSD.ORG Tue Nov 9 15:47:00 2010 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC241106564A for ; Tue, 9 Nov 2010 15:47:00 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7B7EF8FC0C for ; Tue, 9 Nov 2010 15:47:00 +0000 (UTC) Received: from desktop.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 0F9DF13DF48 for ; Tue, 9 Nov 2010 18:28:45 +0300 (MSK) Date: Tue, 9 Nov 2010 18:28:34 +0300 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <241091055.20101109182834@serebryakov.spb.ru> To: ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: Proper way to detect kernel / userland sources? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 15:47:00 -0000 Hello, Ports. I'm preparing port which depends both on kernel source (it contains kernel module) and userland sources (it needs GEOM sources). I see, that ports with kernel modules check for hardcoded "/usr/src/sys/Makefile". But it doesn't look good: sources could be perfectly valid, but placed in other directory! Is here any standerd variable which should be used instead of hardcoded "/usr/src"? --=20 // Black Lion AKA Lev Serebryakov