Date: Tue, 29 Oct 2013 22:19:01 +0100 From: =?ISO-8859-1?Q?Ren=E9_Ladan?= <rene@freebsd.org> To: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= <decke@bluelife.at> Cc: ports <freebsd-ports@freebsd.org>, bdrewery@freebsd.org Subject: Re: RFC: USES=kernsrc Message-ID: <CADL2u4jMf24kg18rWECfxjkJUGCiuzc=tF5btJ0ayp8ySWupzw@mail.gmail.com> In-Reply-To: <CAE-m3X2F0v2txnrBW3gVYbo4qP0BwPE2jEu4=UoprLcjWtpj=A@mail.gmail.com> References: <CADL2u4jgNkgTj9f5FxyyKtkEbzDHchUfwr_SW0FAUBxqJ_Q=Gg@mail.gmail.com> <CAE-m3X2F0v2txnrBW3gVYbo4qP0BwPE2jEu4=UoprLcjWtpj=A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2013/10/29 Bernhard Fr=F6hlich <decke@bluelife.at>: > > Am 29.10.2013 16:09 schrieb "Ren=E9 Ladan" <rene@freebsd.org>: > > >> >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADL2u4jMf24kg18rWECfxjkJUGCiuzc=tF5btJ0ayp8ySWupzw>