[Lunar-commits] <moonbase> xorg-reqs: our new internal module - does the same what kernel-reqs does for kernel modules

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Nov 19 22:03:28 CET 2011


commit a6aa21b0165a8bee49653e8543df1e68ad7b37ad
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Nov 19 22:03:28 2011 +0100

    xorg-reqs: our new internal module - does the same what kernel-reqs does for kernel modules
---
 x11/xorg-reqs/BUILD        |    1 +
 x11/xorg-reqs/DETAILS      |   13 +++++++++++++
 x11/xorg-reqs/POST_BUILD   |    1 +
 x11/xorg-reqs/POST_INSTALL |   11 +++++++++++
 x11/xorg-reqs/PRE_BUILD    |    1 +
 5 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/x11/xorg-reqs/BUILD b/x11/xorg-reqs/BUILD
new file mode 100644
index 0000000..a44ea7b
--- /dev/null
+++ b/x11/xorg-reqs/BUILD
@@ -0,0 +1 @@
+echo > $C_FIFO
diff --git a/x11/xorg-reqs/DETAILS b/x11/xorg-reqs/DETAILS
new file mode 100644
index 0000000..7873f8a
--- /dev/null
+++ b/x11/xorg-reqs/DETAILS
@@ -0,0 +1,13 @@
+          MODULE=xorg-reqs
+         VERSION=0.1
+        WEB_SITE=http://lunar-linux.org
+         ENTERED=20111119
+         UPDATED=20111119
+           SHORT="Drivers which must be re-installed after xorg-server installs"
+PROFILE=yes
+cat << EOF
+The xorg driver list is automatically generated
+from moonbase/xorg7/drivers directory and
+manually added NVIDIA* and fglrx modules
+during POST_INSTALL.
+EOF
diff --git a/x11/xorg-reqs/POST_BUILD b/x11/xorg-reqs/POST_BUILD
new file mode 100644
index 0000000..27ba77d
--- /dev/null
+++ b/x11/xorg-reqs/POST_BUILD
@@ -0,0 +1 @@
+true
diff --git a/x11/xorg-reqs/POST_INSTALL b/x11/xorg-reqs/POST_INSTALL
new file mode 100644
index 0000000..94ae2cb
--- /dev/null
+++ b/x11/xorg-reqs/POST_INSTALL
@@ -0,0 +1,11 @@
+# Generate a list of drivers from xorg:
+drivers=`ls $MOONBASE/xorg7/driver`
+# This is a manually collected list of X drivers from 3rd party providers.
+# Update it when you add external X driver.
+drivers="$drivers NVIDIA NVIDIA-beta NVIDIA-fx NVIDIA-legacy NVIDIA-old fglrx"
+for driver in $drivers; do
+  if module_installed $driver ; then
+    # ignore failures as much as possible
+    lin -c $driver || true
+  fi
+done
diff --git a/x11/xorg-reqs/PRE_BUILD b/x11/xorg-reqs/PRE_BUILD
new file mode 100644
index 0000000..27ba77d
--- /dev/null
+++ b/x11/xorg-reqs/PRE_BUILD
@@ -0,0 +1 @@
+true


More information about the Lunar-commits mailing list