blob: e8b9465a1abae82fbd635453d2454ccc6762dd89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Motorcomm YT6801 Ethernet driver for TUXEDO Computers"
HOMEPAGE="https://gitlab.com/tuxedocomputers/development/packages/tuxedo-yt6801"
SRC_PV="v${PV}-8"
SRC_URI="
https://en.motor-comm.com/En/Skippower/downloadFile.html?id=607 -> yt6801-linux-driver-${PV}.zip
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-yt6801/-/archive/${SRC_PV}/tuxedo-yt6801-${SRC_PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="virtual/linux-sources"
BDEPEND="app-arch/unzip"
DEPEND="${RDEPEND}"
inherit linux-mod-r1
src_unpack() {
unpack tuxedo-yt6801-${SRC_PV}.tar.bz2 || die
mkdir yt6801-driver || die
cd yt6801-driver || die
unpack yt6801-linux-driver-${PV}.zip || die
unpack ./yt6801-${PV}.tar.gz || die
cd .. || die
mv "${WORKDIR}/tuxedo-yt6801-${SRC_PV}" "${WORKDIR}/${P}" || die
cp "${WORKDIR}/yt6801-driver/Makefile" "${WORKDIR}/${P}/src/" || die
S="${WORKDIR}/${P}"
}
src_compile() {
cd "${S}/src" || die
local modlist=( yt6801=net/ethernet/motorcomm:"${S}/src"::all )
local modargs=( KVER=${KV_FULL} BASEDIR=/lib/modules/${KV_FULL} moderation_en=1 )
linux-mod-r1_src_compile
}
src_install() {
cd "${S}/src" || die
linux-mod-r1_src_install
}
|