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

2017-10-12 Thread Tobias Powalowski
Date: Thursday, October 12, 2017 @ 13:36:55
  Author: tpowa
Revision: 262445

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 262444, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 262444, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 262444, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 262444, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 262444, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 262444, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   44 
 community-testing-i686/linux-4.11.patch   |   14 
 community-testing-i686/r8168.install  |   17 ++
 community-testing-x86_64/PKGBUILD |   44 
 community-testing-x86_64/linux-4.11.patch |   14 
 community-testing-x86_64/r8168.install|   17 ++
 6 files changed, 150 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 262444, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-10-12 13:36:55 UTC (rev 262445)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.045.08
+pkgrel=3
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+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)
+
+   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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 262444, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-10-12 13:36:55 UTC (rev 
262445)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 262444, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-10-12 13:36:55 UTC (rev 
262445)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.13-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies
+   echo '>>> The module r8168 conflicts with r8169. You can blacklist it 
with:'
+   echo '>>>  `echo "blacklist r8169" > 

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

2017-09-10 Thread Jan Steffens
Date: Sunday, September 10, 2017 @ 23:17:33
  Author: heftig
Revision: 256846

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 256845, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-09-10 23:17:33 UTC (rev 256846)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=20
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 256845, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-09-10 23:17:33 UTC (rev 
256846)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 256845, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-09-10 23:17:33 UTC (rev 
256846)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.13-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

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

2017-09-05 Thread Tobias Powalowski
Date: Tuesday, September 5, 2017 @ 07:16:06
  Author: tpowa
Revision: 255705

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 255704, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 255704, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 255704, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 255704, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 255704, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 255704, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 255704, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-09-05 07:16:06 UTC (rev 255705)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=19
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 255704, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-09-05 07:16:06 UTC (rev 
255705)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 255704, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-09-05 07:16:06 UTC (rev 
255705)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}

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

2017-08-17 Thread Tobias Powalowski
Date: Thursday, August 17, 2017 @ 17:03:49
  Author: tpowa
Revision: 251725

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 251724, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 251724, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 251724, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 251724, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 251724, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 251724, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 251724, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-08-17 17:03:49 UTC (rev 251725)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=18
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 251724, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-08-17 17:03:49 UTC (rev 
251725)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 251724, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-08-17 17:03:49 UTC (rev 
251725)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-08-12 Thread Tobias Powalowski
Date: Saturday, August 12, 2017 @ 10:08:19
  Author: tpowa
Revision: 249990

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 249989, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 249989, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 249989, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 249989, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 249989, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 249989, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 249989, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-08-12 10:08:19 UTC (rev 249990)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=17
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 249989, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-08-12 10:08:19 UTC (rev 
249990)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 249989, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-08-12 10:08:19 UTC (rev 
249990)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-29 Thread Jan Steffens
Date: Saturday, July 29, 2017 @ 10:38:37
  Author: heftig
Revision: 246781

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 246780, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-29 10:38:37 UTC (rev 246781)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=16
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 246780, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-07-29 10:38:37 UTC (rev 
246781)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 246780, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-07-29 10:38:37 UTC (rev 
246781)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-22 Thread Jan Steffens
Date: Saturday, July 22, 2017 @ 17:54:59
  Author: heftig
Revision: 246006

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 246005, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-22 17:54:59 UTC (rev 246006)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=15
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 246005, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-07-22 17:54:59 UTC (rev 
246006)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 246005, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-07-22 17:54:59 UTC (rev 
246006)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-15 Thread Jan Steffens
Date: Saturday, July 15, 2017 @ 22:07:45
  Author: heftig
Revision: 245266

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 245263, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-15 22:07:45 UTC (rev 245266)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=14
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 245263, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-07-15 22:07:45 UTC (rev 
245266)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 245264, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-07-15 22:07:45 UTC (rev 
245266)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-13 Thread Jan Steffens
Date: Thursday, July 13, 2017 @ 19:58:37
  Author: heftig
Revision: 245008

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 245007, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-13 19:58:37 UTC (rev 245008)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=13
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 245007, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-07-13 19:58:37 UTC (rev 
245008)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 245007, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-07-13 19:58:37 UTC (rev 
245008)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-13 Thread Jan Steffens
Date: Thursday, July 13, 2017 @ 13:17:33
  Author: heftig
Revision: 244962

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-4.11.patch   |   14 +++
 community-staging-i686/r8168.install  |   17 +
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-4.11.patch |   14 +++
 community-staging-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 244961, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-07-13 13:17:33 UTC (rev 244962)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=12
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-staging-i686/linux-4.11.patch (from rev 244961, 
r8168/trunk/linux-4.11.patch)
===
--- community-staging-i686/linux-4.11.patch (rev 0)
+++ community-staging-i686/linux-4.11.patch 2017-07-13 13:17:33 UTC (rev 
244962)
@@ -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++;
+ }

Copied: r8168/repos/community-staging-i686/r8168.install (from rev 244961, 
r8168/trunk/r8168.install)
===
--- community-staging-i686/r8168.install(rev 0)
+++ community-staging-i686/r8168.install2017-07-13 13:17:33 UTC (rev 
244962)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.12-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-07-05 Thread Tobias Powalowski
Date: Wednesday, July 5, 2017 @ 15:50:51
  Author: tpowa
Revision: 242402

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 242401, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 242401, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 242401, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 242401, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 242401, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 242401, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 242401, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-07-05 15:50:51 UTC (rev 242402)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=10
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 242401, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-07-05 15:50:51 UTC (rev 
242402)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 242401, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-07-05 15:50:51 UTC (rev 
242402)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.11-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-06-14 Thread Tobias Powalowski
Date: Wednesday, June 14, 2017 @ 18:28:35
  Author: tpowa
Revision: 236794

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 236793, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 236793, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 236793, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 236793, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 236793, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 236793, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 236793, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-06-14 18:28:35 UTC (rev 236794)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=9
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 236793, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-06-14 18:28:35 UTC (rev 
236794)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 236793, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-06-14 18:28:35 UTC (rev 
236794)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.11-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-05-22 Thread Tobias Powalowski
Date: Monday, May 22, 2017 @ 13:17:43
  Author: tpowa
Revision: 229091

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 229090, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.11.patch
(from rev 229090, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 229090, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 229090, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.11.patch
(from rev 229090, r8168/trunk/linux-4.11.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 229090, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-4.11.patch   |   14 +++
 community-testing-i686/r8168.install  |   17 +
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-4.11.patch |   14 +++
 community-testing-x86_64/r8168.install|   17 +
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 229090, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-05-22 13:17:43 UTC (rev 229091)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=8
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.11.patch)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3'
+'21857077bd5b26a08456f97f170b2772e8cadfb331577ddb2bcb680b31c5c0d3')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i "$srcdir/linux-4.11.patch"
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.11.patch (from rev 229090, 
r8168/trunk/linux-4.11.patch)
===
--- community-testing-i686/linux-4.11.patch (rev 0)
+++ community-testing-i686/linux-4.11.patch 2017-05-22 13:17:43 UTC (rev 
229091)
@@ -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++;
+ }

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 229090, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2017-05-22 13:17:43 UTC (rev 
229091)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.11-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+

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

2017-04-07 Thread Massimiliano Torromeo
Date: Friday, April 7, 2017 @ 14:11:51
  Author: mtorromeo
Revision: 221219

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 221218, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 221218, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 221218, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 221218, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-i686/PKGBUILD|   44 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   44 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2017-04-07 14:11:24 UTC (rev 221218)
+++ community-i686/PKGBUILD 2017-04-07 14:11:51 UTC (rev 221219)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.044.02
-pkgrel=5
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-i686/PKGBUILD (from rev 221218, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-04-07 14:11:51 UTC (rev 221219)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=6
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 

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

2017-02-19 Thread Jan Steffens
Date: Sunday, February 19, 2017 @ 15:10:18
  Author: heftig
Revision: 213114

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 213113, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 213113, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 213113, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 213113, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-i686/PKGBUILD|   44 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   44 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2017-02-19 15:09:11 UTC (rev 213113)
+++ community-i686/PKGBUILD 2017-02-19 15:10:18 UTC (rev 213114)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.044.02
-pkgrel=1
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-i686/PKGBUILD (from rev 213113, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-02-19 15:10:18 UTC (rev 213114)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.044.02
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 

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

2016-12-22 Thread Tobias Powalowski
Date: Thursday, December 22, 2016 @ 18:48:52
  Author: tpowa
Revision: 201131

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 201130, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 201130, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 201130, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 201130, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 201130, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 201130, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 201130, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-12-22 18:48:52 UTC (rev 201131)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.043.01
+pkgrel=3
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('517ec3fe3c4d25476f6b7b2bd59c3dee548b8dddfe96d2bbc58f65859155142e'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 201130, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-12-22 18:48:52 UTC (rev 
201131)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 201130, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-12-22 18:48:52 UTC (rev 
201131)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.9-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies

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

2016-11-21 Thread Tobias Powalowski
Date: Tuesday, November 22, 2016 @ 07:23:05
  Author: tpowa
Revision: 196492

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 196491, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 196491, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 196491, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 196491, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 196491, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 196491, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 196491, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-11-22 07:23:05 UTC (rev 196492)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.043.01
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('517ec3fe3c4d25476f6b7b2bd59c3dee548b8dddfe96d2bbc58f65859155142e'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 196491, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-11-22 07:23:05 UTC (rev 
196492)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 196491, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-11-22 07:23:05 UTC (rev 
196492)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.8-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies

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

2016-05-16 Thread Tobias Powalowski
Date: Monday, May 16, 2016 @ 20:54:41
  Author: tpowa
Revision: 175498

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 175497, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 175497, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 175497, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 175497, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 175497, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 175497, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 175497, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-05-16 18:54:41 UTC (rev 175498)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.042
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('9dd8ae22115bcbef98c15b0b1e2160300cce3129ef7e0485d7e577188ba3fcc2'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 175497, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-05-16 18:54:41 UTC (rev 
175498)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 175497, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-05-16 18:54:41 UTC (rev 
175498)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.6-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies
+   

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

2016-05-07 Thread Tobias Powalowski
Date: Saturday, May 7, 2016 @ 21:46:26
  Author: tpowa
Revision: 174240

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 174239, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 174239, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 174239, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 174239, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 174239, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 174239, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 174239, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-05-07 19:46:26 UTC (rev 174240)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=11
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 174239, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-05-07 19:46:26 UTC (rev 
174240)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 174239, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-05-07 19:46:26 UTC (rev 
174240)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.5-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies
+

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

2016-04-17 Thread Tobias Powalowski
Date: Sunday, April 17, 2016 @ 20:55:18
  Author: tpowa
Revision: 171261

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 171260, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 171260, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 171260, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 171260, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 171260, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 171260, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 171260, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-04-17 18:55:18 UTC (rev 171261)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=9
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 171260, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-04-17 18:55:18 UTC (rev 
171261)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 171260, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-04-17 18:55:18 UTC (rev 
171261)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.5-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  rebuild_module_dependencies
+

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

2016-03-16 Thread Massimiliano Torromeo
Date: Wednesday, March 16, 2016 @ 09:26:01
  Author: mtorromeo
Revision: 166902

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 166901, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-4.5.patch
(from rev 166901, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 166901, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 166901, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-4.5.patch
(from rev 166901, r8168/trunk/linux-4.5.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 166901, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   51 +
 community-testing-i686/linux-4.5.patch   |   13 +++
 community-testing-i686/r8168.install |   17 +
 community-testing-x86_64/PKGBUILD|   51 +
 community-testing-x86_64/linux-4.5.patch |   13 +++
 community-testing-x86_64/r8168.install   |   17 +
 6 files changed, 162 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 166901, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-03-16 08:26:01 UTC (rev 166902)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=8
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz
+linux-4.5.patch)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5'
+'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e')
+
+prepare() {
+   cd "$pkgname-$pkgver"
+   patch -p1 -i ../linux-4.5.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
+   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}

Copied: r8168/repos/community-testing-i686/linux-4.5.patch (from rev 166901, 
r8168/trunk/linux-4.5.patch)
===
--- community-testing-i686/linux-4.5.patch  (rev 0)
+++ community-testing-i686/linux-4.5.patch  2016-03-16 08:26:01 UTC (rev 
166902)
@@ -0,0 +1,13 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index d197630..b47419d 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
+ spin_lock_irqsave(>lock, flags);
+ if (dev->mtu > ETH_DATA_LEN) {
+ features &= ~NETIF_F_ALL_TSO;
+-features &= ~NETIF_F_ALL_CSUM;
++features &= ~NETIF_F_CSUM_MASK;
+ }
+ spin_unlock_irqrestore(>lock, flags);
+ 

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 166901, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2016-03-16 08:26:01 UTC (rev 
166902)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.4-ARCH'
+   depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  

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

2016-03-10 Thread Tobias Powalowski
Date: Thursday, March 10, 2016 @ 09:08:23
  Author: tpowa
Revision: 165834

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 165833, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 165833, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 165833, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 165833, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-testing-i686/PKGBUILD|   44 ---
 community-testing-i686/r8168.install   |   17 -
 community-testing-x86_64/PKGBUILD  |   44 ---
 community-testing-x86_64/r8168.install |   17 -
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2016-03-10 08:08:15 UTC (rev 165833)
+++ community-testing-i686/PKGBUILD 2016-03-10 08:08:23 UTC (rev 165834)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.041.00
-pkgrel=6
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 165833, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-03-10 08:08:23 UTC (rev 165834)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=7
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 

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

2016-02-01 Thread Tobias Powalowski
Date: Monday, February 1, 2016 @ 21:42:23
  Author: tpowa
Revision: 159822

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 159821, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 159821, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 159821, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 159821, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-testing-i686/PKGBUILD|   44 ---
 community-testing-i686/r8168.install   |   17 -
 community-testing-x86_64/PKGBUILD  |   44 ---
 community-testing-x86_64/r8168.install |   17 -
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2016-02-01 20:42:07 UTC (rev 159821)
+++ community-testing-i686/PKGBUILD 2016-02-01 20:42:23 UTC (rev 159822)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.041.00
-pkgrel=3
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 159821, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-02-01 20:42:23 UTC (rev 159822)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=4
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 

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

2016-01-02 Thread Massimiliano Torromeo
Date: Saturday, January 2, 2016 @ 13:58:49
  Author: mtorromeo
Revision: 155181

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 155180, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 155180, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 155180, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 155180, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-i686/PKGBUILD|   44 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   44 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2016-01-02 12:58:32 UTC (rev 155180)
+++ community-i686/PKGBUILD 2016-01-02 12:58:49 UTC (rev 155181)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.040.00
-pkgrel=9
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-i686/PKGBUILD (from rev 155180, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-01-02 12:58:49 UTC (rev 155181)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 

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

2015-12-15 Thread Massimiliano Torromeo
Date: Tuesday, December 15, 2015 @ 14:13:19
  Author: mtorromeo
Revision: 153377

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 153376, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 153376, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 153376, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 153376, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-i686/PKGBUILD|   44 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   44 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2015-12-15 13:13:02 UTC (rev 153376)
+++ community-i686/PKGBUILD 2015-12-15 13:13:19 UTC (rev 153377)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo 
-# Contributor: Bob Fanger < bfanger(at)gmail >
-# Contributor: Filip , Det < nimetonmaili(at)gmail >
-
-pkgname=r8168
-pkgver=8.040.00
-pkgrel=8
-pkgdesc="A kernel module for Realtek 8168 network cards"
-url="http://www.realtek.com.tw;
-license=("GPL")
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg "Kernel = $KERNEL_VERSION"
-
-   cd "$pkgname-$pkgver"
-   install -Dm644 src/$pkgname.ko 
"$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko"
-   find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-   sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" 
"$startdir/$pkgname.install"
-}

Copied: r8168/repos/community-i686/PKGBUILD (from rev 153376, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-12-15 13:13:19 UTC (rev 153377)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip , Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.041.00
+pkgrel=1
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw;
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d56f60e4157ccbf8f8717270b1acb391b0a959d9a96c2f0b4a91c683aa8b83a5')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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)")
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg "Kernel = $KERNEL_VERSION"
+
+   cd "$pkgname-$pkgver"
+   install -Dm644 src/$pkgname.ko 

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

2015-07-04 Thread Evangelos Foutras
Date: Saturday, July 4, 2015 @ 16:35:16
  Author: foutrelis
Revision: 136401

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  r8168/repos/community-staging-i686/PKGBUILD
(from rev 136400, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-i686/r8168.install
(from rev 136400, r8168/trunk/r8168.install)
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 136400, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/r8168.install
(from rev 136400, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-staging-i686/PKGBUILD
  r8168/repos/community-staging-i686/r8168.install
  r8168/repos/community-staging-x86_64/PKGBUILD
  r8168/repos/community-staging-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-staging-i686/PKGBUILD|   44 ---
 community-staging-i686/r8168.install   |   17 -
 community-staging-x86_64/PKGBUILD  |   44 ---
 community-staging-x86_64/r8168.install |   17 -
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-staging-i686/PKGBUILD
===
--- community-staging-i686/PKGBUILD 2015-07-04 14:35:08 UTC (rev 136400)
+++ community-staging-i686/PKGBUILD 2015-07-04 14:35:16 UTC (rev 136401)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.040.00
-pkgrel=2
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH| 
$startdir/$pkgname.install
-}

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 136400, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-07-04 14:35:16 UTC (rev 136401)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.040.00
+pkgrel=3
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg Kernel 

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

2015-07-01 Thread Evangelos Foutras
Date: Thursday, July 2, 2015 @ 03:21:51
  Author: foutrelis
Revision: 136235

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 136234, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 136234, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 136234, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 136234, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   88 +++
 /r8168.install |   34 +++
 community-i686/PKGBUILD|   44 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   44 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 122 insertions(+), 122 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2015-07-02 01:21:43 UTC (rev 136234)
+++ community-i686/PKGBUILD 2015-07-02 01:21:51 UTC (rev 136235)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.040.00
-pkgrel=1
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
-
-build() {
-   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH| 
$startdir/$pkgname.install
-}

Copied: r8168/repos/community-i686/PKGBUILD (from rev 136234, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-07-02 01:21:51 UTC (rev 136235)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.040.00
+pkgrel=2
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('1f7aad3a066c152837e03e558ba720742e792d281c96c5412cff32d68875415b')
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko
+   

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

2015-05-08 Thread Tobias Powalowski
Date: Friday, May 8, 2015 @ 14:35:10
  Author: tpowa
Revision: 132963

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 132962, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux40.patch
(from rev 132962, r8168/trunk/linux40.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 132962, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 132962, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux40.patch
(from rev 132962, r8168/trunk/linux40.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 132962, r8168/trunk/r8168.install)

+
 community-testing-i686/PKGBUILD|   51 +++
 community-testing-i686/linux40.patch   |   14 
 community-testing-i686/r8168.install   |   17 ++
 community-testing-x86_64/PKGBUILD  |   51 +++
 community-testing-x86_64/linux40.patch |   14 
 community-testing-x86_64/r8168.install |   17 ++
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 132962, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-05-08 12:35:10 UTC (rev 132963)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.039.00
+pkgrel=16
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2
+linux40.patch)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd'
+'e6087439b30c8f6c26113c182dd1f95044d918241b1c281b6e84b9a334e68910')
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p1 -i $srcdir/linux40.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH| 
$startdir/$pkgname.install
+}

Copied: r8168/repos/community-testing-i686/linux40.patch (from rev 132962, 
r8168/trunk/linux40.patch)
===
--- community-testing-i686/linux40.patch(rev 0)
+++ community-testing-i686/linux40.patch2015-05-08 12:35:10 UTC (rev 
132963)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 9d6f231..c4200d0 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -3291,6 +3291,9 @@ rtl8168_tx_vlan_tag(struct rtl8168_private *tp,
+ #if LINUX_VERSION_CODE  KERNEL_VERSION(3,0,0)
+ tag = (tp-vlgrp  vlan_tx_tag_present(skb)) ?
+   TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(4,0,0)
++tag = (skb_vlan_tag_present(skb)) ?
++  TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00;
+ #else
+ tag = (vlan_tx_tag_present(skb)) ?
+   TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 132962, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2015-05-08 12:35:10 UTC (rev 
132963)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.0-ARCH'
+   depmod $(cat 

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

2015-04-13 Thread Massimiliano Torromeo
Date: Monday, April 13, 2015 @ 11:17:39
  Author: mtorromeo
Revision: 131288

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 131287, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux40.patch
(from rev 131287, r8168/trunk/linux40.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 131287, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 131287, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux40.patch
(from rev 131287, r8168/trunk/linux40.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 131287, r8168/trunk/r8168.install)

+
 community-testing-i686/PKGBUILD|   51 +++
 community-testing-i686/linux40.patch   |   14 
 community-testing-i686/r8168.install   |   17 ++
 community-testing-x86_64/PKGBUILD  |   51 +++
 community-testing-x86_64/linux40.patch |   14 
 community-testing-x86_64/r8168.install |   17 ++
 6 files changed, 164 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 131287, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-04-13 09:17:39 UTC (rev 131288)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.039.00
+pkgrel=15
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2
+linux40.patch)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd'
+'e6087439b30c8f6c26113c182dd1f95044d918241b1c281b6e84b9a334e68910')
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p1 -i $srcdir/linux40.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#')
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/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))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH| 
$startdir/$pkgname.install
+}

Copied: r8168/repos/community-testing-i686/linux40.patch (from rev 131287, 
r8168/trunk/linux40.patch)
===
--- community-testing-i686/linux40.patch(rev 0)
+++ community-testing-i686/linux40.patch2015-04-13 09:17:39 UTC (rev 
131288)
@@ -0,0 +1,14 @@
+diff --git a/src/r8168_n.c b/src/r8168_n.c
+index 9d6f231..c4200d0 100755
+--- a/src/r8168_n.c
 b/src/r8168_n.c
+@@ -3291,6 +3291,9 @@ rtl8168_tx_vlan_tag(struct rtl8168_private *tp,
+ #if LINUX_VERSION_CODE  KERNEL_VERSION(3,0,0)
+ tag = (tp-vlgrp  vlan_tx_tag_present(skb)) ?
+   TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(4,0,0)
++tag = (skb_vlan_tag_present(skb)) ?
++  TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00;
+ #else
+ tag = (vlan_tx_tag_present(skb)) ?
+   TxVlanTag | swab16(vlan_tx_tag_get(skb)) : 0x00;

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 131287, 
r8168/trunk/r8168.install)
===
--- community-testing-i686/r8168.install(rev 0)
+++ community-testing-i686/r8168.install2015-04-13 09:17:39 UTC (rev 
131288)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+   EXTRAMODULES='extramodules-4.0-ARCH'
+   depmod $(cat 

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

2015-03-18 Thread Tobias Powalowski
Date: Wednesday, March 18, 2015 @ 17:53:50
  Author: tpowa
Revision: 129531

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 129530, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 129530, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 129530, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 129530, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 +++
 community-testing-i686/PKGBUILD|   45 ---
 community-testing-i686/r8168.install   |   17 -
 community-testing-x86_64/PKGBUILD  |   45 ---
 community-testing-x86_64/r8168.install |   17 -
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2015-03-18 16:53:41 UTC (rev 129530)
+++ community-testing-i686/PKGBUILD 2015-03-18 16:53:50 UTC (rev 129531)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.039.00
-pkgrel=11
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
-sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 129530, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-03-18 16:53:50 UTC (rev 129531)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.039.00
+pkgrel=12
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 

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

2015-03-08 Thread Evangelos Foutras
Date: Sunday, March 8, 2015 @ 11:07:21
  Author: foutrelis
Revision: 128901

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 128900, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 128900, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 128900, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 128900, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 +++
 community-testing-i686/PKGBUILD|   45 ---
 community-testing-i686/r8168.install   |   17 -
 community-testing-x86_64/PKGBUILD  |   45 ---
 community-testing-x86_64/r8168.install |   17 -
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2015-03-08 10:07:13 UTC (rev 128900)
+++ community-testing-i686/PKGBUILD 2015-03-08 10:07:21 UTC (rev 128901)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.039.00
-pkgrel=10
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
-sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 128900, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-03-08 10:07:21 UTC (rev 128901)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.039.00
+pkgrel=11
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 

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

2015-01-30 Thread Tobias Powalowski
Date: Friday, January 30, 2015 @ 13:43:57
  Author: tpowa
Revision: 126795

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 126794, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 126794, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 126794, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 126794, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 +++
 community-testing-i686/PKGBUILD|   45 ---
 community-testing-i686/r8168.install   |   17 -
 community-testing-x86_64/PKGBUILD  |   45 ---
 community-testing-x86_64/r8168.install |   17 -
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2015-01-30 12:43:20 UTC (rev 126794)
+++ community-testing-i686/PKGBUILD 2015-01-30 12:43:57 UTC (rev 126795)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.039.00
-pkgrel=8
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-install=$pkgname.install
-source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
-sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 126794, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-01-30 12:43:57 UTC (rev 126795)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.039.00
+pkgrel=8
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://r8168dl.appspot.com/files/$pkgname-$pkgver.tar.bz2)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 

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

2014-09-17 Thread Tobias Powalowski
Date: Wednesday, September 17, 2014 @ 22:41:33
  Author: tpowa
Revision: 119131

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 119130, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/delayed_work_ethtool_ops_fix2.patch
(from rev 119130, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 119130, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 119130, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/delayed_work_ethtool_ops_fix2.patch
(from rev 119130, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 119130, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   55 ++
 community-testing-i686/delayed_work_ethtool_ops_fix2.patch   |   26 
 community-testing-i686/r8168.install |   17 +++
 community-testing-x86_64/PKGBUILD|   55 ++
 community-testing-x86_64/delayed_work_ethtool_ops_fix2.patch |   26 
 community-testing-x86_64/r8168.install   |   17 +++
 6 files changed, 196 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 119130, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-09-17 20:41:33 UTC (rev 119131)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=11
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;
+delayed_work_ethtool_ops_fix2.patch)
+sha256sums=('1384bdf4d33b219f937bf1a600c72b22962baf7796e562b08e4da3c000f49072'
+'2a03fa65e476cb7dd3ed5976037e0218260ff2660b6a4c495a824865eb10c303')
+
+prepare(){
+   cd $pkgname-$pkgver
+
+   # Fix build with Linux 3.15 and 3.16
+   # https://code.google.com/p/r8168/issues/detail?id=19
+   patch -Np1 -i $srcdir/delayed_work_ethtool_ops_fix2.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+

Copied: r8168/repos/community-testing-i686/delayed_work_ethtool_ops_fix2.patch 
(from rev 119130, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
===
--- community-testing-i686/delayed_work_ethtool_ops_fix2.patch  
(rev 0)
+++ community-testing-i686/delayed_work_ethtool_ops_fix2.patch  2014-09-17 
20:41:33 UTC (rev 119131)
@@ -0,0 +1,26 @@
+--- r8168-8.038.00/src/r8168_n.c.orig
 r8168-8.038.00/src/r8168_n.c
+@@ -17542,7 +17542,11 @@ rtl8168_init_one(struct pci_dev *pdev,
+ 
+ RTL_NET_DEVICE_OPS(rtl8168_netdev_ops);
+ 
++#if LINUX_VERSION_CODE  KERNEL_VERSION(3,16,0)
+ SET_ETHTOOL_OPS(dev, rtl8168_ethtool_ops);
++#else
++dev-ethtool_ops = rtl8168_ethtool_ops;
++#endif
+ 
+ dev-watchdog_timeo = RTL8168_TX_TIMEOUT;
+ dev-irq = pdev-irq;
+@@ -19119,7 +19123,11 @@ static void rtl8168_schedule_work(struct
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ 
++#if LINUX_VERSION_CODE  KERNEL_VERSION(3,15,0)
+ PREPARE_DELAYED_WORK(tp-task, task);
++#else
++INIT_DELAYED_WORK(tp-task, task);

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

2014-08-04 Thread Evangelos Foutras
Date: Monday, August 4, 2014 @ 12:36:02
  Author: foutrelis
Revision: 116840

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 116839, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/delayed_work_ethtool_ops_fix2.patch
(from rev 116839, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 116839, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 116839, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/delayed_work_ethtool_ops_fix2.patch
(from rev 116839, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 116839, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   55 ++
 community-testing-i686/delayed_work_ethtool_ops_fix2.patch   |   26 
 community-testing-i686/r8168.install |   17 +++
 community-testing-x86_64/PKGBUILD|   55 ++
 community-testing-x86_64/delayed_work_ethtool_ops_fix2.patch |   26 
 community-testing-x86_64/r8168.install   |   17 +++
 6 files changed, 196 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 116839, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-08-04 10:36:02 UTC (rev 116840)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=10
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+install=$pkgname.install
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;
+delayed_work_ethtool_ops_fix2.patch)
+sha256sums=('1384bdf4d33b219f937bf1a600c72b22962baf7796e562b08e4da3c000f49072'
+'2a03fa65e476cb7dd3ed5976037e0218260ff2660b6a4c495a824865eb10c303')
+
+prepare(){
+   cd $pkgname-$pkgver
+
+   # Fix build with Linux 3.15 and 3.16
+   # https://code.google.com/p/r8168/issues/detail?id=19
+   patch -Np1 -i $srcdir/delayed_work_ethtool_ops_fix2.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+

Copied: r8168/repos/community-testing-i686/delayed_work_ethtool_ops_fix2.patch 
(from rev 116839, r8168/trunk/delayed_work_ethtool_ops_fix2.patch)
===
--- community-testing-i686/delayed_work_ethtool_ops_fix2.patch  
(rev 0)
+++ community-testing-i686/delayed_work_ethtool_ops_fix2.patch  2014-08-04 
10:36:02 UTC (rev 116840)
@@ -0,0 +1,26 @@
+--- r8168-8.038.00/src/r8168_n.c.orig
 r8168-8.038.00/src/r8168_n.c
+@@ -17542,7 +17542,11 @@ rtl8168_init_one(struct pci_dev *pdev,
+ 
+ RTL_NET_DEVICE_OPS(rtl8168_netdev_ops);
+ 
++#if LINUX_VERSION_CODE  KERNEL_VERSION(3,16,0)
+ SET_ETHTOOL_OPS(dev, rtl8168_ethtool_ops);
++#else
++dev-ethtool_ops = rtl8168_ethtool_ops;
++#endif
+ 
+ dev-watchdog_timeo = RTL8168_TX_TIMEOUT;
+ dev-irq = pdev-irq;
+@@ -19119,7 +19123,11 @@ static void rtl8168_schedule_work(struct
+ {
+ struct rtl8168_private *tp = netdev_priv(dev);
+ 
++#if LINUX_VERSION_CODE  KERNEL_VERSION(3,15,0)
+ PREPARE_DELAYED_WORK(tp-task, task);
++#else
++INIT_DELAYED_WORK(tp-task, task);

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

2014-07-29 Thread Bartłomiej Piotrowski
Date: Tuesday, July 29, 2014 @ 11:44:14
  Author: bpiotrowski
Revision: 116512

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 116511, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 116511, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 116511, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 116511, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |  116 +++
 /r8168.install |   34 +
 community-testing-i686/PKGBUILD|   58 ---
 community-testing-i686/r8168.install   |   17 
 community-testing-x86_64/PKGBUILD  |   58 ---
 community-testing-x86_64/r8168.install |   17 
 6 files changed, 150 insertions(+), 150 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2014-07-29 09:44:11 UTC (rev 116511)
+++ community-testing-i686/PKGBUILD 2014-07-29 09:44:14 UTC (rev 116512)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.038.00
-pkgrel=8
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
-install=$pkgname.install
-
-prepare(){
-   cd $pkgname-$pkgver
-
-   # Fix build with Linux 3.15
-   # https://code.google.com/p/r8168/issues/detail?id=19
-   if grep -q PREPARE_DELAYED_WORK src/r8168_n.c; then
-   sed -i 's/PREPARE_DELAYED_WORK/INIT_DELAYED_WORK/' src/r8168_n.c
-   else
-   error 'PREPARE_DELAYED_WORK fix for Linux 3.15 is no longer 
needed.'
-   return 1
-   fi
-}
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('1384bdf4d33b219f937bf1a600c72b22962baf7796e562b08e4da3c000f49072')

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 116511, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-07-29 09:44:14 UTC (rev 116512)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=9
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
+install=$pkgname.install
+
+prepare(){
+   cd $pkgname-$pkgver
+
+   # Fix build with Linux 3.15
+   # https://code.google.com/p/r8168/issues/detail?id=19
+   if grep -q PREPARE_DELAYED_WORK src/r8168_n.c; then
+   sed -i 's/PREPARE_DELAYED_WORK/INIT_DELAYED_WORK/' src/r8168_n.c
+   else
+   error 'PREPARE_DELAYED_WORK fix for Linux 3.15 is no longer 
needed.'
+   return 1
+   fi
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 

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

2014-06-17 Thread Tobias Powalowski
Date: Tuesday, June 17, 2014 @ 10:01:11
  Author: tpowa
Revision: 113276

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 113275, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/r8168.install
(from rev 113275, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 113275, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 113275, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-testing-i686/PKGBUILD
  r8168/repos/community-testing-i686/r8168.install
  r8168/repos/community-testing-x86_64/PKGBUILD
  r8168/repos/community-testing-x86_64/r8168.install

+
 /PKGBUILD  |  116 +++
 /r8168.install |   34 +
 community-testing-i686/PKGBUILD|   58 ---
 community-testing-i686/r8168.install   |   17 
 community-testing-x86_64/PKGBUILD  |   58 ---
 community-testing-x86_64/r8168.install |   17 
 6 files changed, 150 insertions(+), 150 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===
--- community-testing-i686/PKGBUILD 2014-06-17 08:00:53 UTC (rev 113275)
+++ community-testing-i686/PKGBUILD 2014-06-17 08:01:11 UTC (rev 113276)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.038.00
-pkgrel=5
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
-install=$pkgname.install
-
-prepare(){
-   cd $pkgname-$pkgver
-
-   # Fix build with Linux 3.15
-   # https://code.google.com/p/r8168/issues/detail?id=19
-   if grep -q PREPARE_DELAYED_WORK src/r8168_n.c; then
-   sed -i 's/PREPARE_DELAYED_WORK/INIT_DELAYED_WORK/' src/r8168_n.c
-   else
-   error 'PREPARE_DELAYED_WORK fix for Linux 3.15 is no longer 
needed.'
-   return 1
-   fi
-}
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('1384bdf4d33b219f937bf1a600c72b22962baf7796e562b08e4da3c000f49072')

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 113275, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-06-17 08:01:11 UTC (rev 113276)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=6
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
+install=$pkgname.install
+
+prepare(){
+   cd $pkgname-$pkgver
+
+   # Fix build with Linux 3.15
+   # https://code.google.com/p/r8168/issues/detail?id=19
+   if grep -q PREPARE_DELAYED_WORK src/r8168_n.c; then
+   sed -i 's/PREPARE_DELAYED_WORK/INIT_DELAYED_WORK/' src/r8168_n.c
+   else
+   error 'PREPARE_DELAYED_WORK fix for Linux 3.15 is no longer 
needed.'
+   return 1
+   fi
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+ 

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

2014-06-08 Thread Evangelos Foutras
Date: Sunday, June 8, 2014 @ 23:53:35
  Author: foutrelis
Revision: 112845

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 112844, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 112844, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 112844, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 112844, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 ++
 community-i686/PKGBUILD|   45 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   45 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2014-06-08 21:53:23 UTC (rev 112844)
+++ community-i686/PKGBUILD 2014-06-08 21:53:35 UTC (rev 112845)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.038.00
-pkgrel=3
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
-install=$pkgname.install
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('1384bdf4d33b219f937bf1a600c72b22962baf7796e562b08e4da3c000f49072')

Copied: r8168/repos/community-i686/PKGBUILD (from rev 112844, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2014-06-08 21:53:35 UTC (rev 112845)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=4
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 

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

2014-03-10 Thread Massimiliano Torromeo
Date: Monday, March 10, 2014 @ 09:34:33
  Author: mtorromeo
Revision: 106909

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 106908, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 106908, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 106908, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 106908, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 ++
 community-i686/PKGBUILD|   45 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   45 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2014-03-10 08:31:33 UTC (rev 106908)
+++ community-i686/PKGBUILD 2014-03-10 08:34:33 UTC (rev 106909)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.037.00
-pkgrel=7
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
-install=$pkgname.install
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('06aa1c6a58a878450798100eb5f9c3d87763c5f41e99b7d5f3b2fe78646d02b0')

Copied: r8168/repos/community-i686/PKGBUILD (from rev 106908, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2014-03-10 08:34:33 UTC (rev 106909)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.038.00
+pkgrel=1
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(https://dl.dropboxusercontent.com/u/362439/archlinux/r8168-$pkgver.tar.bz2;)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 

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

2013-12-12 Thread Evangelos Foutras
Date: Thursday, December 12, 2013 @ 13:30:57
  Author: foutrelis
Revision: 102487

archrelease: copy trunk to community-i686, community-x86_64

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 102486, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 102486, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 102486, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 102486, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 /PKGBUILD  |   90 +++
 /r8168.install |   34 ++
 community-i686/PKGBUILD|   45 ---
 community-i686/r8168.install   |   17 ---
 community-x86_64/PKGBUILD  |   45 ---
 community-x86_64/r8168.install |   17 ---
 6 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2013-12-12 12:30:44 UTC (rev 102486)
+++ community-i686/PKGBUILD 2013-12-12 12:30:57 UTC (rev 102487)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.037.00
-pkgrel=2
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
-install=$pkgname.install
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('06aa1c6a58a878450798100eb5f9c3d87763c5f41e99b7d5f3b2fe78646d02b0')

Copied: r8168/repos/community-i686/PKGBUILD (from rev 102486, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-12-12 12:30:57 UTC (rev 102487)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.037.00
+pkgrel=3
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}

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

2013-10-14 Thread Tobias Powalowski
Date: Monday, October 14, 2013 @ 09:00:32
  Author: tpowa
Revision: 98566

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 98565, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 98565, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 98565, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 98565, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 98565, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 98565, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 98565, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-10-14 07:00:32 UTC (rev 98566)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=14
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 98565, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-10-14 07:00:32 UTC (rev 
98566)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 

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

2013-10-02 Thread Evangelos Foutras
Date: Wednesday, October 2, 2013 @ 17:36:44
  Author: foutrelis
Revision: 97988

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 97987, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 97987, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 97987, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 97987, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 97987, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 97987, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 97987, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-10-02 15:36:44 UTC (rev 97988)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=12
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 97987, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-10-02 15:36:44 UTC (rev 
97988)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 

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

2013-09-03 Thread Tobias Powalowski
Date: Tuesday, September 3, 2013 @ 09:59:17
  Author: tpowa
Revision: 96706

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 96705, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 96705, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 96705, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 96705, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 96705, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 96705, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 96705, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-09-03 07:59:17 UTC (rev 96706)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=10
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 96705, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-09-03 07:59:17 UTC (rev 
96706)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 

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

2013-08-30 Thread Evangelos Foutras
Date: Friday, August 30, 2013 @ 22:30:40
  Author: foutrelis
Revision: 96505

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 96504, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 96504, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 96504, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 96504, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 96504, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 96504, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 96504, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-08-30 20:30:40 UTC (rev 96505)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=9
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 96504, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-08-30 20:30:40 UTC (rev 
96505)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 

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

2013-08-20 Thread Tobias Powalowski
Date: Wednesday, August 21, 2013 @ 00:20:32
  Author: tpowa
Revision: 96170

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 96169, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 96169, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 96169, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 96169, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 96169, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 96169, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 96169, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-08-20 22:20:32 UTC (rev 96170)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=8
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 96169, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-08-20 22:20:32 UTC (rev 
96170)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 

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

2013-08-16 Thread Tobias Powalowski
Date: Friday, August 16, 2013 @ 10:59:16
  Author: tpowa
Revision: 95732

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 95731, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 95731, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 95731, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 95731, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 95731, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 95731, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 95731, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-08-16 08:59:16 UTC (rev 95732)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=7
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 95731, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-08-16 08:59:16 UTC (rev 
95732)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 @@

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

2013-08-12 Thread Tobias Powalowski
Date: Monday, August 12, 2013 @ 09:15:47
  Author: tpowa
Revision: 95426

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 95425, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 95425, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 95425, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 95425, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 95425, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 95425, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 95425, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-08-12 07:15:47 UTC (rev 95426)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=6
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 95425, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-08-12 07:15:47 UTC (rev 
95426)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 @@

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

2013-07-29 Thread Tobias Powalowski
Date: Monday, July 29, 2013 @ 11:39:30
  Author: tpowa
Revision: 94692

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 94691, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.10.patch
(from rev 94691, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 94691, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 94691, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.10.patch
(from rev 94691, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 94691, r8168/trunk/r8168.install)

---+
 community-testing-i686/PKGBUILD   |   51 
 community-testing-i686/linux-3.10.patch   |   59 
 community-testing-i686/r8168.install  |   17 
 community-testing-x86_64/PKGBUILD |   51 
 community-testing-x86_64/linux-3.10.patch |   59 
 community-testing-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 94691, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-07-29 09:39:30 UTC (rev 94692)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=4
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-testing-i686/linux-3.10.patch (from rev 94691, 
r8168/trunk/linux-3.10.patch)
===
--- community-testing-i686/linux-3.10.patch (rev 0)
+++ community-testing-i686/linux-3.10.patch 2013-07-29 09:39:30 UTC (rev 
94692)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 @@
+ 

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

2013-07-02 Thread Massimiliano Torromeo
Date: Tuesday, July 2, 2013 @ 15:29:42
  Author: mtorromeo
Revision: 93385

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  r8168/repos/staging-i686/
  r8168/repos/staging-i686/PKGBUILD
(from rev 93384, r8168/trunk/PKGBUILD)
  r8168/repos/staging-i686/linux-3.10.patch
(from rev 93384, r8168/trunk/linux-3.10.patch)
  r8168/repos/staging-i686/r8168.install
(from rev 93384, r8168/trunk/r8168.install)
  r8168/repos/staging-x86_64/
  r8168/repos/staging-x86_64/PKGBUILD
(from rev 93384, r8168/trunk/PKGBUILD)
  r8168/repos/staging-x86_64/linux-3.10.patch
(from rev 93384, r8168/trunk/linux-3.10.patch)
  r8168/repos/staging-x86_64/r8168.install
(from rev 93384, r8168/trunk/r8168.install)

-+
 staging-i686/PKGBUILD   |   51 
 staging-i686/linux-3.10.patch   |   59 ++
 staging-i686/r8168.install  |   17 ++
 staging-x86_64/PKGBUILD |   51 
 staging-x86_64/linux-3.10.patch |   59 ++
 staging-x86_64/r8168.install|   17 ++
 6 files changed, 254 insertions(+)

Copied: r8168/repos/staging-i686/PKGBUILD (from rev 93384, r8168/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2013-07-02 13:29:42 UTC (rev 93385)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=2
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/staging-i686/linux-3.10.patch (from rev 93384, 
r8168/trunk/linux-3.10.patch)
===
--- staging-i686/linux-3.10.patch   (rev 0)
+++ staging-i686/linux-3.10.patch   2013-07-02 13:29:42 UTC (rev 93385)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 @@
+ 
+ #ifdef CONFIG_R8168_VLAN
+ if (tp-mcfg != CFG_METHOD_DEFAULT) {
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  dev-features |= NETIF_F_HW_VLAN_CTAG_TX | 

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

2013-07-02 Thread Massimiliano Torromeo
Date: Tuesday, July 2, 2013 @ 15:35:19
  Author: mtorromeo
Revision: 93386

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  r8168/repos/community-staging-i686/
  r8168/repos/community-staging-i686/PKGBUILD
(from rev 93385, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-i686/linux-3.10.patch
(from rev 93385, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-staging-i686/r8168.install
(from rev 93385, r8168/trunk/r8168.install)
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 93385, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-3.10.patch
(from rev 93385, r8168/trunk/linux-3.10.patch)
  r8168/repos/community-staging-x86_64/r8168.install
(from rev 93385, r8168/trunk/r8168.install)

---+
 community-staging-i686/PKGBUILD   |   51 
 community-staging-i686/linux-3.10.patch   |   59 
 community-staging-i686/r8168.install  |   17 
 community-staging-x86_64/PKGBUILD |   51 
 community-staging-x86_64/linux-3.10.patch |   59 
 community-staging-x86_64/r8168.install|   17 
 6 files changed, 254 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 93385, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2013-07-02 13:35:19 UTC (rev 93386)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.036.00
+pkgrel=2
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2 
linux-3.10.patch)
+install=$pkgname.install
+
+prepare() {
+   cd $pkgname-$pkgver
+   patch -p0 -i $srcdir/linux-3.10.patch
+}
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('937fd5d7d4cbfc95cf2859d8c3beb15a8536dc4e41752f7a53f2a25f07cdcd33'
+'1fb115b4d1b6b058d23322b89fad52d29748ce75b2774815e72c679a235d0e87')

Copied: r8168/repos/community-staging-i686/linux-3.10.patch (from rev 93385, 
r8168/trunk/linux-3.10.patch)
===
--- community-staging-i686/linux-3.10.patch (rev 0)
+++ community-staging-i686/linux-3.10.patch 2013-07-02 13:35:19 UTC (rev 
93386)
@@ -0,0 +1,59 @@
+--- src/r8168_n.c.orig 2013-07-02 14:20:27.355887286 +0200
 src/r8168_n.c  2013-07-02 14:24:25.302573010 +0200
+@@ -52,6 +52,10 @@
+ #include linux/init.h
+ #include linux/rtnetlink.h
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++#include linux/if_ether.h
++#endif
++
+ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,26)
+ #include linux/pci-aspm.h
+ #endif
+@@ -2232,6 +2236,9 @@
+swab16(opts2  0x));
+ ret = 0;
+ }
++#elif LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (opts2  RxVlanTag)
++  __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2  
0x));
+ #else
+ if (opts2  RxVlanTag)
+ __vlan_hwaccel_put_tag(skb, swab16(opts2  0x));
+@@ -2295,7 +2302,11 @@
+ else
+ tp-cp_cmd = ~RxChkSum;
+ 
++#if LINUX_VERSION_CODE = KERNEL_VERSION(3,10,0)
++  if (dev-features  NETIF_F_HW_VLAN_CTAG_RX)
++#else
+ if (dev-features  NETIF_F_HW_VLAN_RX)
++#endif
+ tp-cp_cmd |= RxVlan;
+ else
+ tp-cp_cmd = ~RxVlan;
+@@ -16195,7 +16206,11 

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

2013-06-28 Thread Evangelos Foutras
Date: Friday, June 28, 2013 @ 20:52:29
  Author: foutrelis
Revision: 93217

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 93216, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 93216, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 93216, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 93216, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 93216, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 93216, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 93216, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-06-28 18:52:29 UTC (rev 93217)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=16
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 93216, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-06-28 18:52:29 UTC (rev 
93217)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+

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

2013-06-21 Thread Tobias Powalowski
Date: Friday, June 21, 2013 @ 10:09:08
  Author: tpowa
Revision: 92977

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 92976, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 92976, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 92976, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 92976, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 92976, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 92976, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 92976, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-06-21 08:09:08 UTC (rev 92977)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=15
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 92976, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-06-21 08:09:08 UTC (rev 
92977)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+   

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

2013-06-14 Thread Tobias Powalowski
Date: Friday, June 14, 2013 @ 14:12:25
  Author: tpowa
Revision: 92747

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 92746, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 92746, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 92746, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 92746, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 92746, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 92746, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 92746, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-06-14 12:12:25 UTC (rev 92747)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=14
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 92746, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-06-14 12:12:25 UTC (rev 
92747)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+   

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

2013-05-26 Thread Tobias Powalowski
Date: Sunday, May 26, 2013 @ 17:40:57
  Author: tpowa
Revision: 91721

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 91720, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 91720, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 91720, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 91720, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 91720, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 91720, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 91720, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-05-26 15:40:57 UTC (rev 91721)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=13
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 91720, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-05-26 15:40:57 UTC (rev 
91721)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+   

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

2013-04-30 Thread Tobias Powalowski
Date: Tuesday, April 30, 2013 @ 08:42:05
  Author: tpowa
Revision: 89572

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 89571, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 89571, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 89571, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 89571, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 89571, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 89571, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 89571, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-04-30 06:42:05 UTC (rev 89572)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=11
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 89571, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-04-30 06:42:05 UTC (rev 
89572)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+  

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

2013-04-27 Thread Tobias Powalowski
Date: Saturday, April 27, 2013 @ 13:23:55
  Author: tpowa
Revision: 89152

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 89151, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 89151, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 89151, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 89151, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 89151, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 89151, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 89151, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-04-27 11:23:55 UTC (rev 89152)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=10
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 89151, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-04-27 11:23:55 UTC (rev 
89152)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+ 

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

2013-04-22 Thread Tobias Powalowski
Date: Monday, April 22, 2013 @ 11:27:36
  Author: tpowa
Revision: 88752

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 88751, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 88751, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 88751, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 88751, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 88751, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 88751, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 88751, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-04-22 09:27:36 UTC (rev 88752)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=9
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 88751, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-04-22 09:27:36 UTC (rev 
88752)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+   

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

2013-04-06 Thread Tobias Powalowski
Date: Saturday, April 6, 2013 @ 11:34:14
  Author: tpowa
Revision: 87760

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 87759, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 87759, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 87759, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 87759, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 87759, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 87759, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 87759, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-04-06 09:34:14 UTC (rev 87760)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=8
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 87759, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-04-06 09:34:14 UTC (rev 
87760)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+   

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

2013-03-30 Thread Evangelos Foutras
Date: Saturday, March 30, 2013 @ 12:17:18
  Author: foutrelis
Revision: 87371

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
(from rev 87370, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
(from rev 87370, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
(from rev 87370, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 87370, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
(from rev 87370, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
(from rev 87370, r8168/trunk/r8168.install)

--+
 community-testing-i686/PKGBUILD  |   49 +
 community-testing-i686/linux-3.8.patch   |   48 
 community-testing-i686/r8168.install |   17 ++
 community-testing-x86_64/PKGBUILD|   49 +
 community-testing-x86_64/linux-3.8.patch |   48 
 community-testing-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 87370, 
r8168/trunk/PKGBUILD)
===
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=7
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 87370, 
r8168/trunk/linux-3.8.patch)
===
--- community-testing-i686/linux-3.8.patch  (rev 0)
+++ community-testing-i686/linux-3.8.patch  2013-03-30 11:17:18 UTC (rev 
87371)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+  

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

2013-02-20 Thread Evangelos Foutras
Date: Thursday, February 21, 2013 @ 02:33:38
  Author: foutrelis
Revision: 84635

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  r8168/repos/community-staging-i686/
  r8168/repos/community-staging-i686/PKGBUILD
(from rev 84634, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-i686/linux-3.8.patch
(from rev 84634, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-staging-i686/r8168.install
(from rev 84634, r8168/trunk/r8168.install)
  r8168/repos/community-staging-x86_64/
  r8168/repos/community-staging-x86_64/PKGBUILD
(from rev 84634, r8168/trunk/PKGBUILD)
  r8168/repos/community-staging-x86_64/linux-3.8.patch
(from rev 84634, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-staging-x86_64/r8168.install
(from rev 84634, r8168/trunk/r8168.install)

--+
 community-staging-i686/PKGBUILD  |   49 +
 community-staging-i686/linux-3.8.patch   |   48 
 community-staging-i686/r8168.install |   17 ++
 community-staging-x86_64/PKGBUILD|   49 +
 community-staging-x86_64/linux-3.8.patch |   48 
 community-staging-x86_64/r8168.install   |   17 ++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-staging-i686/PKGBUILD (from rev 84634, 
r8168/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2013-02-21 01:33:38 UTC (rev 84635)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=5
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   patch -Np1 -i $srcdir/linux-3.8.patch
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-staging-i686/linux-3.8.patch (from rev 84634, 
r8168/trunk/linux-3.8.patch)
===
--- community-staging-i686/linux-3.8.patch  (rev 0)
+++ community-staging-i686/linux-3.8.patch  2013-02-21 01:33:38 UTC (rev 
84635)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c  2013-02-21 03:31:04.0 +0200
 r8168-8.035.00/src/r8168_n.c   2013-02-21 03:31:56.0 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+   spin_unlock_irqrestore(tp-phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+  struct net_device **dev_out,
+  void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+   goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+   void __iomem *ioaddr = tp-mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+   return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {

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

2013-01-21 Thread mtorromeo
Date: Monday, January 21, 2013 @ 17:21:39
  Author: mtorromeo
Revision: 82607

Conflict resolved

Added:
  r8168/repos/community-i686/PKGBUILD
(from rev 82606, r8168/trunk/PKGBUILD)
  r8168/repos/community-i686/r8168.install
(from rev 82606, r8168/trunk/r8168.install)
  r8168/repos/community-x86_64/PKGBUILD
(from rev 82606, r8168/trunk/PKGBUILD)
  r8168/repos/community-x86_64/r8168.install
(from rev 82606, r8168/trunk/r8168.install)
Deleted:
  r8168/repos/community-i686/PKGBUILD
  r8168/repos/community-i686/r8168.install
  r8168/repos/community-x86_64/PKGBUILD
  r8168/repos/community-x86_64/r8168.install

+
 community-i686/PKGBUILD|   90 +++
 community-i686/r8168.install   |   34 +++---
 community-x86_64/PKGBUILD  |   90 +++
 community-x86_64/r8168.install |   34 +++---
 4 files changed, 124 insertions(+), 124 deletions(-)

Deleted: community-i686/PKGBUILD
===
--- community-i686/PKGBUILD 2013-01-21 15:34:34 UTC (rev 82606)
+++ community-i686/PKGBUILD 2013-01-21 16:21:39 UTC (rev 82607)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
-# Contributor: Bob Fanger  bfanger(at)gmail 
-# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
-
-pkgname=r8168
-pkgver=8.034.00
-pkgrel=2
-pkgdesc=A kernel module for Realtek 8168 network cards
-url=http://www.realtek.com.tw;
-license=(GPL)
-arch=('i686' 'x86_64')
-depends=('glibc' 'linux')
-makedepends=('linux-headers')
-source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
-install=$pkgname.install
-
-build() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-
-   cd $pkgname-$pkgver
-
-   # avoid using the Makefile directly -- it doesn't understand
-   # any kernel but the current.
-   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
-   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
-   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
-   modules
-}
-
-package() {
-   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
-   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
-   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
-   msg Kernel = $KERNEL_VERSION
-
-   cd $pkgname-$pkgver
-   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
-   find $pkgdir -name '*.ko' -exec gzip -9 {} +
-
-   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
-}
-
-sha256sums=('97f3f342f9f24a3c3346641babde82f52f87b6ef5976c8f4481515f247116206')

Copied: r8168/repos/community-i686/PKGBUILD (from rev 82606, 
r8168/trunk/PKGBUILD)
===
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-01-21 16:21:39 UTC (rev 82607)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo massimiliano.torro...@gmail.com
+# Contributor: Bob Fanger  bfanger(at)gmail 
+# Contributor: Filip fila pruda com, Det  nimetonmaili(at)gmail 
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=2
+pkgdesc=A kernel module for Realtek 8168 network cards
+url=http://www.realtek.com.tw;
+license=(GPL)
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
+install=$pkgname.install
+
+build() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+   cd $pkgname-$pkgver
+
+   # avoid using the Makefile directly -- it doesn't understand
+   # any kernel but the current.
+   make -C /usr/lib/modules/$KERNEL_RELEASE/build \
+   SUBDIRS=$srcdir/$pkgname-$pkgver/src \
+   EXTRA_CFLAGS=-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN \
+   modules
+}
+
+package() {
+   _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+   depends=(linux=3.${_kernver} linux3.$(expr ${_kernver} + 1))
+   KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+   msg Kernel = $KERNEL_VERSION
+
+   cd $pkgname-$pkgver
+   install -Dm644 src/$pkgname.ko 
$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko
+   find $pkgdir -name '*.ko' -exec gzip -9 {} +
+
+   sed -i s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH| 
$startdir/$pkgname.install
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73')

Deleted: community-i686/r8168.install