mirror of
https://github.com/archlinux/aur.git
synced 2026-02-28 00:33:14 +01:00
8.040.00-1
This commit is contained in:
commit
57eff8ffd1
3 changed files with 84 additions and 0 deletions
21
.SRCINFO
Normal file
21
.SRCINFO
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
pkgbase = r8168-uksm
|
||||
pkgdesc = A kernel module for Realtek 8168 network cards
|
||||
pkgver = 8.040.00
|
||||
pkgrel = 1
|
||||
url = http://www.realtek.com.tw
|
||||
install = r8168.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
makedepends = linux-uksm-headers>=4.0
|
||||
makedepends = linux-uksm-headers<4.1
|
||||
depends = glibc
|
||||
depends = linux-uksm>=4.0
|
||||
depends = linux-uksm<4.1
|
||||
source = r8168-8.040.00.tar.bz2::http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/cn/nic/0002-r8168-8.040.00.tar.bz2
|
||||
sha256sums = da0444fcd7aabb7762310cdf2047fd0aeb7a9ed97a3d6b80d62a0fc71e0730bf
|
||||
|
||||
pkgname = r8168-uksm
|
||||
depends = linux-uksm>=4.0
|
||||
depends = linux-uksm<4.1
|
||||
|
||||
46
PKGBUILD
Normal file
46
PKGBUILD
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: FadeMind <fademind@gmail.com>
|
||||
# Contributor: Piotr Górski <sir_lucjan@openlinux.pl>
|
||||
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
||||
# Contributor:Bob Fanger < bfanger(at)gmail >
|
||||
# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
|
||||
|
||||
|
||||
pkgname=r8168-uksm
|
||||
_pkgname=r8168
|
||||
pkgver=8.040.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-uksm>=4.0' 'linux-uksm<4.1')
|
||||
makedepends=('linux-uksm-headers>=4.0' 'linux-uksm-headers<4.1')
|
||||
_extramodules="extramodules-4.0-uksm"
|
||||
source=("${_pkgname}-${pkgver}.tar.bz2::http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/cn/nic/0002-${_pkgname}-${pkgver}.tar.bz2")
|
||||
sha256sums=('da0444fcd7aabb7762310cdf2047fd0aeb7a9ed97a3d6b80d62a0fc71e0730bf')
|
||||
install=${_pkgname}.install
|
||||
|
||||
# OLD OUTOFDATE SRC: https://r8168dl.appspot.com/files/${_pkgname}-${pkgver}.tar.bz2
|
||||
|
||||
build() {
|
||||
_kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
|
||||
KERNEL_RELEASE=$(cat /usr/lib/modules/${_extramodules}/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-uksm>=4.0' 'linux-uksm<4.1')
|
||||
KERNEL_VERSION=$(cat /usr/lib/modules/${_extramodules}/version)
|
||||
msg "Kernel = ${KERNEL_VERSION}"
|
||||
cd "${_pkgname}-${pkgver}"
|
||||
install -Dm644 src/${_pkgname}.ko "${pkgdir}/usr/lib/modules/${_extramodules}/${_pkgname}.ko"
|
||||
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} +
|
||||
sed -i "s|extramodules-.*-ARCH|extramodules-4.0-uksm|" "${startdir}/${_pkgname}.install"
|
||||
}
|
||||
17
r8168.install
Normal file
17
r8168.install
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
rebuild_module_dependencies() {
|
||||
EXTRAMODULES='extramodules-4.0-uksm'
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue