Date: Friday, April 21, 2017 @ 11:04:41
  Author: andyrtr
Revision: 224093

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

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

--------------------------------------------+
 community-testing-i686/PKGBUILD            |   33 +++++++++++++++++++++++++++
 community-testing-i686/r8168-lts.install   |   17 +++++++++++++
 community-testing-x86_64/PKGBUILD          |   33 +++++++++++++++++++++++++++
 community-testing-x86_64/r8168-lts.install |   17 +++++++++++++
 4 files changed, 100 insertions(+)

Copied: r8168-lts/repos/community-testing-i686/PKGBUILD (from rev 224092, 
r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD                             (rev 0)
+++ community-testing-i686/PKGBUILD     2017-04-21 11:04:41 UTC (rev 224093)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.044.02
+pkgrel=6
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+url="http://www.realtek.com.tw";
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=4.9.24" "linux-lts<4.10")
+makedepends=("linux-lts-headers>=4.9.24" "linux-lts-headers<4.10")
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
+
+_extramodules=extramodules-4.9-lts
+
+build() {
+       cd "$_pkgname-$pkgver"
+       _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+       make -C /usr/lib/modules/$_kernver/build \
+                       SUBDIRS="$srcdir/$_pkgname-$pkgver/src" \
+                       EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+                       modules
+}
+
+package() {
+       cd "$_pkgname-$pkgver"
+       install -Dm644 src/$_pkgname.ko 
"$pkgdir/usr/lib/modules/$_extramodules/$_pkgname.ko"
+       find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}

Copied: r8168-lts/repos/community-testing-i686/r8168-lts.install (from rev 
224092, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-testing-i686/r8168-lts.install                            (rev 0)
+++ community-testing-i686/r8168-lts.install    2017-04-21 11:04:41 UTC (rev 
224093)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+       EXTRAMODULES='extramodules-4.9-lts'
+       depmod $(cat /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" > 
/etc/modprobe.d/r8169_blacklist.conf`'
+}
+post_upgrade() {
+       rebuild_module_dependencies
+}
+
+post_remove() {
+       rebuild_module_dependencies
+}

Copied: r8168-lts/repos/community-testing-x86_64/PKGBUILD (from rev 224092, 
r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2017-04-21 11:04:41 UTC (rev 224093)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.044.02
+pkgrel=6
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+url="http://www.realtek.com.tw";
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=4.9.24" "linux-lts<4.10")
+makedepends=("linux-lts-headers>=4.9.24" "linux-lts-headers<4.10")
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('aad7bccc4f625c35abe0455b2a6271e9938b76b46e11b24b4f138eb5c95db6d3')
+
+_extramodules=extramodules-4.9-lts
+
+build() {
+       cd "$_pkgname-$pkgver"
+       _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+       make -C /usr/lib/modules/$_kernver/build \
+                       SUBDIRS="$srcdir/$_pkgname-$pkgver/src" \
+                       EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
+                       modules
+}
+
+package() {
+       cd "$_pkgname-$pkgver"
+       install -Dm644 src/$_pkgname.ko 
"$pkgdir/usr/lib/modules/$_extramodules/$_pkgname.ko"
+       find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}

Copied: r8168-lts/repos/community-testing-x86_64/r8168-lts.install (from rev 
224092, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-testing-x86_64/r8168-lts.install                          (rev 0)
+++ community-testing-x86_64/r8168-lts.install  2017-04-21 11:04:41 UTC (rev 
224093)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+       EXTRAMODULES='extramodules-4.9-lts'
+       depmod $(cat /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" > 
/etc/modprobe.d/r8169_blacklist.conf`'
+}
+post_upgrade() {
+       rebuild_module_dependencies
+}
+
+post_remove() {
+       rebuild_module_dependencies
+}

Reply via email to