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
}

Reply via email to