summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/rtl8821cu-dkms/files/dkms.conf7
-rw-r--r--sys-kernel/rtl8821cu-dkms/rtl8821cu-dkms-5.4.1.ebuild44
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-kernel/rtl8821cu-dkms/files/dkms.conf b/sys-kernel/rtl8821cu-dkms/files/dkms.conf
new file mode 100644
index 00000000..7317a823
--- /dev/null
+++ b/sys-kernel/rtl8821cu-dkms/files/dkms.conf
@@ -0,0 +1,7 @@
+PACKAGE_NAME="rtl8821cu"
+PACKAGE_VERSION="5.4.1"
+BUILT_MODULE_NAME[0]="8821cu"
+MAKE="'make' KVER=${kernelver}"
+CLEAN="'make' clean"
+DEST_MODULE_LOCATION[0]="/extra/dkms"
+AUTOINSTALL="YES"
diff --git a/sys-kernel/rtl8821cu-dkms/rtl8821cu-dkms-5.4.1.ebuild b/sys-kernel/rtl8821cu-dkms/rtl8821cu-dkms-5.4.1.ebuild
new file mode 100644
index 00000000..e863d295
--- /dev/null
+++ b/sys-kernel/rtl8821cu-dkms/rtl8821cu-dkms-5.4.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils git-r3
+
+DESCRIPTION="Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux"
+HOMEPAGE="https://github.com/brektrou/rtl8821CU"
+
+EGIT_REPO_URI="https://github.com/brektrou/rtl8821CU.git"
+EGIT_BRANCH="master"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64"
+SLOT="0"
+RESTRICT="mirror"
+
+DEPEND="sys-kernel/dkms"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P}"
+
+src_prepare() {
+ cp "${FILESDIR}"/dkms.conf "${S}" || die
+}
+
+src_compile(){
+ :
+}
+
+src_install() {
+ dodir usr/src/${P}
+ insinto usr/src/${P}
+ doins -r "${S}"/*
+}
+
+pkg_postinst() {
+ dkms add ${PN}/${PV}
+}
+
+pkg_prerm() {
+ dkms remove ${PN}/${PV} --all
+}