From owner-freebsd-ports@FreeBSD.ORG Tue Oct 29 15:41:00 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A2FA39A5 for ; Tue, 29 Oct 2013 15:41:00 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [IPv6:2607:f8b0:4003:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6D9362FD2 for ; Tue, 29 Oct 2013 15:41:00 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id h1so31865oag.10 for ; Tue, 29 Oct 2013 08:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4ADyHXk16Hy0ZP1Z599wN9YJGyGxAIIipWvkgRb15yw=; b=fAOgtHtxvEdwkteBnZgM3t1/y9sUaBfxAgbiiazAIgYA9yUisFGDZ9zu3NmGEJE7Eg Ccqr4GlPmeOyZsbFqb2/zKV/s3GI9pL0z0AA5oS0lI44g4n/+OyNZjqafxIFqFNRPM3w E2X56rUg6nI+tyUwdZOp/CwlE2rjPTiAKlAlB6yHdkyE3PG4zTCB3Qy548vThCiXkZZ/ C6Oyh+6FbRhr78JqjRw811CTDBc/nTaPsR1ZNV5V8yB1rlj993UZglqyT2/zGKhGTA4K pRIZl6rUTfVCIJiHzU0HywXBwL+MAdqePdQkrKXjokeyrJ2bMMP/QpICChmgMU4Yn1XD Pqrg== MIME-Version: 1.0 X-Received: by 10.60.94.164 with SMTP id dd4mr159811oeb.68.1383061259686; Tue, 29 Oct 2013 08:40:59 -0700 (PDT) Received: by 10.182.16.101 with HTTP; Tue, 29 Oct 2013 08:40:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Oct 2013 16:40:59 +0100 Message-ID: Subject: Re: RFC: USES=kernsrc From: =?ISO-8859-1?Q?Ren=E9_Ladan?= To: Larry Rosenman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2013 15:41:00 -0000 2013/10/29 Larry Rosenman : > On 2013-10-29 10:09, Ren=E9 Ladan wrote: >> >> Hi all, >> >> while stagifying the sysutils/biosfont port together with bapt@ at >> last EuroBSDCon the idea for a USES=3Dkernsrc (or USES=3Dkld ?) came up. >> This new USES would both simplify and unify writing kernel module >> ports because it adds all the common lines. >> >> The result is at http://people.freebsd.org/~rene/patches/kernsrc.mk >> (download it into Mk/uses/ ). An example of a converted port is at >> http://people.freebsd.org/~rene/patches/biosfont.diff >> >> Last nits to solve: >> - decide about MAINTAINER >> - maybe change plist substitution to "${KMODDIR:C,^/,,}" (i.e. strip >> leading '/' ) >> - maybe mute ${ECHO_CMD} lines (prefix with '@') in kernsrc-post-install >> target >> >> Documentation: >> - add a note to CHANGES >> - add a section to the Porters Handbook >> > This would be useful for sysutils/lsof as well. It needs the current src > tree. > Yes, but a current src tree is the only aspect of kernsrc that lsof uses. I should probably rename kernsrc to kld. Ren=E9