2016-07-16 7:52 GMT-03:00 Jeremi Piotrowski <jeremi.piotrow...@gmail.com>:

> On Sat, Jul 16, 2016 at 06:37:28AM -0300, Facundo Curti wrote:
> >
> > But how can I install the module without dkms?  usually I make this
> > automatically with dkms :S
>
> Come on - the module has an install.sh script that installs it without
> dkms.
>
>     $ cd /usr/src
>     $ hg clone https://bitbucket.org/Swoogan/aziokbd
>     $ ./install.sh
>
> or instead of running their script just do:
>
>     $ make install
>
> DKMS is a means of hooking into the kernel-update process in binary
> distros to automatically recompile external modules. As we compile our own
> kernels (most of us?), compiling modules manually is not that big of an
> issue (we control when the kernel update happens).
>
> However, as it is more practical to have portage handle the rebuilds, here
> is a quickly written ebuild for you.
>
>
> # Copyright 1999-2016 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Id$
>
> EAPI=6
>
> inherit eutils linux-info linux-mod
>
> if [ "${PV}" = "9999" ]; then
>         inherit mercurial
>         EHG_REPO_URI="https://bitbucket.org/Swoogan/aziokbd";
>         KEYWORDS=""
> else
>         SRC_URI="???"
>         KEYWORDS="~x86 ~amd64"
> fi
>
> DESCRIPTION="Linux kernel driver for Microdia Keyboards"
> HOMEPAGE="hg clone https://bitbucket.org/Swoogan/aziokbd";
>
> LICENSE="GPL-2"
> SLOT="0"
> IUSE="-backslash-fix"
>
> MODULE_NAMES="aziokbd(kernel/drivers/input/keyboard:${S})"
> BUILD_TARGETS="clean default"
> MODULESD_AZIOKBD_ADDITIONS=(
>         "options usbhid quirk=0x0c45:0x7603:0x0007"
> )
>
> src_compile() {
>         if use backslash-fix; then
>                 BKSLFIX=y
>         else
>                 BKSLFIX=n
>         fi
>         BUILD_PARAMS="KSRC=${KERNEL_DIR} BKSLFIX=${BKSLFIX} M=${S}"
>         linux-mod_src_compile
> }
>
>
Wow men. Thank you very much! Now it works. It was a very stupid problem. I
didn't know that the module could be installed without dksm :P jaja. I
always used to do ./install dkms.

Thanks for the ebuild! I will try to edit it to use my own sources (my
aziokdb is a litle edited, I changed some keys)

Finally I have my gentoo install complete :)

Bye! ;)

Reply via email to