mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 02:54:36 +08:00
adding new wifi driver, needed with kernel 3.3 and up
This commit is contained in:
parent
1e4bdd55f5
commit
7d03371601
34
r8168/PKGBUILD
Normal file
34
r8168/PKGBUILD
Normal 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
17
r8168/r8168.install
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user