public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Install dkms: which package
Date: Sat, 16 Jul 2016 12:52:04 +0200	[thread overview]
Message-ID: <20160716105204.GA9089@gentoo-tp.home> (raw)
In-Reply-To: <CABxff59d9Cm8hEbVyPSJp1hprY0gjbKOHcN7x_XOzh40zA9mSQ@mail.gmail.com>

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

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.


[-- Attachment #2: aziokbd-9999.ebuild --]
[-- Type: text/plain, Size: 818 bytes --]

# 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	other threads:[~2016-07-16 10:52 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 [this message]
2016-07-16 18:03           ` Facundo Curti
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=20160716105204.GA9089@gentoo-tp.home \
    --to=jeremi.piotrowski@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