[arch-commits] Commit in r8168-lts/repos (6 files)
Andreas Radke
andyrtr at archlinux.org
Wed Apr 29 15:14:49 UTC 2015
Date: Wednesday, April 29, 2015 @ 17:14:49
Author: andyrtr
Revision: 132517
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 132516, r8168-lts/trunk/PKGBUILD)
r8168-lts/repos/community-testing-i686/r8168-lts.install
(from rev 132516, r8168-lts/trunk/r8168-lts.install)
r8168-lts/repos/community-testing-x86_64/
r8168-lts/repos/community-testing-x86_64/PKGBUILD
(from rev 132516, r8168-lts/trunk/PKGBUILD)
r8168-lts/repos/community-testing-x86_64/r8168-lts.install
(from rev 132516, r8168-lts/trunk/r8168-lts.install)
--------------------------------------------+
community-testing-i686/PKGBUILD | 35 +++++++++++++++++++++++++++
community-testing-i686/r8168-lts.install | 17 +++++++++++++
community-testing-x86_64/PKGBUILD | 35 +++++++++++++++++++++++++++
community-testing-x86_64/r8168-lts.install | 17 +++++++++++++
4 files changed, 104 insertions(+)
Copied: r8168-lts/repos/community-testing-i686/PKGBUILD (from rev 132516, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-04-29 15:14:49 UTC (rev 132517)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.039.00
+pkgrel=9
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+#url="http://www.realtek.com.tw"
+url="https://code.google.com/p/r8168/"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=3.14.40" "linux-lts<3.15")
+makedepends=("linux-lts-headers>=3.14.40" "linux-lts-headers<3.15")
+install=$pkgname.install
+source=(#"ftp://WebUser:wK9xBuD5@95.130.192.218/cn/nic/r8168-$pkgver.tar.bz2"
+ http://r8168dl.appspot.com/files/r8168-$pkgver.tar.bz2)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
+
+_extramodules=extramodules-3.14-lts
+
+build() {
+ cd "$_pkgname-$pkgver"
+ local _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 132516, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-testing-i686/r8168-lts.install (rev 0)
+++ community-testing-i686/r8168-lts.install 2015-04-29 15:14:49 UTC (rev 132517)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-3.14-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 132516, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2015-04-29 15:14:49 UTC (rev 132517)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.039.00
+pkgrel=9
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+#url="http://www.realtek.com.tw"
+url="https://code.google.com/p/r8168/"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=3.14.40" "linux-lts<3.15")
+makedepends=("linux-lts-headers>=3.14.40" "linux-lts-headers<3.15")
+install=$pkgname.install
+source=(#"ftp://WebUser:wK9xBuD5@95.130.192.218/cn/nic/r8168-$pkgver.tar.bz2"
+ http://r8168dl.appspot.com/files/r8168-$pkgver.tar.bz2)
+sha256sums=('767d922270274e781d8d42493a0021db1cafcb0388ac62564d0c0c3d82703edd')
+
+_extramodules=extramodules-3.14-lts
+
+build() {
+ cd "$_pkgname-$pkgver"
+ local _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 132516, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-testing-x86_64/r8168-lts.install (rev 0)
+++ community-testing-x86_64/r8168-lts.install 2015-04-29 15:14:49 UTC (rev 132517)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-3.14-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
+}
More information about the arch-commits
mailing list