[arch-commits] Commit in r8168-lts/repos (6 files)
Andreas Radke
andyrtr at archlinux.org
Thu Jun 9 20:03:17 UTC 2016
Date: Thursday, June 9, 2016 @ 22:03:17
Author: andyrtr
Revision: 178898
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
r8168-lts/repos/community-staging-i686/
r8168-lts/repos/community-staging-i686/PKGBUILD
(from rev 178897, r8168-lts/trunk/PKGBUILD)
r8168-lts/repos/community-staging-i686/r8168-lts.install
(from rev 178897, r8168-lts/trunk/r8168-lts.install)
r8168-lts/repos/community-staging-x86_64/
r8168-lts/repos/community-staging-x86_64/PKGBUILD
(from rev 178897, r8168-lts/trunk/PKGBUILD)
r8168-lts/repos/community-staging-x86_64/r8168-lts.install
(from rev 178897, r8168-lts/trunk/r8168-lts.install)
--------------------------------------------+
community-staging-i686/PKGBUILD | 34 +++++++++++++++++++++++++++
community-staging-i686/r8168-lts.install | 17 +++++++++++++
community-staging-x86_64/PKGBUILD | 34 +++++++++++++++++++++++++++
community-staging-x86_64/r8168-lts.install | 17 +++++++++++++
4 files changed, 102 insertions(+)
Copied: r8168-lts/repos/community-staging-i686/PKGBUILD (from rev 178897, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-06-09 20:03:17 UTC (rev 178898)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.042
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+#url="http://www.realtek.com.tw"
+url="https://code.google.com/p/r8168/"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=4.4.13" "linux-lts<4.5")
+makedepends=("linux-lts-headers>=4.4.13" "linux-lts-headers<4.5")
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('9dd8ae22115bcbef98c15b0b1e2160300cce3129ef7e0485d7e577188ba3fcc2')
+
+_extramodules=extramodules-4.4-lts
+
+build() {
+ cd "$_pkgname-$pkgver"
+ local _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-staging-i686/r8168-lts.install (from rev 178897, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-staging-i686/r8168-lts.install (rev 0)
+++ community-staging-i686/r8168-lts.install 2016-06-09 20:03:17 UTC (rev 178898)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-4.4-lts'
+ 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
+}
Copied: r8168-lts/repos/community-staging-x86_64/PKGBUILD (from rev 178897, r8168-lts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-06-09 20:03:17 UTC (rev 178898)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=r8168-lts
+_pkgname=r8168
+pkgver=8.042
+pkgrel=2
+pkgdesc="A kernel module for Realtek 8168 network cards for linux-lts"
+#url="http://www.realtek.com.tw"
+url="https://code.google.com/p/r8168/"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' "linux-lts>=4.4.13" "linux-lts<4.5")
+makedepends=("linux-lts-headers>=4.4.13" "linux-lts-headers<4.5")
+install=$pkgname.install
+source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('9dd8ae22115bcbef98c15b0b1e2160300cce3129ef7e0485d7e577188ba3fcc2')
+
+_extramodules=extramodules-4.4-lts
+
+build() {
+ cd "$_pkgname-$pkgver"
+ local _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-staging-x86_64/r8168-lts.install (from rev 178897, r8168-lts/trunk/r8168-lts.install)
===================================================================
--- community-staging-x86_64/r8168-lts.install (rev 0)
+++ community-staging-x86_64/r8168-lts.install 2016-06-09 20:03:17 UTC (rev 178898)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-4.4-lts'
+ 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
+}
More information about the arch-commits
mailing list