public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Facundo Curti <facu.curti@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Install dkms: which package
Date: Sat, 16 Jul 2016 15:03:27 -0300	[thread overview]
Message-ID: <CABxff58TD8cQAEVTx8nRyFwfDBkfcmkvCssJvV69H7wiT=iwoA@mail.gmail.com> (raw)
In-Reply-To: <20160716105204.GA9089@gentoo-tp.home>

[-- Attachment #1: Type: text/plain, Size: 2252 bytes --]

2016-07-16 7:52 GMT-03:00 Jeremi Piotrowski <jeremi.piotrowski@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! ;)

[-- Attachment #2: Type: text/html, Size: 3540 bytes --]

  reply	other threads:[~2016-07-16 18:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-15 17:20 [gentoo-user] Install dkms: which package Facundo Curti
2016-07-15 21:54 ` Alarig Le Lay
2016-07-15 22:59   ` Facundo Curti
2016-07-16  7:45     ` Neil Bothwick
2016-07-16  9:37       ` Facundo Curti
2016-07-16 10:52         ` Jeremi Piotrowski
2016-07-16 18:03           ` Facundo Curti [this message]
2016-07-16 19:12             ` Neil Bothwick
2016-07-16 22:29               ` Facundo Curti
2016-07-16 22:29         ` Alan McKinnon
2016-07-15 22:13 ` Fernando Rodriguez
2016-07-15 23:29 ` Stroller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABxff58TD8cQAEVTx8nRyFwfDBkfcmkvCssJvV69H7wiT=iwoA@mail.gmail.com' \
    --to=facu.curti@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox