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

2020-05-27 Thread Jan Steffens via arch-commits
Date: Thursday, May 28, 2020 @ 00:31:28
  Author: heftig
Revision: 636123

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 636118, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 636118, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
636118, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-28 00:31:28 UTC 
(rev 636123)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 636118, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-28 00:31:28 UTC (rev 636123)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=17
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-05-20 Thread Jan Steffens via arch-commits
Date: Wednesday, May 20, 2020 @ 23:01:15
  Author: heftig
Revision: 631023

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 631019, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 631019, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
631019, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-20 23:01:15 UTC 
(rev 631023)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 631019, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-20 23:01:15 UTC (rev 631023)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=16
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-05-14 Thread Jan Steffens via arch-commits
Date: Thursday, May 14, 2020 @ 07:45:14
  Author: heftig
Revision: 627885

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 627881, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 627883, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
627881, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-14 07:45:14 UTC 
(rev 627885)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 627883, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-14 07:45:14 UTC (rev 627885)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-05-08 Thread Jan Steffens via arch-commits
Date: Friday, May 8, 2020 @ 21:40:25
  Author: heftig
Revision: 625804

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 625800, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 625801, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-staging-x86_64/0001-linux-5.6.patch (from rev 
625800, r8168/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-05-08 21:40:25 UTC 
(rev 625804)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 625801, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-05-08 21:40:25 UTC (rev 625804)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=12
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-05-06 Thread Jan Steffens via arch-commits
Date: Wednesday, May 6, 2020 @ 19:48:29
  Author: heftig
Revision: 625179

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 625174, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 625174, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
625174, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-06 19:48:29 UTC 
(rev 625179)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 625174, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-06 19:48:29 UTC (rev 625179)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=11
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-05-02 Thread Jan Steffens via arch-commits
Date: Saturday, May 2, 2020 @ 13:13:53
  Author: heftig
Revision: 624375

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 624372, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 624372, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
624372, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-02 13:13:53 UTC 
(rev 624375)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 624372, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-02 13:13:53 UTC (rev 624375)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=9
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-29 Thread Jan Steffens via arch-commits
Date: Wednesday, April 29, 2020 @ 17:52:06
  Author: heftig
Revision: 622300

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 622298, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 622298, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
622298, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-29 17:52:06 UTC 
(rev 622300)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 622298, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-29 17:52:06 UTC (rev 622300)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=8
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-23 Thread Jan Steffens via arch-commits
Date: Thursday, April 23, 2020 @ 10:40:03
  Author: heftig
Revision: 617958

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 617950, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 617950, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
617950, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-23 10:40:03 UTC 
(rev 617958)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 617950, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-23 10:40:03 UTC (rev 617958)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=7
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-21 Thread Jan Steffens via arch-commits
Date: Tuesday, April 21, 2020 @ 11:50:14
  Author: heftig
Revision: 617356

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 617353, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 617353, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
617353, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-21 11:50:14 UTC 
(rev 617356)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 617353, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-21 11:50:14 UTC (rev 617356)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=6
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-17 Thread Jan Steffens via arch-commits
Date: Friday, April 17, 2020 @ 21:48:40
  Author: heftig
Revision: 616002

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 615995, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 615996, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
615995, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-17 21:48:40 UTC 
(rev 616002)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 615996, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-17 21:48:40 UTC (rev 616002)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=3
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-13 Thread Jan Steffens via arch-commits
Date: Monday, April 13, 2020 @ 13:21:46
  Author: heftig
Revision: 613657

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 613653, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 613653, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   44 ++
 2 files changed, 115 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
613653, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-13 13:21:46 UTC 
(rev 613657)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 613653, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-13 13:21:46 UTC (rev 613657)
@@ -0,0 +1,44 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.02
+pkgrel=2
+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
+0001-linux-5.6.patch)
+sha256sums=('0f209762fa37b90c6ba347a815fd083c9d342e38dbec14273059a419e671df70'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-08 Thread Jan Steffens via arch-commits
Date: Wednesday, April 8, 2020 @ 08:54:57
  Author: heftig
Revision: 612581

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 612578, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 612579, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   45 +++
 2 files changed, 116 insertions(+)

Copied: r8168/repos/community-testing-x86_64/0001-linux-5.6.patch (from rev 
612578, r8168/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-08 08:54:57 UTC 
(rev 612581)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 612579, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-08 08:54:57 UTC (rev 612581)
@@ -0,0 +1,45 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.00
+pkgrel=27
+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
+0001-linux-5.6.patch)
+sha256sums=('0aacba20d985ba5e67e21bdad89a099e102f7bef3027adb647ffbb80b01ac8d0'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-04-02 Thread Christian Hesse via arch-commits
Date: Thursday, April 2, 2020 @ 07:20:01
  Author: eworm
Revision: 609359

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 609358, r8168/trunk/0001-linux-5.6.patch)
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 609358, r8168/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   71 +
 PKGBUILD |   45 +++
 2 files changed, 116 insertions(+)

Copied: r8168/repos/community-staging-x86_64/0001-linux-5.6.patch (from rev 
609358, r8168/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-04-02 07:20:01 UTC 
(rev 609359)
@@ -0,0 +1,71 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 0df6041..557823e 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -456,7 +456,11 @@ static void rtl8168_hw_config(struct net_device *dev);
+ static void rtl8168_hw_start(struct net_device *dev);
+ static int rtl8168_close(struct net_device *dev);
+ static void rtl8168_set_rx_mode(struct net_device *dev);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) 
++static void rtl8168_tx_timeout(struct net_device *dev, unsigned int new_mtu);
++#else
+ static void rtl8168_tx_timeout(struct net_device *dev);
++#endif
+ static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
+ static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private 
*, napi_budget);
+ static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
+@@ -1615,7 +1619,14 @@ static int rtl8168_proc_open(struct inode *inode, 
struct file *file)
+ 
+ return single_open(file, show, dev);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++static const struct proc_ops rtl8168_proc_ops = {
++.proc_open   = rtl8168_proc_open,
++.proc_read   = seq_read,
++.proc_lseek  = seq_lseek,
++.proc_release= single_release,
++};
++#else
+ static const struct file_operations rtl8168_proc_fops = {
+ .open   = rtl8168_proc_open,
+ .read   = seq_read,
+@@ -1623,6 +1634,7 @@ static const struct file_operations rtl8168_proc_fops = {
+ .release= single_release,
+ };
+ #endif
++#endif
+ 
+ /*
+  * Table of proc files we need to create.
+@@ -1665,9 +1677,15 @@ static void rtl8168_proc_init(struct net_device *dev)
+ tp->proc_dir = dir;
+ proc_init_num++;
+ 
+-for (f = rtl8168_proc_files; f->name[0]; f++) {
+-if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
+-  _proc_fops, f->show)) {
++ for (f = rtl8168_proc_files; f->name[0]; f++) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_ops, f->show)) 
++#else
++ if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
++  _proc_fops, f->show))
++#endif
++ {
+ printk("Unable to initialize "
+"/proc/net/%s/%s/%s\n",
+MODULENAME, dev->name, f->name);
+@@ -27844,7 +27861,11 @@ static void rtl8168_reset_task(struct work_struct 
*work)
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
++rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
++#else
+ rtl8168_tx_timeout(struct net_device *dev)
++#endif
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ unsigned long flags;

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 609358, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-04-02 07:20:01 UTC (rev 609359)
@@ -0,0 +1,45 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.048.00
+pkgrel=24
+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
+0001-linux-5.6.patch)
+sha256sums=('0aacba20d985ba5e67e21bdad89a099e102f7bef3027adb647ffbb80b01ac8d0'
+'7d0c468036a6acd83d056d6c243b3ace8be34bf3d633aa24bf54b9c3595f8a0d')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+
+   patch -Np1 < ../0001-linux-5.6.patch
+}
+

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

2020-01-14 Thread Jan Steffens via arch-commits
Date: Wednesday, January 15, 2020 @ 06:59:02
  Author: heftig
Revision: 552583

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 552579, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 552580, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 552579, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-15 06:59:02 UTC (rev 552583)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , 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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2020-01-12 Thread Jan Steffens via arch-commits
Date: Sunday, January 12, 2020 @ 13:09:26
  Author: heftig
Revision: 552202

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 552194, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 552194, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 552194, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-12 13:09:26 UTC (rev 552202)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=14
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2020-01-09 Thread Jan Steffens via arch-commits
Date: Thursday, January 9, 2020 @ 15:25:13
  Author: heftig
Revision: 551265

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 551263, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 551263, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 551263, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-09 15:25:13 UTC (rev 551265)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=13
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2020-01-04 Thread Jan Steffens via arch-commits
Date: Sunday, January 5, 2020 @ 00:30:44
  Author: heftig
Revision: 548574

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 548570, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 548570, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 548570, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-05 00:30:44 UTC (rev 548574)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=12
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-31 Thread Jan Steffens via arch-commits
Date: Tuesday, December 31, 2019 @ 18:07:05
  Author: heftig
Revision: 545664

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 545661, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 545661, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 545661, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-31 18:07:05 UTC (rev 545664)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=11
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-23 Thread Jan Steffens via arch-commits
Date: Tuesday, December 24, 2019 @ 03:27:14
  Author: heftig
Revision: 539691

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 539688, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 539688, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 539688, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-24 03:27:14 UTC (rev 539691)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=9
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-21 Thread Jan Steffens via arch-commits
Date: Saturday, December 21, 2019 @ 17:27:55
  Author: heftig
Revision: 538650

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 538647, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 538648, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 538647, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-21 17:27:55 UTC (rev 538650)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=8
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-18 Thread Jan Steffens via arch-commits
Date: Wednesday, December 18, 2019 @ 20:30:12
  Author: heftig
Revision: 538154

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 538152, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 538152, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 538152, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-18 20:30:12 UTC (rev 538154)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=7
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-17 Thread Jan Steffens via arch-commits
Date: Wednesday, December 18, 2019 @ 00:20:04
  Author: heftig
Revision: 537997

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 537989, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 537990, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 537989, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-18 00:20:04 UTC (rev 537997)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=6
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-13 Thread Jan Steffens via arch-commits
Date: Friday, December 13, 2019 @ 13:31:17
  Author: heftig
Revision: 537538

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 537532, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 537532, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 537532, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-13 13:31:17 UTC (rev 537538)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=5
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-12-05 Thread Jan Steffens via arch-commits
Date: Thursday, December 5, 2019 @ 15:07:51
  Author: heftig
Revision: 535628

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 535623, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/kernel-5.4.patch
(from rev 535625, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 535623, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-05 15:07:51 UTC (rev 535628)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=4
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2019-11-25 Thread Jan Steffens via arch-commits
Date: Tuesday, November 26, 2019 @ 00:14:14
  Author: heftig
Revision: 52

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 533328, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/kernel-5.4.patch
(from rev 533328, r8168/trunk/kernel-5.4.patch)

--+
 PKGBUILD |   47 +++
 kernel-5.4.patch |   12 
 2 files changed, 59 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 533328, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-11-26 00:14:14 UTC (rev 52)
@@ -0,0 +1,47 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.047.05
+pkgrel=2
+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=$(
+ #include 
+ 
+-#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 
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)


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

2018-10-26 Thread Jan Steffens via arch-commits
Date: Friday, October 26, 2018 @ 19:28:29
  Author: heftig
Revision: 399160

db-move: moved r8168 from [community-staging] to [community-testing] (x86_64)

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 399159, r8168/repos/community-staging-x86_64/PKGBUILD)
Deleted:
  r8168/repos/community-staging-x86_64/

--+
 PKGBUILD |   39 +++
 1 file changed, 39 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 399159, 
r8168/repos/community-staging-x86_64/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-10-26 19:28:29 UTC (rev 399160)
@@ -0,0 +1,39 @@
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.046.00
+pkgrel=20
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('b2e66b03b696ba55c9fb7c896db8ac5377233d14120520735d31c33147d0d4c3')
+
+build() {
+   KERNEL_VERSION=$(=4.19" "linux<4.20")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-ARCH" -m644 src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}


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

2018-08-06 Thread Jan Steffens via arch-commits
Date: Tuesday, August 7, 2018 @ 04:45:14
  Author: heftig
Revision: 370058

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 370057, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 370057, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 370057, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-07 04:45:14 UTC (rev 370058)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=78
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-ARCH" -m644 src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 370057, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-08-07 04:45:14 UTC (rev 
370058)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else
++rtl8168_esd_timer(struct timer_list *timer_list)
++{
++struct rtl8168_private *tp = container_of(timer_list, struct 
rtl8168_private, esd_timer);
++#endif
++struct net_device *dev = tp->dev;
+ struct pci_dev *pdev = tp->pci_dev;
+ struct timer_list *timer = >esd_timer;
+ unsigned long timeout = RTL8168_ESD_TIMEOUT;
+@@ -24856,10 +24875,16 @@
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_link_timer(unsigned long __opaque)
+ {
+-struct 

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

2018-08-03 Thread Jan Steffens via arch-commits
Date: Friday, August 3, 2018 @ 17:57:06
  Author: heftig
Revision: 367615

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 367614, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 367614, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 367614, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-03 17:57:06 UTC (rev 367615)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=77
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-ARCH" -m644 src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 367614, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-08-03 17:57:06 UTC (rev 
367615)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else
++rtl8168_esd_timer(struct timer_list *timer_list)
++{
++struct rtl8168_private *tp = container_of(timer_list, struct 
rtl8168_private, esd_timer);
++#endif
++struct net_device *dev = tp->dev;
+ struct pci_dev *pdev = tp->pci_dev;
+ struct timer_list *timer = >esd_timer;
+ unsigned long timeout = RTL8168_ESD_TIMEOUT;
+@@ -24856,10 +24875,16 @@
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_link_timer(unsigned long __opaque)
+ {
+-struct 

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

2018-08-01 Thread Jan Steffens via arch-commits
Date: Thursday, August 2, 2018 @ 05:28:54
  Author: heftig
Revision: 367227

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 367226, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 367226, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 367226, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-02 05:28:54 UTC (rev 367227)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=76
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-ARCH" -m644 src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 367226, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-08-02 05:28:54 UTC (rev 
367227)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else
++rtl8168_esd_timer(struct timer_list *timer_list)
++{
++struct rtl8168_private *tp = container_of(timer_list, struct 
rtl8168_private, esd_timer);
++#endif
++struct net_device *dev = tp->dev;
+ struct pci_dev *pdev = tp->pci_dev;
+ struct timer_list *timer = >esd_timer;
+ unsigned long timeout = RTL8168_ESD_TIMEOUT;
+@@ -24856,10 +24875,16 @@
+ }
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_link_timer(unsigned long __opaque)
+ {
+-struct 

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

2018-07-31 Thread Jan Steffens via arch-commits
Date: Wednesday, August 1, 2018 @ 05:12:44
  Author: heftig
Revision: 366178

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 366177, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 366177, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 366177, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-01 05:12:44 UTC (rev 366178)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=75
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17" -m644 src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 366177, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-08-01 05:12:44 UTC (rev 
366178)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-29 Thread Jan Steffens via arch-commits
Date: Sunday, July 29, 2018 @ 12:32:52
  Author: heftig
Revision: 364493

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 364492, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 364492, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 364492, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-29 12:32:52 UTC (rev 364493)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=74
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-arch/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-arch" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 364492, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-29 12:32:52 UTC (rev 
364493)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-25 Thread Jan Steffens via arch-commits
Date: Wednesday, July 25, 2018 @ 21:08:35
  Author: heftig
Revision: 363427

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 363426, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 363426, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 363426, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-25 21:08:35 UTC (rev 363427)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=73
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 363426, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-25 21:08:35 UTC (rev 
363427)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-22 Thread Jan Steffens via arch-commits
Date: Monday, July 23, 2018 @ 00:36:12
  Author: heftig
Revision: 362900

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 362899, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 362899, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 362899, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-23 00:36:12 UTC (rev 362900)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=72
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 362899, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-23 00:36:12 UTC (rev 
362900)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-18 Thread Jan Steffens via arch-commits
Date: Wednesday, July 18, 2018 @ 17:48:00
  Author: heftig
Revision: 362266

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 362265, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 362265, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 362265, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-18 17:48:00 UTC (rev 362266)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=71
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 362265, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-18 17:48:00 UTC (rev 
362266)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-17 Thread Jan Steffens via arch-commits
Date: Tuesday, July 17, 2018 @ 19:29:37
  Author: heftig
Revision: 361154

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 361152, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 361152, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 361152, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-17 19:29:37 UTC (rev 361154)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=70
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 361152, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-17 19:29:37 UTC (rev 
361154)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-11 Thread Jan Steffens via arch-commits
Date: Wednesday, July 11, 2018 @ 22:16:02
  Author: heftig
Revision: 357438

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 357437, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 357437, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 357437, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-11 22:16:02 UTC (rev 357438)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=69
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 357437, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-11 22:16:02 UTC (rev 
357438)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-08 Thread Jan Steffens via arch-commits
Date: Sunday, July 8, 2018 @ 21:45:55
  Author: heftig
Revision: 355395

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 355394, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 355394, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 355394, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-08 21:45:55 UTC (rev 355395)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=68
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 355394, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-08 21:45:55 UTC (rev 
355395)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-07-03 Thread Jan Steffens via arch-commits
Date: Tuesday, July 3, 2018 @ 22:41:56
  Author: heftig
Revision: 351547

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 351546, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 351546, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 351546, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-03 22:41:56 UTC (rev 351547)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=67
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 351546, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-07-03 22:41:56 UTC (rev 
351547)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-06-26 Thread Jan Steffens via arch-commits
Date: Tuesday, June 26, 2018 @ 18:27:05
  Author: heftig
Revision: 346280

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 346279, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 346279, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 346279, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-26 18:27:05 UTC (rev 346280)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=66
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 346279, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-06-26 18:27:05 UTC (rev 
346280)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-06-16 Thread Jan Steffens via arch-commits
Date: Saturday, June 16, 2018 @ 15:14:57
  Author: heftig
Revision: 343394

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 343393, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 343393, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 343393, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-16 15:14:57 UTC (rev 343394)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=65
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 343393, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-06-16 15:14:57 UTC (rev 
343394)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-06-12 Thread Jan Steffens via arch-commits
Date: Tuesday, June 12, 2018 @ 22:55:20
  Author: heftig
Revision: 342805

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 342804, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 342804, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 342804, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-12 22:55:20 UTC (rev 342805)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=64
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 342804, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-06-12 22:55:20 UTC (rev 
342805)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-06-05 Thread Jan Steffens via arch-commits
Date: Tuesday, June 5, 2018 @ 20:36:02
  Author: heftig
Revision: 340633

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 340632, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 340632, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 340632, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-05 20:36:02 UTC (rev 340633)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=63
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.17-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.17" "linux<4.18")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.17-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 340632, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-06-05 20:36:02 UTC (rev 
340633)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-06-03 Thread Jan Steffens via arch-commits
Date: Sunday, June 3, 2018 @ 06:09:36
  Author: heftig
Revision: 338610

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 338608, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.15.patch
(from rev 338608, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 338608, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-06-03 06:09:36 UTC (rev 338610)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=62
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.16-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.16" "linux<4.17")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.16-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-testing-x86_64/linux-4.15.patch (from rev 338608, 
r8168/trunk/linux-4.15.patch)
===
--- community-testing-x86_64/linux-4.15.patch   (rev 0)
+++ community-testing-x86_64/linux-4.15.patch   2018-06-03 06:09:36 UTC (rev 
338610)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-05-31 Thread Jan Steffens via arch-commits
Date: Friday, June 1, 2018 @ 01:32:17
  Author: heftig
Revision: 335339

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 335338, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 335338, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   47 ++
 linux-4.15.patch |   81 +
 2 files changed, 128 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 335338, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-01 01:32:17 UTC (rev 335339)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=61
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-4.16-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   depends=("linux>=4.16" "linux<4.17")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-4.16-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 335338, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-06-01 01:32:17 UTC (rev 
335339)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned long __opaque)
+ {
+-struct net_device *dev = (struct net_device *)__opaque;
+-struct rtl8168_private *tp = netdev_priv(dev);
++struct rtl8168_private *tp = (struct rtl8168_private *)__opaque;
++#else

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

2018-05-26 Thread Jan Steffens via arch-commits
Date: Saturday, May 26, 2018 @ 12:44:43
  Author: heftig
Revision: 330080

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 330078, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 330078, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 330078, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-26 12:44:43 UTC (rev 330080)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=60
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 330078, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-26 12:44:43 UTC (rev 
330080)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-05-22 Thread Jan Steffens via arch-commits
Date: Tuesday, May 22, 2018 @ 23:09:08
  Author: heftig
Revision: 327803

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 327802, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 327802, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 327802, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-22 23:09:08 UTC (rev 327803)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=59
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 327802, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-22 23:09:08 UTC (rev 
327803)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned 

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

2018-05-21 Thread Jan Steffens via arch-commits
Date: Monday, May 21, 2018 @ 10:43:11
  Author: heftig
Revision: 326018

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 326017, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 326017, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 326017, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-21 10:43:11 UTC (rev 326018)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=58
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 326017, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-21 10:43:11 UTC (rev 
326018)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned 

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

2018-05-17 Thread Jan Steffens via arch-commits
Date: Thursday, May 17, 2018 @ 07:32:03
  Author: heftig
Revision: 323395

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 323393, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 323393, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 323393, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-17 07:32:03 UTC (rev 323395)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=57
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 323393, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-17 07:32:03 UTC (rev 
323395)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-05-09 Thread Jan Steffens via arch-commits
Date: Wednesday, May 9, 2018 @ 15:38:56
  Author: heftig
Revision: 319886

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 319885, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 319885, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 319885, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-09 15:38:56 UTC (rev 319886)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=56
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 319885, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-09 15:38:56 UTC (rev 
319886)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-05-02 Thread Jan Steffens via arch-commits
Date: Wednesday, May 2, 2018 @ 22:45:07
  Author: heftig
Revision: 318713

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 318712, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 318712, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 318712, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-02 22:45:07 UTC (rev 318713)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=55
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 318712, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-05-02 22:45:07 UTC (rev 
318713)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-30 Thread Jan Steffens via arch-commits
Date: Monday, April 30, 2018 @ 13:54:00
  Author: heftig
Revision: 318510

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 318509, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 318509, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 318509, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-30 13:54:00 UTC (rev 318510)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=54
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 318509, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-30 13:54:00 UTC (rev 
318510)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-26 Thread Jan Steffens via arch-commits
Date: Thursday, April 26, 2018 @ 18:15:25
  Author: heftig
Revision: 318188

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 318187, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 318187, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 318187, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-26 18:15:25 UTC (rev 318188)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=53
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 318187, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-26 18:15:25 UTC (rev 
318188)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-24 Thread Jan Steffens via arch-commits
Date: Wednesday, April 25, 2018 @ 04:15:19
  Author: heftig
Revision: 317673

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 317672, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 317672, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 317672, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-25 04:15:19 UTC (rev 317673)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=52
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 317672, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-25 04:15:19 UTC (rev 
317673)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-19 Thread Jan Steffens via arch-commits
Date: Thursday, April 19, 2018 @ 11:41:24
  Author: heftig
Revision: 317018

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 317017, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 317017, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 317017, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-19 11:41:24 UTC (rev 317018)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=51
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 317017, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-19 11:41:24 UTC (rev 
317018)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-17 Thread Jan Steffens via arch-commits
Date: Tuesday, April 17, 2018 @ 21:00:52
  Author: heftig
Revision: 316813

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 316812, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 316812, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 316812, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-17 21:00:52 UTC (rev 316813)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=50
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 316812, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-17 21:00:52 UTC (rev 
316813)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-12 Thread Jan Steffens via arch-commits
Date: Thursday, April 12, 2018 @ 15:46:27
  Author: heftig
Revision: 316085

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 316084, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 316084, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 316084, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-12 15:46:27 UTC (rev 316085)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=49
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 316084, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-12 15:46:27 UTC (rev 
316085)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-11 Thread Jan Steffens via arch-commits
Date: Wednesday, April 11, 2018 @ 21:07:07
  Author: heftig
Revision: 315799

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 315798, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 315798, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 315798, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-11 21:07:07 UTC (rev 315799)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=48
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 315798, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-11 21:07:07 UTC (rev 
315799)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-04-02 Thread Jan Steffens via arch-commits
Date: Tuesday, April 3, 2018 @ 01:39:22
  Author: heftig
Revision: 313934

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 313933, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 313933, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 313933, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-03 01:39:22 UTC (rev 313934)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=46
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 313933, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-03 01:39:22 UTC (rev 
313934)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-31 Thread Jan Steffens via arch-commits
Date: Sunday, April 1, 2018 @ 03:00:31
  Author: heftig
Revision: 313695

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 313694, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 313694, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 313694, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-01 03:00:31 UTC (rev 313695)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=45
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 313694, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-04-01 03:00:31 UTC (rev 
313695)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ rtl8168_esd_timer(unsigned 

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

2018-03-28 Thread Jan Steffens via arch-commits
Date: Thursday, March 29, 2018 @ 05:27:08
  Author: heftig
Revision: 313253

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 313252, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 313252, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 313252, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-29 05:27:08 UTC (rev 313253)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=44
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 313252, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-29 05:27:08 UTC (rev 
313253)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-25 Thread Jan Steffens via arch-commits
Date: Sunday, March 25, 2018 @ 22:43:04
  Author: heftig
Revision: 312630

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 312629, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 312629, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 312629, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-25 22:43:04 UTC (rev 312630)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=43
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 312629, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-25 22:43:04 UTC (rev 
312630)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-21 Thread Jan Steffens via arch-commits
Date: Wednesday, March 21, 2018 @ 18:52:43
  Author: heftig
Revision: 310108

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 310107, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 310107, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 310107, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-21 18:52:43 UTC (rev 310108)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=42
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 310107, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-21 18:52:43 UTC (rev 
310108)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-20 Thread Jan Steffens via arch-commits
Date: Tuesday, March 20, 2018 @ 19:48:35
  Author: heftig
Revision: 309700

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 309699, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 309699, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 309699, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-20 19:48:35 UTC (rev 309700)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=41
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 309699, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-20 19:48:35 UTC (rev 
309700)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-15 Thread Jan Steffens via arch-commits
Date: Thursday, March 15, 2018 @ 15:29:58
  Author: heftig
Revision: 308593

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 308592, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 308592, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 308592, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-15 15:29:58 UTC (rev 308593)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=40
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 308592, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-15 15:29:58 UTC (rev 
308593)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-11 Thread Jan Steffens via arch-commits
Date: Sunday, March 11, 2018 @ 19:28:10
  Author: heftig
Revision: 306226

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 306225, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 306225, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 306225, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-11 19:28:10 UTC (rev 306226)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=39
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 306225, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-11 19:28:10 UTC (rev 
306226)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-03-10 Thread Jan Steffens via arch-commits
Date: Saturday, March 10, 2018 @ 12:54:14
  Author: heftig
Revision: 306051

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 306050, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 306050, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 306050, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-10 12:54:14 UTC (rev 306051)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=38
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 306050, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-03-10 12:54:14 UTC (rev 
306051)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-28 Thread Jan Steffens via arch-commits
Date: Wednesday, February 28, 2018 @ 20:25:00
  Author: heftig
Revision: 300298

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 300297, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 300297, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 300297, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-28 20:25:00 UTC (rev 300298)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=37
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 300297, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-28 20:25:00 UTC (rev 
300298)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-25 Thread Jan Steffens via arch-commits
Date: Sunday, February 25, 2018 @ 18:03:59
  Author: heftig
Revision: 298043

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 298042, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 298042, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 298042, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-25 18:03:59 UTC (rev 298043)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=36
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 298042, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-25 18:03:59 UTC (rev 
298043)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-22 Thread Jan Steffens via arch-commits
Date: Thursday, February 22, 2018 @ 23:34:21
  Author: heftig
Revision: 297149

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 297148, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 297148, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 297148, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-22 23:34:21 UTC (rev 297149)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=35
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 297148, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-22 23:34:21 UTC (rev 
297149)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-17 Thread Jan Steffens via arch-commits
Date: Saturday, February 17, 2018 @ 17:24:40
  Author: heftig
Revision: 296147

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 296145, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 296145, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 296145, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-17 17:24:40 UTC (rev 296147)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=34
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 296145, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-17 17:24:40 UTC (rev 
296147)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-14 Thread Jan Steffens via arch-commits
Date: Thursday, February 15, 2018 @ 01:54:16
  Author: heftig
Revision: 294550

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 294549, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 294549, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 294549, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-15 01:54:16 UTC (rev 294550)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=33
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 294549, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-15 01:54:16 UTC (rev 
294550)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-13 Thread Jan Steffens via arch-commits
Date: Wednesday, February 14, 2018 @ 00:20:11
  Author: heftig
Revision: 293923

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 293922, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.15.patch
(from rev 293922, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 293922, 
r8168/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-02-14 00:20:11 UTC (rev 293923)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=32
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-testing-x86_64/linux-4.15.patch (from rev 293922, 
r8168/trunk/linux-4.15.patch)
===
--- community-testing-x86_64/linux-4.15.patch   (rev 0)
+++ community-testing-x86_64/linux-4.15.patch   2018-02-14 00:20:11 UTC (rev 
293923)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-08 Thread Jan Steffens via arch-commits
Date: Thursday, February 8, 2018 @ 21:27:32
  Author: heftig
Revision: 290395

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 290394, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 290394, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 290394, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-08 21:27:32 UTC (rev 290395)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=31
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 290394, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-08 21:27:32 UTC (rev 
290395)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-07 Thread Jan Steffens via arch-commits
Date: Wednesday, February 7, 2018 @ 23:40:51
  Author: heftig
Revision: 290109

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 290108, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 290108, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 290108, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-07 23:40:51 UTC (rev 290109)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=30
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 290108, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-07 23:40:51 UTC (rev 
290109)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-07 Thread Jan Steffens via arch-commits
Date: Wednesday, February 7, 2018 @ 21:30:28
  Author: heftig
Revision: 290053

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 290052, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 290052, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 290052, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-07 21:30:28 UTC (rev 290053)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=29
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 290052, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-07 21:30:28 UTC (rev 
290053)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-06 Thread Jan Steffens via arch-commits
Date: Wednesday, February 7, 2018 @ 02:50:33
  Author: heftig
Revision: 289686

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 289685, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 289685, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 289685, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-07 02:50:33 UTC (rev 289686)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=28
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 289685, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-07 02:50:33 UTC (rev 
289686)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-04 Thread Jan Steffens via arch-commits
Date: Monday, February 5, 2018 @ 04:59:17
  Author: heftig
Revision: 289087

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 289086, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 289086, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 289086, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-05 04:59:17 UTC (rev 289087)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=27
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 289086, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-05 04:59:17 UTC (rev 
289087)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-02-04 Thread Jan Steffens via arch-commits
Date: Sunday, February 4, 2018 @ 12:03:17
  Author: heftig
Revision: 288967

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 288966, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 288966, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 288966, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-04 12:03:17 UTC (rev 288967)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=26
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 288966, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-02-04 12:03:17 UTC (rev 
288967)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-01-29 Thread Jan Steffens via arch-commits
Date: Monday, January 29, 2018 @ 11:40:53
  Author: heftig
Revision: 287760

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 287759, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.15.patch
(from rev 287759, r8168/trunk/linux-4.15.patch)

--+
 PKGBUILD |   49 
 linux-4.15.patch |   81 +
 2 files changed, 130 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 287759, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-29 11:40:53 UTC (rev 287760)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=25
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.15.patch)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31'
+'6434f0d1fcb08e3605a17859d3b8946c65bcf14737e223315b6468b3394c5cd7')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -Np1 -i ../linux-4.15.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/*.ko
+   find "$pkgdir" -name '*.ko' -exec xz {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.15.patch (from rev 287759, 
r8168/trunk/linux-4.15.patch)
===
--- community-staging-x86_64/linux-4.15.patch   (rev 0)
+++ community-staging-x86_64/linux-4.15.patch   2018-01-29 11:40:53 UTC (rev 
287760)
@@ -0,0 +1,81 @@
+diff -u -r r8168-8.045.08/src/r8168_n.c r8168-8.045.08-4.15/src/r8168_n.c
+--- r8168-8.045.08/src/r8168_n.c   2017-09-22 17:31:17.0 +0200
 r8168-8.045.08-4.15/src/r8168_n.c  2018-01-29 12:33:34.283394438 +0100
+@@ -407,8 +407,13 @@
+ static void rtl8168_sleep_rx_enable(struct net_device *dev);
+ static void rtl8168_dsm(struct net_device *dev, int dev_state);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ static void rtl8168_esd_timer(unsigned long __opaque);
+ static void rtl8168_link_timer(unsigned long __opaque);
++#else
++static void rtl8168_esd_timer(struct timer_list *timer_list);
++static void rtl8168_link_timer(struct timer_list *timer_list);
++#endif
+ static void rtl8168_tx_clear(struct rtl8168_private *tp);
+ static void rtl8168_rx_clear(struct rtl8168_private *tp);
+ 
+@@ -22964,7 +22969,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >esd_timer;
+ 
+-setup_timer(timer, rtl8168_esd_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_esd_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_esd_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_ESD_TIMEOUT);
+ }
+ 
+@@ -22978,7 +22987,11 @@
+ struct rtl8168_private *tp = netdev_priv(dev);
+ struct timer_list *timer = >link_timer;
+ 
+-setup_timer(timer, rtl8168_link_timer, (unsigned long)dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
++setup_timer(timer, rtl8168_link_timer, (unsigned long)tp);
++#else
++timer_setup(timer, rtl8168_link_timer, 0);
++#endif
+ mod_timer(timer, jiffies + RTL8168_LINK_TIMEOUT);
+ }
+ 
+@@ -24717,10 +24730,16 @@
+ #define PCI_DEVICE_SERIAL_NUMBER (0x0164)
+ 
+ static void
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
+ 

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

2018-01-23 Thread Jan Steffens via arch-commits
Date: Tuesday, January 23, 2018 @ 23:03:45
  Author: heftig
Revision: 286126

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 286125, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 286125, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 286125, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-23 23:03:45 UTC (rev 286126)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=24
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 286125, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2018-01-23 23:03:45 UTC (rev 
286126)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2018-01-19 Thread Jan Steffens via arch-commits
Date: Friday, January 19, 2018 @ 20:59:32
  Author: heftig
Revision: 284223

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 284221, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 284221, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 284221, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-19 20:59:32 UTC (rev 284223)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=23
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 284221, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2018-01-19 20:59:32 UTC (rev 
284223)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2018-01-10 Thread Jan Steffens via arch-commits
Date: Wednesday, January 10, 2018 @ 13:22:59
  Author: heftig
Revision: 281013

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 281012, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 281012, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 281012, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-10 13:22:59 UTC (rev 281013)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=22
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 281012, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2018-01-10 13:22:59 UTC (rev 
281013)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2018-01-05 Thread Jan Steffens via arch-commits
Date: Friday, January 5, 2018 @ 23:02:20
  Author: heftig
Revision: 279352

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 279351, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 279351, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 279351, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-05 23:02:20 UTC (rev 279352)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=21
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 279351, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2018-01-05 23:02:20 UTC (rev 
279352)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2018-01-03 Thread Jan Steffens via arch-commits
Date: Wednesday, January 3, 2018 @ 08:01:52
  Author: heftig
Revision: 278003

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 278001, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 278001, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 278001, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-01-03 08:01:52 UTC (rev 278003)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=20
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 278001, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2018-01-03 08:01:52 UTC (rev 
278003)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-29 Thread Jan Steffens via arch-commits
Date: Friday, December 29, 2017 @ 21:26:20
  Author: heftig
Revision: 276903

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 276902, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 276902, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 276902, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-29 21:26:20 UTC (rev 276903)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=19
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 276902, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-29 21:26:20 UTC (rev 
276903)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-25 Thread Jan Steffens via arch-commits
Date: Tuesday, December 26, 2017 @ 01:00:15
  Author: heftig
Revision: 276065

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 276064, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 276064, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 276064, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-26 01:00:15 UTC (rev 276065)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=18
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 276064, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-26 01:00:15 UTC (rev 
276065)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-20 Thread Jan Steffens via arch-commits
Date: Wednesday, December 20, 2017 @ 22:45:06
  Author: heftig
Revision: 275113

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 275112, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 275112, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 275112, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-20 22:45:06 UTC (rev 275113)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=17
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 275112, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-20 22:45:06 UTC (rev 
275113)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-17 Thread Jan Steffens via arch-commits
Date: Sunday, December 17, 2017 @ 19:55:49
  Author: heftig
Revision: 274671

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 274670, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 274670, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 274670, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-17 19:55:49 UTC (rev 274671)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=16
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 274670, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-17 19:55:49 UTC (rev 
274671)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-14 Thread Jan Steffens via arch-commits
Date: Thursday, December 14, 2017 @ 22:17:07
  Author: heftig
Revision: 274463

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 274462, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 274462, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 274462, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-14 22:17:07 UTC (rev 274463)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=15
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 274462, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-14 22:17:07 UTC (rev 
274463)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-10 Thread Jan Steffens via arch-commits
Date: Sunday, December 10, 2017 @ 16:40:17
  Author: heftig
Revision: 273607

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 273606, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 273606, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 273606, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-10 16:40:17 UTC (rev 273607)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=14
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 273606, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-10 16:40:17 UTC (rev 
273607)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-08 Thread Jan Steffens via arch-commits
Date: Friday, December 8, 2017 @ 12:46:10
  Author: heftig
Revision: 273323

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 273322, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 273322, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 273322, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-08 12:46:10 UTC (rev 273323)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=13
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 273322, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-08 12:46:10 UTC (rev 
273323)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-07 Thread Jan Steffens via arch-commits
Date: Thursday, December 7, 2017 @ 22:16:39
  Author: heftig
Revision: 273209

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 273208, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 273208, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 273208, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-07 22:16:39 UTC (rev 273209)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=12
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 273208, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-07 22:16:39 UTC (rev 
273209)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-12-05 Thread Jan Steffens via arch-commits
Date: Tuesday, December 5, 2017 @ 20:41:43
  Author: heftig
Revision: 272323

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 272322, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 272322, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 272322, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-05 20:41:43 UTC (rev 272323)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=11
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 272322, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-12-05 20:41:43 UTC (rev 
272323)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-11-30 Thread Jan Steffens via arch-commits
Date: Thursday, November 30, 2017 @ 19:15:49
  Author: heftig
Revision: 270879

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 270878, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 270878, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 270878, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-11-30 19:15:49 UTC (rev 270879)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=10
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 270878, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-11-30 19:15:49 UTC (rev 
270879)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-11-24 Thread Jan Steffens
Date: Friday, November 24, 2017 @ 12:58:53
  Author: heftig
Revision: 268312

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 268311, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 268311, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 268311, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-11-24 12:58:53 UTC (rev 268312)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=9
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 268311, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-11-24 12:58:53 UTC (rev 
268312)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-11-22 Thread Jan Steffens
Date: Wednesday, November 22, 2017 @ 10:05:47
  Author: heftig
Revision: 267905

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 267904, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 267904, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 267904, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-11-22 10:05:47 UTC (rev 267905)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=8
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 267904, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-11-22 10:05:47 UTC (rev 
267905)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-11-21 Thread Jan Steffens
Date: Tuesday, November 21, 2017 @ 13:28:12
  Author: heftig
Revision: 267798

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 267797, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 267797, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 267797, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-11-21 13:28:12 UTC (rev 267798)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=7
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 267797, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-11-21 13:28:12 UTC (rev 
267798)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }


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

2017-11-18 Thread Jan Steffens
Date: Sunday, November 19, 2017 @ 00:11:15
  Author: heftig
Revision: 267381

archrelease: copy trunk to community-staging-x86_64

Added:
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 267380, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-4.11.patch
(from rev 267380, r8168/trunk/linux-4.11.patch)

--+
 PKGBUILD |   42 ++
 linux-4.11.patch |   14 ++
 2 files changed, 56 insertions(+)

Copied: r8168/repos/community-staging-x86_64/PKGBUILD (from rev 267380, 
r8168/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-11-19 00:11:15 UTC (rev 267381)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=6
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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/lib/modules/$KERNEL_VERSION/build \
+   SUBDIRS="$srcdir/$pkgname-$pkgver/src" \
+   EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} 
+ 1)")
+
+   cd "$pkgname-$pkgver"
+   install -Dt "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH" -m644 
src/r8168.ko
+   find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+   echo "blacklist r8169" | \
+   install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modprobe.d/r8168.conf"
+}

Copied: r8168/repos/community-staging-x86_64/linux-4.11.patch (from rev 267380, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-x86_64/linux-4.11.patch   (rev 0)
+++ community-staging-x86_64/linux-4.11.patch   2017-11-19 00:11:15 UTC (rev 
267381)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 3c5a7e7..e2026bb 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -25732,7 +25732,9 @@ process_pkt:
+ if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+ rtl8168_rx_skb(tp, skb);
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ dev->last_rx = jiffies;
++#endif
+ RTLDEV->stats.rx_bytes += pkt_size;
+ RTLDEV->stats.rx_packets++;
+ }