[Lunar-commits] <moonbase> all NVIDIA*: autoload when installed

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sun Apr 1 17:20:12 CEST 2012


commit f7b1dd405c45dc12bcf48576f219a56c41b779d6
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sun Apr 1 17:20:12 2012 +0200

    all NVIDIA*: autoload when installed
---
 x11/NVIDIA-beta/50-nvidia.conf   |   10 ++++++++++
 x11/NVIDIA-beta/BUILD            |    2 ++
 x11/NVIDIA-beta/DETAILS          |    2 +-
 x11/NVIDIA-beta/DETAILS.x86_64   |    4 ++--
 x11/NVIDIA-fx/50-nvidia.conf     |   10 ++++++++++
 x11/NVIDIA-fx/BUILD              |    2 ++
 x11/NVIDIA-legacy/50-nvidia.conf |   10 ++++++++++
 x11/NVIDIA-legacy/BUILD          |    2 ++
 x11/NVIDIA-old/50-nvidia.conf    |   10 ++++++++++
 x11/NVIDIA-old/BUILD             |    2 ++
 x11/NVIDIA/50-nvidia.conf        |   10 ++++++++++
 x11/NVIDIA/BUILD                 |    2 ++
 12 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/x11/NVIDIA-beta/50-nvidia.conf b/x11/NVIDIA-beta/50-nvidia.conf
new file mode 100644
index 0000000..8f52c92
--- /dev/null
+++ b/x11/NVIDIA-beta/50-nvidia.conf
@@ -0,0 +1,10 @@
+Section "Module"
+    SubSection     "extmod"
+        Option         "omit xfree86-dga"   # don't initialise the DGA extension
+    EndSubSection
+EndSection
+
+Section "Device"
+    Identifier     "Nvidia-device"
+    Driver         "nvidia"
+EndSection
diff --git a/x11/NVIDIA-beta/BUILD b/x11/NVIDIA-beta/BUILD
index 9ddfb19..21689f9 100644
--- a/x11/NVIDIA-beta/BUILD
+++ b/x11/NVIDIA-beta/BUILD
@@ -163,6 +163,8 @@
   # Register Nvidia XvMC library for use in any XvMC enabled media player
   install -m644 XvMCConfig /etc/X11 &&
 
+  install -Dm644 $SCRIPT_DIRECTORY/50-nvidia.conf /usr/share/X11/xorg.conf.d/50-nvidia.conf &&
+
   if in_depends $MODULE "gtk+-2" ; then
     install -m0755 nvidia-settings /usr/bin &&
     install -m0444 nvidia-settings-$AVERSION/doc/nvidia-settings.desktop /usr/share/applications &&
diff --git a/x11/NVIDIA-beta/DETAILS b/x11/NVIDIA-beta/DETAILS
index ad39e38..9aae7cf 100644
--- a/x11/NVIDIA-beta/DETAILS
+++ b/x11/NVIDIA-beta/DETAILS
@@ -40,7 +40,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/NVIDIA-Linux-x86-$VERSION
 
 cat << EOF
 These are the nvidia provided binary X11 drivers for their graphics
-cards. It also has the Linux kernel module needed for Geforce 6/7/8/9/GT2xx
+cards. It also has the Linux kernel module needed for all Geforce 6/7/8/9/GT2xx
 cards. Supported GPUs: (6/7/8/9/GTX 2xx families only)
 all Geforce 6xxx
 all Geforce 7xxx
diff --git a/x11/NVIDIA-beta/DETAILS.x86_64 b/x11/NVIDIA-beta/DETAILS.x86_64
index 390be9d..ad539aa 100644
--- a/x11/NVIDIA-beta/DETAILS.x86_64
+++ b/x11/NVIDIA-beta/DETAILS.x86_64
@@ -36,11 +36,11 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/NVIDIA-Linux-x86_64-$VERSION-no-compat32
          LICENSE="proprietary"
          ENTERED=20030804
          UPDATED=20120323
-           SHORT="X11 NVIDIA binary beta driver for Geforce 6/7/8/9/GT2xx"
+           SHORT="X11 NVIDIA binary beta driver for all Geforce 6/7/8/9/GT2xx"
 
 cat << EOF
 These are the nvidia provided binary X11 drivers for their graphics
-cards. It also has the Linux kernel module needed for Geforce 6/7/8/9/GT2xx
+cards. It also has the Linux kernel module needed for all Geforce 6/7/8/9/GT2xx
 cards. Supported GPUs: (6/7/8/9/GTX 2xx families only)
 all Geforce 6xxx
 all Geforce 7xxx
diff --git a/x11/NVIDIA-fx/50-nvidia.conf b/x11/NVIDIA-fx/50-nvidia.conf
new file mode 100644
index 0000000..8f52c92
--- /dev/null
+++ b/x11/NVIDIA-fx/50-nvidia.conf
@@ -0,0 +1,10 @@
+Section "Module"
+    SubSection     "extmod"
+        Option         "omit xfree86-dga"   # don't initialise the DGA extension
+    EndSubSection
+EndSection
+
+Section "Device"
+    Identifier     "Nvidia-device"
+    Driver         "nvidia"
+EndSection
diff --git a/x11/NVIDIA-fx/BUILD b/x11/NVIDIA-fx/BUILD
index 7927b49..ad86159 100644
--- a/x11/NVIDIA-fx/BUILD
+++ b/x11/NVIDIA-fx/BUILD
@@ -72,6 +72,8 @@
   echo libXvMCNVIDIA_dynamic.so.1 > /etc/X11/XvMCConfig &&
   chmod 644 /etc/X11/XvMCConfig &&
 
+  install -Dm644 $SCRIPT_DIRECTORY/50-nvidia.conf /usr/share/X11/xorg.conf.d/50-nvidia.conf &&
+
   # Get a sane default if haven't set it yet
   if [ "x$LUNAR_GL" == "x" ] ; then
     set_local_config LUNAR_GL binary
diff --git a/x11/NVIDIA-legacy/50-nvidia.conf b/x11/NVIDIA-legacy/50-nvidia.conf
new file mode 100644
index 0000000..8f52c92
--- /dev/null
+++ b/x11/NVIDIA-legacy/50-nvidia.conf
@@ -0,0 +1,10 @@
+Section "Module"
+    SubSection     "extmod"
+        Option         "omit xfree86-dga"   # don't initialise the DGA extension
+    EndSubSection
+EndSection
+
+Section "Device"
+    Identifier     "Nvidia-device"
+    Driver         "nvidia"
+EndSection
diff --git a/x11/NVIDIA-legacy/BUILD b/x11/NVIDIA-legacy/BUILD
index 86cdf15..7218236 100644
--- a/x11/NVIDIA-legacy/BUILD
+++ b/x11/NVIDIA-legacy/BUILD
@@ -44,6 +44,8 @@
   echo libXvMCNVIDIA_dynamic.so.1 > /etc/X11/XvMCConfig &&
   chmod 644 /etc/X11/XvMCConfig &&
 
+  install -Dm644 $SCRIPT_DIRECTORY/50-nvidia.conf /usr/share/X11/xorg.conf.d/50-nvidia.conf &&
+
   # Get a sane default if haven't set it yet
   if [ "x$LUNAR_GL" == "x" ] ; then
     set_local_config LUNAR_GL binary
diff --git a/x11/NVIDIA-old/50-nvidia.conf b/x11/NVIDIA-old/50-nvidia.conf
new file mode 100644
index 0000000..8f52c92
--- /dev/null
+++ b/x11/NVIDIA-old/50-nvidia.conf
@@ -0,0 +1,10 @@
+Section "Module"
+    SubSection     "extmod"
+        Option         "omit xfree86-dga"   # don't initialise the DGA extension
+    EndSubSection
+EndSection
+
+Section "Device"
+    Identifier     "Nvidia-device"
+    Driver         "nvidia"
+EndSection
diff --git a/x11/NVIDIA-old/BUILD b/x11/NVIDIA-old/BUILD
index 656253c..0904c63 100644
--- a/x11/NVIDIA-old/BUILD
+++ b/x11/NVIDIA-old/BUILD
@@ -37,6 +37,8 @@
   echo libXvMCNVIDIA_dynamic.so.1 > /etc/X11/XvMCConfig &&
   chmod 644 /etc/X11/XvMCConfig &&
 
+  install -Dm644 $SCRIPT_DIRECTORY/50-nvidia.conf /usr/share/X11/xorg.conf.d/50-nvidia.conf &&
+
   # Get a sane default if haven't set it yet
   if [ "x$LUNAR_GL" == "x" ] ; then
     set_local_config LUNAR_GL binary
diff --git a/x11/NVIDIA/50-nvidia.conf b/x11/NVIDIA/50-nvidia.conf
new file mode 100644
index 0000000..8f52c92
--- /dev/null
+++ b/x11/NVIDIA/50-nvidia.conf
@@ -0,0 +1,10 @@
+Section "Module"
+    SubSection     "extmod"
+        Option         "omit xfree86-dga"   # don't initialise the DGA extension
+    EndSubSection
+EndSection
+
+Section "Device"
+    Identifier     "Nvidia-device"
+    Driver         "nvidia"
+EndSection
diff --git a/x11/NVIDIA/BUILD b/x11/NVIDIA/BUILD
index 9ddfb19..21689f9 100644
--- a/x11/NVIDIA/BUILD
+++ b/x11/NVIDIA/BUILD
@@ -163,6 +163,8 @@
   # Register Nvidia XvMC library for use in any XvMC enabled media player
   install -m644 XvMCConfig /etc/X11 &&
 
+  install -Dm644 $SCRIPT_DIRECTORY/50-nvidia.conf /usr/share/X11/xorg.conf.d/50-nvidia.conf &&
+
   if in_depends $MODULE "gtk+-2" ; then
     install -m0755 nvidia-settings /usr/bin &&
     install -m0444 nvidia-settings-$AVERSION/doc/nvidia-settings.desktop /usr/share/applications &&


More information about the Lunar-commits mailing list