[arch-commits] Commit in r8168/repos/community-x86_64 (3 files)

Massimiliano Torromeo mtorromeo at gemini.archlinux.org
Fri May 6 10:00:26 UTC 2022


    Date: Friday, May 6, 2022 @ 10:00:25
  Author: mtorromeo
Revision: 1195987

archrelease: copy trunk to community-x86_64

Added:
  r8168/repos/community-x86_64/PKGBUILD
    (from rev 1195986, r8168/trunk/PKGBUILD)
Deleted:
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/linux517.patch

----------------+
 PKGBUILD       |   99 +++++++++++++++++++++++++------------------------------
 linux517.patch |   32 -----------------
 2 files changed, 46 insertions(+), 85 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-06 10:00:18 UTC (rev 1195986)
+++ PKGBUILD	2022-05-06 10:00:25 UTC (rev 1195987)
@@ -1,53 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.049.02
-pkgrel=73
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw"
-license=("GPL")
-arch=('x86_64')
-makedepends=('linux-headers')
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
-        https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc
-        linux517.patch)
-sha256sums=('2b12d932e976f8f74b8d9545744c04beb4676dd7bc1d032dde51347ed1d8be24'
-            'SKIP'
-            '6c718137bed0f80bce52cc6862e755de7a1d0c2cbb75491ab5b099bd04534c1c')
-validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-prepare() {
-	cd "$pkgname-$pkgver"
-	patch -Np1 -i ../linux517.patch
-}
-
-build() {
-	cd "$pkgname-$pkgver"
-	# avoid using the Makefile directly -- it doesn't understand
-	# any kernel but the current.
-	make -C /usr/src/linux M="$PWD/src" \
-		ENABLE_USE_FIRMWARE_FILE=y \
-		CONFIG_R8168_NAPI=y \
-		CONFIG_R8168_VLAN=y \
-		CONFIG_ASPM=y \
-		ENABLE_S5WOL=y \
-		ENABLE_EEE=y \
-		modules
-}
-
-package() {
-	depends=('glibc' 'linux')
-
-	local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
-	cd "$pkgname-$pkgver"
-	install -Dt "$pkgdir$extradir" -m644 src/*.ko
-	find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} +
-	find "$pkgdir" -name '*.ko' -exec xz {} +
-
-	echo "blacklist r8169" | \
-		install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
-}
-
-# vim:set sw=0 noet:

Copied: r8168/repos/community-x86_64/PKGBUILD (from rev 1195986, r8168/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-06 10:00:25 UTC (rev 1195987)
@@ -0,0 +1,46 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.050.00
+pkgrel=1
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('x86_64')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+        https://github.com/mtorromeo/r8168/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc)
+sha256sums=('15b06890230d7c7b92635d981a6f07c4562b0b3eeb55f43b127bdfbb50dda5e1'
+            'SKIP')
+validpgpkeys=('0CADAACF70F64C654E131B3111675C743429DDEF') # Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+build() {
+	cd "$pkgname-$pkgver"
+	# avoid using the Makefile directly -- it doesn't understand
+	# any kernel but the current.
+	make -C /usr/src/linux M="$PWD/src" \
+		ENABLE_USE_FIRMWARE_FILE=y \
+		CONFIG_R8168_NAPI=y \
+		CONFIG_R8168_VLAN=y \
+		CONFIG_ASPM=y \
+		ENABLE_S5WOL=y \
+		ENABLE_EEE=y \
+		modules
+}
+
+package() {
+	depends=('glibc' 'linux')
+
+	local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
+	cd "$pkgname-$pkgver"
+	install -Dt "$pkgdir$extradir" -m644 src/*.ko
+	find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} +
+	find "$pkgdir" -name '*.ko' -exec xz {} +
+
+	echo "blacklist r8169" | \
+		install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
+}
+
+# vim:set sw=0 noet:

Deleted: linux517.patch
===================================================================
--- linux517.patch	2022-05-06 10:00:18 UTC (rev 1195986)
+++ linux517.patch	2022-05-06 10:00:25 UTC (rev 1195987)
@@ -1,32 +0,0 @@
-diff -u -r r8168-8.049.02/src/r8168_n.c r8168-8.049.02-linux517/src/r8168_n.c
---- r8168-8.049.02/src/r8168_n.c	2021-07-05 08:30:48.000000000 +0000
-+++ r8168-8.049.02-linux517/src/r8168_n.c	2022-03-23 00:32:48.392881125 +0000
-@@ -1733,7 +1733,7 @@
- static int rtl8168_proc_open(struct inode *inode, struct file *file)
- {
-         struct net_device *dev = proc_get_parent_data(inode);
--        int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
-+        int (*show)(struct seq_file *, void *) = pde_data(inode);
- 
-         return single_open(file, show, dev);
- }
-@@ -24061,6 +24061,7 @@
-         struct rtl8168_private *tp = netdev_priv(dev);
-         int i;
-         u8 mac_addr[MAC_ADDR_LEN];
-+        u8 addr[ETH_ALEN];
- 
-         for (i = 0; i < MAC_ADDR_LEN; i++)
-                 mac_addr[i] = RTL_R8(tp, MAC0 + i);
-@@ -24129,9 +24130,10 @@
-         rtl8168_rar_set(tp, mac_addr);
- 
-         for (i = 0; i < MAC_ADDR_LEN; i++) {
--                dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
-+                addr[i] = RTL_R8(tp, MAC0 + i);
-                 tp->org_mac_addr[i] = dev->dev_addr[i]; /* keep the original MAC address */
-         }
-+        eth_hw_addr_set(dev, addr);
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13)
-         memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
- #endif



More information about the arch-commits mailing list