[arch-commits] Commit in r8168-lts/repos (3 files)

Andreas Radke andyrtr at archlinux.org
Sat Aug 4 20:06:16 UTC 2018


    Date: Saturday, August 4, 2018 @ 20:06:16
  Author: andyrtr
Revision: 368136

archrelease: copy trunk to community-testing-x86_64

Added:
  r8168-lts/repos/community-testing-x86_64/
  r8168-lts/repos/community-testing-x86_64/PKGBUILD
    (from rev 368135, r8168-lts/trunk/PKGBUILD)
  r8168-lts/repos/community-testing-x86_64/r8168-lts.install
    (from rev 368135, r8168-lts/trunk/r8168-lts.install)

-------------------+
 PKGBUILD          |   33 +++++++++++++++++++++++++++++++++
 r8168-lts.install |    4 ++++
 2 files changed, 37 insertions(+)

Copied: r8168-lts/repos/community-testing-x86_64/PKGBUILD (from rev 368135, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-08-04 20:06:16 UTC (rev 368136)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.045.08
+pkgrel=19
+pkgdesc="A kernel module for Realtek 8169 network cards for linux-lts"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('x86_64')
+depends=('glibc' "linux-lts>=4.14.60" "linux-lts<4.15")
+makedepends=("linux-lts-headers>=4.14.60" "linux-lts-headers<4.15")
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('18161cb72fc872a9aed194514f7b8fb8b255b6fa6ed3d2dd459700eaad575f31')
+
+_extramodules=extramodules-4.14-lts
+
+build() {
+	cd "$_pkgname-$pkgver"
+	_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 368135, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-testing-x86_64/r8168-lts.install	                        (rev 0)
+++ community-testing-x86_64/r8168-lts.install	2018-08-04 20:06:16 UTC (rev 368136)
@@ -0,0 +1,4 @@
+post_install() {
+	echo '>>> The module r8168 conflicts with r8169. You can blacklist it with:'
+	echo '>>>  `echo "blacklist r8169" > /etc/modprobe.d/r8169_blacklist.conf`'
+}



More information about the arch-commits mailing list