[arch-commits] Commit in r8168/repos (6 files)
Evangelos Foutras
foutrelis at nymeria.archlinux.org
Mon Jun 9 12:14:11 UTC 2014
Date: Monday, June 9, 2014 @ 14:14:11
Author: foutrelis
Revision: 112891
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 112890, r8168/trunk/PKGBUILD)
r8168/repos/community-testing-i686/r8168.install
(from rev 112890, r8168/trunk/r8168.install)
r8168/repos/community-testing-x86_64/
r8168/repos/community-testing-x86_64/PKGBUILD
(from rev 112890, r8168/trunk/PKGBUILD)
r8168/repos/community-testing-x86_64/r8168.install
(from rev 112890, r8168/trunk/r8168.install)
----------------------------------------+
community-testing-i686/PKGBUILD | 58 +++++++++++++++++++++++++++++++
community-testing-i686/r8168.install | 17 +++++++++
community-testing-x86_64/PKGBUILD | 58 +++++++++++++++++++++++++++++++
community-testing-x86_64/r8168.install | 17 +++++++++
4 files changed, 150 insertions(+)
Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 112890, r8168/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-06-09 12:14:11 UTC (rev 112891)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.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}" "linux<3.$(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/r8168.install (from rev 112890, r8168/trunk/r8168.install)
===================================================================
--- community-testing-i686/r8168.install (rev 0)
+++ community-testing-i686/r8168.install 2014-06-09 12:14:11 UTC (rev 112891)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-3.15-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" > /etc/modprobe.d/r8169_blacklist.conf`'
+}
+post_upgrade() {
+ rebuild_module_dependencies
+}
+
+post_remove() {
+ rebuild_module_dependencies
+}
Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 112890, r8168/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2014-06-09 12:14:11 UTC (rev 112891)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.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}" "linux<3.$(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-x86_64/r8168.install (from rev 112890, r8168/trunk/r8168.install)
===================================================================
--- community-testing-x86_64/r8168.install (rev 0)
+++ community-testing-x86_64/r8168.install 2014-06-09 12:14:11 UTC (rev 112891)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-3.15-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" > /etc/modprobe.d/r8169_blacklist.conf`'
+}
+post_upgrade() {
+ rebuild_module_dependencies
+}
+
+post_remove() {
+ rebuild_module_dependencies
+}
More information about the arch-commits
mailing list