From owner-freebsd-ports@FreeBSD.ORG Tue Oct 29 15:09:32 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 BDD1282C for ; Tue, 29 Oct 2013 15:09:32 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 892172D53 for ; Tue, 29 Oct 2013 15:09:32 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id vb8so5311454obc.5 for ; Tue, 29 Oct 2013 08:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oE1emcFKvlUJQydSE2SNEwfnqw02DCqA/M851i3BgYo=; b=bPZD3jNnJ4+txJw4f/EatVEKG8Q+7hu/KSLjgkC39cBIYMj43rWbzOeHvldj+RZZh4 +jUtIBUAiWmWZWMq5+ytzQ4tnLLcHc8gdy8yLt1Ynv5MdrOcZpa1p5VwwJ7Pmb0ELuIU SuwtL2zJZPyKklhYPkETl19gvUQFWEuvGY3h/MUOENQiDlNRFDSa3iNyxx8nWXTqUE7U jyWXvlzw0tUhQ7geoRRPXSR4txF7Drri6Rt2jzVODahN2VXNGdVw7x4qfOBGUv010kRz olf7OiV/R8o+MQb/EgIfGAjve3snJM0HtqWrpHbZ4BAMrHosP0C65mJovWyy7qEfxWKU dn8w== MIME-Version: 1.0 X-Received: by 10.182.125.65 with SMTP id mo1mr83940obb.40.1383059371597; Tue, 29 Oct 2013 08:09:31 -0700 (PDT) Sender: r.c.ladan@gmail.com Received: by 10.182.16.101 with HTTP; Tue, 29 Oct 2013 08:09:31 -0700 (PDT) Date: Tue, 29 Oct 2013 16:09:31 +0100 X-Google-Sender-Auth: atCqNvYWP_8VmDPjEB8kd2F-LM4 Message-ID: Subject: RFC: USES=kernsrc From: =?ISO-8859-1?Q?Ren=E9_Ladan?= To: freebsd ports Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:09:32 -0000 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 ta= rget Documentation: - add a note to CHANGES - add a section to the Porters Handbook Regards, Ren=E9