adding new wifi driver, needed with kernel 3.3 and up

This commit is contained in:
abveritas 2012-06-15 19:40:19 +00:00
parent 1e4bdd55f5
commit 7d03371601
2 changed files with 51 additions and 0 deletions

34
r8168/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=r8168
pkgver=8.031.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>=3.4' 'linux<3.5')
makedepends=('linux-headers')
source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
install=$pkgname.install
_extramodules=extramodules-3.4-ARCH
_kernver="$(cat /lib/modules/$_extramodules/version || true)"
build() {
cd "$srcdir/$pkgname-$pkgver"
make clean SYSSRC=/usr/src/linux-$_kernver modules
}
package() {
cd "$srcdir/$pkgname-$pkgver/src"
install -D -m644 $pkgname.ko "$pkgdir/lib/modules/$_extramodules/$pkgname.ko"
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}
md5sums=('ec1654f02e2dad930bbeb0210ddab7e5')

17
r8168/r8168.install Normal file
View File

@ -0,0 +1,17 @@
rebuild_module_dependencies() {
EXTRAMODULES='extramodules-3.4-ARCH'
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
}