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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Sat Mar 30 11:17:18 UTC 2013


    Date: Saturday, March 30, 2013 @ 12:17:18
  Author: foutrelis
Revision: 87371

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  r8168/repos/community-testing-i686/
  r8168/repos/community-testing-i686/PKGBUILD
    (from rev 87370, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-i686/linux-3.8.patch
    (from rev 87370, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-i686/r8168.install
    (from rev 87370, r8168/trunk/r8168.install)
  r8168/repos/community-testing-x86_64/
  r8168/repos/community-testing-x86_64/PKGBUILD
    (from rev 87370, r8168/trunk/PKGBUILD)
  r8168/repos/community-testing-x86_64/linux-3.8.patch
    (from rev 87370, r8168/trunk/linux-3.8.patch)
  r8168/repos/community-testing-x86_64/r8168.install
    (from rev 87370, r8168/trunk/r8168.install)

------------------------------------------+
 community-testing-i686/PKGBUILD          |   49 +++++++++++++++++++++++++++++
 community-testing-i686/linux-3.8.patch   |   48 ++++++++++++++++++++++++++++
 community-testing-i686/r8168.install     |   17 ++++++++++
 community-testing-x86_64/PKGBUILD        |   49 +++++++++++++++++++++++++++++
 community-testing-x86_64/linux-3.8.patch |   48 ++++++++++++++++++++++++++++
 community-testing-x86_64/r8168.install   |   17 ++++++++++
 6 files changed, 228 insertions(+)

Copied: r8168/repos/community-testing-i686/PKGBUILD (from rev 87370, r8168/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=7
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+        linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+	_kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+	KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+	cd "$pkgname-$pkgver"
+
+	patch -Np1 -i "$srcdir/linux-3.8.patch"
+
+	# 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>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+	KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+	msg "Kernel = $KERNEL_VERSION"
+
+	cd "$pkgname-$pkgver"
+	install -Dm644 src/$pkgname.ko "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko"
+	find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+	sed -i "s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH|" "$startdir/$pkgname.install"
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+            'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-i686/linux-3.8.patch (from rev 87370, r8168/trunk/linux-3.8.patch)
===================================================================
--- community-testing-i686/linux-3.8.patch	                        (rev 0)
+++ community-testing-i686/linux-3.8.patch	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c	2013-02-21 03:31:04.000000000 +0200
++++ r8168-8.035.00/src/r8168_n.c	2013-02-21 03:31:56.000000000 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+ 	spin_unlock_irqrestore(&tp->phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+ 		   struct net_device **dev_out,
+ 		   void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+ 	goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+ 	void __iomem *ioaddr = tp->mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+ 		 const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+ 	return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+ 	struct net_device *dev = pci_get_drvdata(pdev);
+@@ -17649,7 +17649,7 @@ static struct pci_driver rtl8168_pci_dri
+ 	.name		= MODULENAME,
+ 	.id_table	= rtl8168_pci_tbl,
+ 	.probe		= rtl8168_init_one,
+-	.remove		= __devexit_p(rtl8168_remove_one),
++	.remove		= rtl8168_remove_one,
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,11)
+ 	.shutdown	= rtl8168_shutdown,
+ #endif

Copied: r8168/repos/community-testing-i686/r8168.install (from rev 87370, r8168/trunk/r8168.install)
===================================================================
--- community-testing-i686/r8168.install	                        (rev 0)
+++ community-testing-i686/r8168.install	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+	EXTRAMODULES='extramodules-3.8-ARCH'
+	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
+}

Copied: r8168/repos/community-testing-x86_64/PKGBUILD (from rev 87370, r8168/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Bob Fanger < bfanger(at)gmail >
+# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
+
+pkgname=r8168
+pkgver=8.035.00
+pkgrel=7
+pkgdesc="A kernel module for Realtek 8168 network cards"
+url="http://www.realtek.com.tw"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=('glibc' 'linux')
+makedepends=('linux-headers')
+source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+        linux-3.8.patch)
+install=$pkgname.install
+
+build() {
+	_kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+	KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+	cd "$pkgname-$pkgver"
+
+	patch -Np1 -i "$srcdir/linux-3.8.patch"
+
+	# 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>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+	KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+	msg "Kernel = $KERNEL_VERSION"
+
+	cd "$pkgname-$pkgver"
+	install -Dm644 src/$pkgname.ko "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH/$pkgname.ko"
+	find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+	sed -i "s|extramodules-.*-ARCH|extramodules-3.$_kernver-ARCH|" "$startdir/$pkgname.install"
+}
+
+sha256sums=('b904d31fc9bd6c97cc34479a0eba0e3a9bba5351a43b56dd5fff6b7dc1a5df73'
+            'fcf49d6147a7db3e739e6798b41230c13403cdba8ef8db93e7691c4c1e4617c3')

Copied: r8168/repos/community-testing-x86_64/linux-3.8.patch (from rev 87370, r8168/trunk/linux-3.8.patch)
===================================================================
--- community-testing-x86_64/linux-3.8.patch	                        (rev 0)
+++ community-testing-x86_64/linux-3.8.patch	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,48 @@
+diff -upr r8168-8.035.00.orig/src/r8168_n.c r8168-8.035.00/src/r8168_n.c
+--- r8168-8.035.00.orig/src/r8168_n.c	2013-02-21 03:31:04.000000000 +0200
++++ r8168-8.035.00/src/r8168_n.c	2013-02-21 03:31:56.000000000 +0200
+@@ -14541,7 +14541,7 @@ rtl8168_phy_power_down (struct net_devic
+ 	spin_unlock_irqrestore(&tp->phy_lock, flags);
+ }
+ 
+-static int __devinit
++static int
+ rtl8168_init_board(struct pci_dev *pdev,
+ 		   struct net_device **dev_out,
+ 		   void __iomem **ioaddr_out)
+@@ -14711,7 +14711,7 @@ err_out:
+ 	goto out;
+ }
+ 
+-static void __devinit
++static void
+ rtl8168_init_sequence(struct rtl8168_private *tp)
+ {
+ 	void __iomem *ioaddr = tp->mmio_addr;
+@@ -14964,7 +14964,7 @@ static const struct net_device_ops rtl81
+ };
+ #endif
+ 
+-static int __devinit
++static int
+ rtl8168_init_one(struct pci_dev *pdev,
+ 		 const struct pci_device_id *ent)
+ {
+@@ -15128,7 +15128,7 @@ rtl8168_init_one(struct pci_dev *pdev,
+ 	return 0;
+ }
+ 
+-static void __devexit
++static void
+ rtl8168_remove_one(struct pci_dev *pdev)
+ {
+ 	struct net_device *dev = pci_get_drvdata(pdev);
+@@ -17649,7 +17649,7 @@ static struct pci_driver rtl8168_pci_dri
+ 	.name		= MODULENAME,
+ 	.id_table	= rtl8168_pci_tbl,
+ 	.probe		= rtl8168_init_one,
+-	.remove		= __devexit_p(rtl8168_remove_one),
++	.remove		= rtl8168_remove_one,
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,11)
+ 	.shutdown	= rtl8168_shutdown,
+ #endif

Copied: r8168/repos/community-testing-x86_64/r8168.install (from rev 87370, r8168/trunk/r8168.install)
===================================================================
--- community-testing-x86_64/r8168.install	                        (rev 0)
+++ community-testing-x86_64/r8168.install	2013-03-30 11:17:18 UTC (rev 87371)
@@ -0,0 +1,17 @@
+rebuild_module_dependencies() {
+	EXTRAMODULES='extramodules-3.8-ARCH'
+	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
+}




More information about the arch-commits mailing list