From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51539138326 for ; Sat, 16 Jul 2016 18:03:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B89E21C075; Sat, 16 Jul 2016 18:03:31 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5B5B21C012 for ; Sat, 16 Jul 2016 18:03:29 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id f65so59728962wmi.0 for ; Sat, 16 Jul 2016 11:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=h1bzLdI6n+iFxdDhMWHhHqKl4PPXsIExV7C0s4FMt8s=; b=sDcKYi6TNoaZ5ChQHrC29Ehio2I66Zjp+pREw/2J7rn/ZH9wnGLQuEjZGYvSVh+T6b geR4scidZZrK1iHpjpAZl1eRDMM+08f85Xs0c0VQtQ16twHNfN0A15aM3UeNLceyDQUn uw5MZYBLsrJs7M2Eo21tGikCBksjougv75StBkH6zcrH8dV1OqT0wii/C1SXuNDpTjDw FraUeD92ai8qOtuztXv01eSYNDtRGOkKrIg/LQf1UbdGIfGtr5883Fx3sNOKZvhas7pd X2M9gjF4MBh8bwnMnhJFuyzyoUsA1Ir6pSuJRFGMN0IppYW6sdEszw7/JJlk99io0OTw Dykg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=h1bzLdI6n+iFxdDhMWHhHqKl4PPXsIExV7C0s4FMt8s=; b=a0cmbK6Ojq4vUMX6JsNTHPVt0jm5PkrdpimmR0B/bpxPISrmdQbi/jTQFJzUVwmdCD Jc2N3Beo2Kd8474TEpf0zP/IDL7nomyELUCzX9MEsZbU8AFYMTJohwgWTLqx2m8AydQP 9t8nBjrJGqlYZKQ8ISglTqJmQqiO6UOOlNCufAvJsN5idLEewf2kL1Tjo/4BWfNXbgKw 88LgYTSAm4NKu6tU16eNmu8DS9+J3QT06IApzWTyyJk4+g1XosTz5j5y6BQrzckncZXj Nl8aONRAKM5+Yl9RuKj8wkrsODGfj6runGx7FgDQ7apIs4QxTjXWFLj+DATx8gApkKxE DDhA== X-Gm-Message-State: ALyK8tLyrGMNll+TpvXY5JUYOBKq6YQ1ToLCAT7bWKeIV8pAyDIiE14T7b4Mfx5148nRENHyU9MWYKiKG2rPnQ== X-Received: by 10.194.120.199 with SMTP id le7mr5421103wjb.3.1468692208191; Sat, 16 Jul 2016 11:03:28 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.194.9.232 with HTTP; Sat, 16 Jul 2016 11:03:27 -0700 (PDT) In-Reply-To: <20160716105204.GA9089@gentoo-tp.home> References: <20160715215406.GN12055@bulbizarre.swordarmor.fr> <20160716084505.4ea2330b@digimed.co.uk> <20160716105204.GA9089@gentoo-tp.home> From: Facundo Curti Date: Sat, 16 Jul 2016 15:03:27 -0300 Message-ID: Subject: Re: [gentoo-user] Install dkms: which package To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=089e01228bb65a9cd00537c48d78 X-Archives-Salt: 56b95a71-6ed5-48f0-bf6f-a347e398aff0 X-Archives-Hash: d66407332d4123c39d5a3e4dc9716eab --089e01228bb65a9cd00537c48d78 Content-Type: text/plain; charset=UTF-8 2016-07-16 7:52 GMT-03:00 Jeremi Piotrowski : > 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! ;) --089e01228bb65a9cd00537c48d78 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2016= -07-16 7:52 GMT-03:00 Jeremi Piotrowski <jeremi.piotrowski@gmail= .com>:
On Sat, Jul 16, 2= 016 at 06:37:28AM -0300, Facundo Curti wrote:
>
> But how can I install the module without dkms?=C2=A0 usually I make th= is
> automatically with dkms :S

Come on - the module has an install.sh script that installs it witho= ut
dkms.

=C2=A0 =C2=A0 $ cd /usr/src
=C2=A0 =C2=A0 $ hg clone https://bitbucket.org/Swoogan/aziokbd<= /a>
=C2=A0 =C2=A0 $ ./install.sh

or instead of running their script just do:

=C2=A0 =C2=A0 $ 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<= br> 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<= br> 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=3D6

inherit eutils linux-info linux-mod

if [ "${PV}" =3D "9999" ]; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inherit mercurial
=C2=A0 =C2=A0 =C2=A0 =C2=A0 EHG_REPO_URI=3D"
https://bitbuc= ket.org/Swoogan/aziokbd"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 KEYWORDS=3D""
else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 SRC_URI=3D"???"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 KEYWORDS=3D"~x86 ~amd64"
fi

DESCRIPTION=3D"Linux kernel driver for Microdia Keyboards"
HOMEPAGE=3D"hg clone https://bitbucket.org/Swoogan/aziokbd= "

LICENSE=3D"GPL-2"
SLOT=3D"0"
IUSE=3D"-backslash-fix"

MODULE_NAMES=3D"aziokbd(kernel/drivers/input/keyboard:${S})"
BUILD_TARGETS=3D"clean default"
MODULESD_AZIOKBD_ADDITIONS=3D(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "options usbhid quirk=3D0x0c45:0x7603:0x00= 07"
)

src_compile() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if use backslash-fix; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BKSLFIX=3Dy
=C2=A0 =C2=A0 =C2=A0 =C2=A0 else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BKSLFIX=3Dn
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 BUILD_PARAMS=3D"KSRC=3D${KERNEL_DIR} BKSLF= IX=3D${BKSLFIX} M=3D${S}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 linux-mod_src_compile
}


Wow men. Thank = you very much! Now it works. It was a very stupid problem. I didn't kno= w 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 s= ome keys)

Finally I have my gentoo install complet= e :)

Bye! ;)
--089e01228bb65a9cd00537c48d78--