Github messages for voidlinux
 help / color / Atom feed
* [PR PATCH] New package: r8125-dkms-9.003.05
@ 2020-07-30  5:14 2asoft
  0 siblings, 0 replies; only message in thread
From: 2asoft @ 2020-07-30  5:14 UTC (permalink / raw)
  To: ml


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

There is a new pull request by 2asoft against master on the void-packages repository

https://github.com/2asoft/void-packages 2asoft/rtl8125-dkms
https://github.com/void-linux/void-packages/pull/23943

New package: r8125-dkms-9.003.05
Verified locally on a [Gigabyte B550I AORUS PRO AX](https://www.gigabyte.com/Motherboard/B550I-AORUS-PRO-AX-rev-10).
Did not verify 2.5G functionality or performance because I do not have a 2.5G switch.

A patch file from https://github.com/void-linux/void-packages/pull/23943.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-2asoft/rtl8125-dkms-23943.patch --]
[-- Type: text/x-diff, Size: 2207 bytes --]

From d1abcb31c9c85f22c1edfb6c872fbd8f01af211b Mon Sep 17 00:00:00 2001
From: Anton Afanasyev <anton@doubleasoftware.com>
Date: Wed, 29 Jul 2020 22:12:20 -0700
Subject: [PATCH] New package: r8125-dkms-9.003.05

---
 srcpkgs/r8125-dkms/files/dkms.conf | 12 ++++++++++++
 srcpkgs/r8125-dkms/template        | 27 +++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/r8125-dkms/files/dkms.conf
 create mode 100644 srcpkgs/r8125-dkms/template

diff --git a/srcpkgs/r8125-dkms/files/dkms.conf b/srcpkgs/r8125-dkms/files/dkms.conf
new file mode 100644
index 00000000000..b6d398c76b3
--- /dev/null
+++ b/srcpkgs/r8125-dkms/files/dkms.conf
@@ -0,0 +1,12 @@
+PACKAGE_NAME="r8125"
+PACKAGE_VERSION="@VERSION@"
+BUILT_MODULE_NAME="r8125"
+
+AUTOINSTALL="yes"
+REMAKE_INITRD="no"
+
+MAKE="'make' -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
+MAKE="'make' -j$(nproc) KERNEL_UNAME=${kernelver} modules"
+CLEAN="make clean"
+
+DEST_MODULE_LOCATION="/kernel/drivers/net/ethernet/realtek"
diff --git a/srcpkgs/r8125-dkms/template b/srcpkgs/r8125-dkms/template
new file mode 100644
index 00000000000..51a52207e88
--- /dev/null
+++ b/srcpkgs/r8125-dkms/template
@@ -0,0 +1,27 @@
+# Template file for 'r8125-dkms'
+pkgname=r8125-dkms
+version=9.003.05
+revision=1
+_gitrev=34f17465e87f3237eb565cfa8fc5fb803f0c2402
+archs=noarch
+wrksrc="r8125-${version}"
+depends="dkms"
+short_desc="Realtek RTL8125 driver (DKMS)"
+maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
+license="GPL-2.0-only"
+homepage="https://www.realtek.com/"
+distfiles="https://github.com/ibmibmibm/r8125/archive/${version}.tar.gz"
+checksum=75196ec98afcefbb6706307104d32131a27abba24ac333633790264968d548d6
+dkms_modules="r8125 ${version}"
+
+do_install() {
+	vmkdir /usr/src/r8125-${version}
+	vcopy "src/*" usr/src/r8125-${version}
+	vinstall ${FILESDIR}/dkms.conf 644 usr/src/r8125-${version}
+	sed -i -e "s/@VERSION@/${version}-${revision}/" ${PKGDESTDIR}/usr/src/r8125-${version}/dkms.conf
+
+	# modules-load.d(5) file.
+	vmkdir usr/lib/modules-load.d
+	echo "r8125" > ${DESTDIR}/usr/lib/modules-load.d/r8125.conf
+	chmod 644 ${DESTDIR}/usr/lib/modules-load.d/r8125.conf
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30  5:14 [PR PATCH] New package: r8125-dkms-9.003.05 2asoft

Github messages for voidlinux

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux-github

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git