[Lunar-commits] <moonbase> r8168: New driver for the Realtek 8111/8168B PCI-E network cards.

Moritz Heiber moe at lunar-linux.org
Fri Apr 25 21:27:18 CEST 2008


commit 75981bb7a98967690e0f7bd805f7e75be8953a95
Author: Moritz Heiber <moe at lunar-linux.org>
Date:   Fri Apr 25 21:27:18 2008 +0200

    r8168: New driver for the Realtek 8111/8168B PCI-E network cards.
---
 net/r8168/BUILD        |   23 +++++++++++++++++++++++
 net/r8168/DETAILS      |   16 ++++++++++++++++
 net/r8168/POST_INSTALL |    3 +++
 3 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/net/r8168/BUILD b/net/r8168/BUILD
new file mode 100644
index 0000000..e7b7725
--- /dev/null
+++ b/net/r8168/BUILD
@@ -0,0 +1,23 @@
+(
+
+  if grep -q "CONFIG_R8169=m" /usr/src/linux/.config || [ -e /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko ] ; then
+    message "${PROBLEM_COLOR}You compiled the r8169 driver as a kernel module!"
+    message "Remove the r8169 driver from your kernel completely"
+    message "before recompiling this module!${DEFAULT_COLOR}"
+    exit 1
+  fi
+
+  if grep -q "CONFIG_R8169=y" /usr/src/linux/.config ; then
+    message "${PROBLEM_COLOR}You compiled the r8169 driver into the kernel!"
+    message "Remove the r8169 driver from your kernel"
+    message "completely before recompiling this module!${DEFAULT_COLOR}"
+    exit 1
+  fi
+
+  patch_it $SOURCE2 0 &&
+
+  make clean modules &&
+  prepare_install &&
+  make install
+
+) > $C_FIFO 2>&1
diff --git a/net/r8168/DETAILS b/net/r8168/DETAILS
new file mode 100644
index 0000000..fba1a00
--- /dev/null
+++ b/net/r8168/DETAILS
@@ -0,0 +1,16 @@
+          MODULE=r8168
+         VERSION=8.006.00
+          SOURCE=$MODULE-$VERSION.tar.bz2
+         SOURCE2=$MODULE-$VERSION-worstprogrammingever.patch
+      SOURCE_URL=ftp://202.65.194.212/cn/nic/
+     SOURCE2_URL=$PATCH_URL/
+      SOURCE_VFY=sha1:48ea634eaede95792ad2f3ce605ac90a53028779
+     SOURCE2_VFY=sha1:fc7417db740dac82f97d33053398e8e620c5facd
+        WEB_SITE=http://www.realtek.com.tw
+         ENTERED=20080425
+         UPDATED=20080425
+           SHORT="the driver for the RTL8111/8168B PCI-E network cards"
+
+cat << EOF
+This is the driver for the RTL8111/8168B PCI-E network cards.
+EOF
diff --git a/net/r8168/POST_INSTALL b/net/r8168/POST_INSTALL
new file mode 100644
index 0000000..1220c59
--- /dev/null
+++ b/net/r8168/POST_INSTALL
@@ -0,0 +1,3 @@
+# Run depmod
+
+depmod -a


More information about the Lunar-commits mailing list