From owner-freebsd-ports@FreeBSD.ORG Tue Oct 29 21:19:02 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 92BFA352; Tue, 29 Oct 2013 21:19:02 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-oa0-x236.google.com (mail-oa0-x236.google.com [IPv6:2607:f8b0:4003:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B75E287D; Tue, 29 Oct 2013 21:19:02 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id o20so547609oag.41 for ; Tue, 29 Oct 2013 14:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=87cxWd4NMBUu8rPQFQON78t/A0VNDixCTGuGTqSvSME=; b=flUtsOyp+TtTNR4HDu6VAPcj6P09mspoqshLVOKUI6yw8NNVHVA9P6z66+5JmTh5fI T6G/KTHsM/00dz+871gkqWBaHygUlm6Kw3PJ7TPYmExjWXJAPB4BT+ejZCgzGEYpJ5iy oEpfaPtjTTBDUeUkEoIOSsAk42pjtyWICB9LMFUfi5kpd14yuHQfu9gbKRwQTZuyMoCu eXwEj7rrZ/DW3+rmsr8TJqdZ5V/7g+8c4eJ4cFmjenq37Y7uo0zuD4ThxkE9xL5/9WyN 7wcY/mqWVIc5DwcR9Mb+U2I2j6pIp+Lu5M2kjzkphtK4n6K/ggqyX6JHO89UJBg5UOLO qgfA== MIME-Version: 1.0 X-Received: by 10.182.16.227 with SMTP id j3mr1330657obd.68.1383081541436; Tue, 29 Oct 2013 14:19:01 -0700 (PDT) Sender: r.c.ladan@gmail.com Received: by 10.182.16.101 with HTTP; Tue, 29 Oct 2013 14:19:01 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Oct 2013 22:19:01 +0100 X-Google-Sender-Auth: KhwjNhqOsyRqw8CquKRzNYIe518 Message-ID: Subject: Re: RFC: USES=kernsrc From: =?ISO-8859-1?Q?Ren=E9_Ladan?= To: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports , bdrewery@freebsd.org 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 21:19:02 -0000 2013/10/29 Bernhard Fr=F6hlich : > > Am 29.10.2013 16:09 schrieb "Ren=E9 Ladan" : > > >> >> 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 > > Looks very good to me and I am looling forward to using it for vbox kmod. bdrewery asked me for a complete-ish patch so that he could test it (exp-run?), so I'll work on that. I made the following changes: - rename kernsrc to kmod to better reflect that it is about kernel modules, not just about the kernel source - added the :C,^/,, modifier to PLIST_SUB so that the leading '/' in %%KMODDIR%% gets stripped (more compatible with other ports I think...) Thanks, Ren=E9