[arch-commits] Commit in r8168/repos/community-x86_64 (3 files)
Massimiliano Torromeo
mtorromeo at archlinux.org
Fri Jan 17 08:38:27 UTC 2020
Date: Friday, January 17, 2020 @ 08:38:25
Author: mtorromeo
Revision: 552824
archrelease: copy trunk to community-x86_64
Added:
r8168/repos/community-x86_64/PKGBUILD
(from rev 552823, r8168/trunk/PKGBUILD)
Deleted:
r8168/repos/community-x86_64/PKGBUILD
r8168/repos/community-x86_64/kernel-5.4.patch
------------------+
PKGBUILD | 87 ++++++++++++++++++++++++-----------------------------
kernel-5.4.patch | 12 -------
2 files changed, 40 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-17 08:38:03 UTC (rev 552823)
+++ PKGBUILD 2020-01-17 08:38:25 UTC (rev 552824)
@@ -1,47 +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.047.05
-pkgrel=15
-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
- kernel-5.4.patch)
-sha256sums=('1344bf3d8a1d01a1be8805b48940be1b946b5e694ca75bd14ed1c76fd4c3d67b'
- 'be79c151c6323bb4d340e31e44fae25a36a93d317812fe5d75c54649ed2508b0')
-
-prepare() {
- cd "$pkgname-$pkgver"
- patch -Np1 -i ../kernel-5.4.patch
-}
-
-build() {
- local KERNEL_VERSION=$(</usr/src/linux/version)
- msg2 "Kernel = $KERNEL_VERSION"
-
- 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" \
- EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
- 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 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 552823, r8168/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-17 08:38:25 UTC (rev 552824)
@@ -0,0 +1,40 @@
+# 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.048.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)
+sha256sums=('0aacba20d985ba5e67e21bdad89a099e102f7bef3027adb647ffbb80b01ac8d0')
+
+build() {
+ local KERNEL_VERSION=$(</usr/src/linux/version)
+ msg2 "Kernel = $KERNEL_VERSION"
+
+ 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" \
+ EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+ 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 xz {} +
+
+ echo "blacklist r8169" | \
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
+}
+
+# vim:set sw=0 noet:
Deleted: kernel-5.4.patch
===================================================================
--- kernel-5.4.patch 2020-01-17 08:38:03 UTC (rev 552823)
+++ kernel-5.4.patch 2020-01-17 08:38:25 UTC (rev 552824)
@@ -1,12 +0,0 @@
-diff -u -r r8168-8.047.05/src/r8168_n.c r8168-8.047.05-5.4/src/r8168_n.c
---- r8168-8.047.05/src/r8168_n.c 2019-11-25 18:01:38.000000000 +0000
-+++ r8168-8.047.05-5.4/src/r8168_n.c 2019-11-25 23:36:15.427988367 +0000
-@@ -56,7 +56,7 @@
- #include <linux/rtnetlink.h>
- #include <linux/completion.h>
-
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) && LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
- #include <linux/pci-aspm.h>
- #endif
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)
More information about the arch-commits
mailing list