[Lunar-commits] r18081 - moonbase/trunk/x11/XOrg

Auke Kok sofar at lunar-linux.org
Tue Jan 10 22:58:07 UTC 2006


Author: sofar
Date: 2006-01-10 22:58:02 +0000 (Tue, 10 Jan 2006)
New Revision: 18081

Modified:
   moonbase/trunk/x11/XOrg/BUILD
   moonbase/trunk/x11/XOrg/POST_INSTALL
   moonbase/trunk/x11/XOrg/POST_REMOVE
Log:
Major cleanup of XOrg - remove drm and fix tedious and complex statements.


Modified: moonbase/trunk/x11/XOrg/BUILD
===================================================================
--- moonbase/trunk/x11/XOrg/BUILD	2006-01-10 22:40:26 UTC (rev 18080)
+++ moonbase/trunk/x11/XOrg/BUILD	2006-01-10 22:58:02 UTC (rev 18081)
@@ -1,62 +1,49 @@
 (
-  install_drm()  {
-    DRM_DIR="programs/Xserver/hw/xfree86/os-support/linux/drm/kernel"
-    DRI_DIR="extras/drm/linux"
-    DRM_DEST="/lib/modules/$(uname -r)/kernel/drivers/drm"
-    mkdir -p $DRM_DEST
-    cd $DRM_DIR &&
-    make
-    cd $SOURCE_DIRECTORY 
-    cd $DRI_DIR &&
-    make
-    cp $DRI_DIR/*.o $DRM_DEST 2>/dev/null
-    depmod -a
-    true
-  }
 
   if [ -e /etc/X11/xinit/xinitrc ]; then
     cp /etc/X11/xinit/xinitrc /etc/X11/xinit/xinitrc.orig
-    echo "Your master xinitrc file has been backed up as /etc/X11/xinit/xinitrc.orig"
+    message "Your master xinitrc file has been backed up as /etc/X11/xinit/xinitrc.orig"
   fi
 
   bad_flags '-funroll-loops' '-ffast-math'
 
   # Here we go for our host.def
+  (
+   echo  "#define InstallXdmConfig YES"
+   echo  "#define InstallXinitConfig YES"
+   echo  "#define InstallXserverSetUID YES"
+   echo  "#define BuildServersOnly NO"
 
-  echo  "#define InstallXdmConfig YES"          >> config/cf/host.def &&
-  echo  "#define InstallXinitConfig YES"        >> config/cf/host.def &&
-  echo  "#define InstallXserverSetUID YES"      >> config/cf/host.def &&
-  echo  "#define BuildServersOnly NO"           >> config/cf/host.def &&
+   if module_installed Linux-PAM ; then
+     echo "#define HasPam YES"
+     echo "#define HasPamMisc YES"
+   fi 
 
-  if module_installed Linux-PAM ; then
-    echo "#define HasPam YES"                   >> config/cf/host.def &&
-    echo "#define HasPamMisc YES"               >> config/cf/host.def 
-  fi 
+   if [ -n "$XORG_DRIVERS" ]; then
+     echo "#define XF86CardDrivers $XORG_DRIVERS"
+   fi
 
-  if [ -n "$XORG_DRIVERS" ]; then
-    echo "#define XF86CardDrivers $XORG_DRIVERS" >> config/cf/host.def
-  fi
-
-  echo  "#define DefaultCCOptions      $CFLAGS" >> config/cf/host.def &&
-  echo  "#define LibraryCDebugFlags    $CFLAGS" >> config/cf/host.def &&
-  echo  "#define DefaultCDebugFlags    $CFLAGS" >> config/cf/host.def &&
-  echo  "#define OptimizedCDebugFlags  $CFLAGS" >> config/cf/host.def &&
-  echo  "#define XVendorString \"Lunar-Linux.org (xorg.freedesktop.org $VERSION)\"" >> config/cf/host.def &&
-  echo  "#define HasZlib YES"                   >> config/cf/host.def &&
-  echo  "#define HasFreetype2 YES"              >> config/cf/host.def &&
-  echo  "#define ForceNormalLib  YES"           >> config/cf/host.def &&	
-  echo  "#define HasExpat  YES"			>> config/cf/host.def &&
-  echo  "#define UseExpat  YES"                 >> config/cf/host.def &&
-  echo  "#define HasLibpng YES"			>> config/cf/host.def &&
-  echo  "#define BuildDocs NO"			>> config/cf/host.def &&
-  echo  "#define HasLibxml2 YES"		>> config/cf/host.def;
-  echo  "#define InstallFontconfigLibrary NO"   >> config/cf/host.def &&
-  echo  "#define SharedLibXft YES"		>> config/cf/host.def &&
-  echo  "#define PreferXdmcpIPv6 YES"		>> config/cf/host.def &&
-  echo  "#define BuildFontServer NO"		>> config/cf/host.def &&
-  echo  "#define BuildFonts NO"			>> config/cf/host.def &&
-  echo  "#define MakeLocalFontDir NO"		>> config/cf/host.def &&
-  echo  "#define InstallFSConfig NO"		>> config/cf/host.def &&
+   echo  "#define DefaultCCOptions      $CFLAGS"
+   echo  "#define LibraryCDebugFlags    $CFLAGS"
+   echo  "#define DefaultCDebugFlags    $CFLAGS"
+   echo  "#define OptimizedCDebugFlags  $CFLAGS"
+   echo  "#define XVendorString \"Lunar-Linux.org (xorg.freedesktop.org $VERSION)\""
+   echo  "#define HasZlib YES"
+   echo  "#define HasFreetype2 YES"
+   echo  "#define ForceNormalLib  YES"
+   echo  "#define HasExpat  YES"
+   echo  "#define UseExpat  YES"
+   echo  "#define HasLibpng YES"
+   echo  "#define BuildDocs NO"
+   echo  "#define HasLibxml2 YES"
+   echo  "#define InstallFontconfigLibrary NO"
+   echo  "#define SharedLibXft YES"
+   echo  "#define PreferXdmcpIPv6 YES"
+   echo  "#define BuildFontServer NO"
+   echo  "#define BuildFonts NO"
+   echo  "#define MakeLocalFontDir NO"
+   echo  "#define InstallFSConfig NO"
+  ) >> config/cf/host.def
   
   if grep -q "Compilation aborted" /usr/include/linux/config.h ; then
     # This must happen or it will cause the module to break
@@ -75,49 +62,25 @@
   cd $SOURCE_DIRECTORY                  &&
   make install                          &&
   make install.man                      &&
-  install_drm                           &&
   mkdir -p /usr/X11R6/include/GL        &&
-  rm     -f  /usr/X11R6/lib/libz.a      &&
-  rm     -f /usr/X11R6/include/zlib.h   &&
-  rm     -f /usr/X11R6/include/zconf.h  &&
-  rm     -f /usr/X11R6/lib/libz.a       &&
+  rm -f /usr/X11R6/lib/libz.a           &&
+  rm -f /usr/X11R6/include/zlib.h       &&
+  rm -f /usr/X11R6/include/zconf.h      &&
+  rm -f /usr/X11R6/lib/libz.a           &&
 
   if [ ! -e /etc/skel/.xsession ]; then
     cp $SCRIPT_DIRECTORY/xsession /etc/skel/.xsession
   fi &&
 
-  if [ ! -d /usr/bin/X11 ]; then
-    ln -sf /usr/X11R6/bin /usr/bin/X11
-  fi &&
+  ln -sf /usr/X11R6/bin /usr/bin/X11 &&
+  ln -sf /usr/X11R6 /usr/X11 &&
+  ln -sf /usr/X11R6/include/X11 /usr/include/X11 &&
+  ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
+  ln -sf /usr/share/fonts /usr/X11R6/lib/X11/fonts &&
+  ln -sf /usr/X11R6/lib/libGLU.so.1.3 /usr/lib/libMesaGLU.so &&
+  ln -sf /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so &&
+  ln -sf /usr/X11R6/lib/pkgconfig/xft.pc /usr/lib/pkgconfig/xft.pc &&
 
-  if [ ! -d /usr/X11 ]; then
-    ln -sf /usr/X11R6 /usr/X11
-  fi &&
-
-  if [ ! -e /usr/include/X11 ]; then
-    ln -sf  /usr/X11R6/include/X11 /usr/include/X11
-  fi &&
-
-  if [ ! -d /usr/lib/X11 ]; then
-    ln -sf /usr/X11R6/lib/X11 /usr/lib/X11
-  fi &&
-  
-  if [ ! -d /usr/X11R6/lib/X11/fonts ]; then
-    ln -sf /usr/share/fonts /usr/X11R6/lib/X11/fonts
-  fi &&
-
-  if [ ! -e  /usr/lib/libMesaGLU.so ]; then
-    ln -sf /usr/X11R6/lib/libGLU.so.1.3 /usr/lib/libMesaGLU.so
-  fi &&
-
-  if [ ! -e /usr/X11R6/lib/libMesaGL.so ]; then
-    ln -sf /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so
-  fi &&
-  
-  if [ ! -e /usr/lib/pkgconfig/xft.pc ]; then
-    ln -sf /usr/X11R6/lib/pkgconfig/xft.pc /usr/lib/pkgconfig/xft.pc
-  fi &&
-
   install -g0 -m0 -m0700 $SCRIPT_DIRECTORY/init.d/ICE,X11-unix /etc/init.d/ &&
   ln -sf /etc/init.d/ICE,X11-unix /etc/rc2.d/S20ICE,X11-unix &&
   ln -sf /etc/init.d/ICE,X11-unix /etc/rc3.d/S20ICE,X11-unix &&
@@ -131,7 +94,9 @@
   fi &&
 
   # cosmetic but needed adjustments:
-  echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm &&
-  echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm-color
+  if ! grep -q 'XTerm*loginShell:' /etc/X11/app-defaults/XTerm ; then
+    echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm &&
+    echo 'XTerm*loginShell: true' >> /etc/X11/app-defaults/XTerm-color
+  fi &&
  
 ) > $C_FIFO 2>&1

Modified: moonbase/trunk/x11/XOrg/POST_INSTALL
===================================================================
--- moonbase/trunk/x11/XOrg/POST_INSTALL	2006-01-10 22:40:26 UTC (rev 18080)
+++ moonbase/trunk/x11/XOrg/POST_INSTALL	2006-01-10 22:58:02 UTC (rev 18081)
@@ -19,5 +19,5 @@
 message "Running fc-cache..." &&
 /usr/bin/fc-cache -f 
 
-message "${MESSAGE_COLOR}Some things are diffrent from XFree86 f.e. xf86config=xorgconfig${DEFAULT_COLOR}" 
+message "${MESSAGE_COLOR}Some things are different from XFree86 f.e. xf86config=xorgconfig${DEFAULT_COLOR}" 
 message "${MESSAGE_COLOR}xf86cfg=xorgcfg and /etc/X11/XF86Config=/etc/X11/xorg.conf${DEFAULT_COLOR}"

Modified: moonbase/trunk/x11/XOrg/POST_REMOVE
===================================================================
--- moonbase/trunk/x11/XOrg/POST_REMOVE	2006-01-10 22:40:26 UTC (rev 18080)
+++ moonbase/trunk/x11/XOrg/POST_REMOVE	2006-01-10 22:58:02 UTC (rev 18081)
@@ -1,16 +1,9 @@
 # Remove xserver
+if module_installed xserver; then lrm xserver; fi
 
-  if module_installed xserver; then lrm xserver; fi
-
-# Tidy up
-
-  rm -Rf /usr/X11*
-
 # Remove broken symlinks
+rm -Rf /usr/lib/pkgconfig/fontconfig.pc
+rm -Rf /usr/lib/pkgconfig/xft.pc
 
-  rm -Rf /usr/lib/pkgconfig/fontconfig.pc
-  rm -Rf /usr/lib/pkgconfig/xft.pc
-
 # Reinstall fontconfig since its broken now
-
-  if module_installed fontconfig; then lin -c fontconfig; fi
+if module_installed fontconfig; then lin -c fontconfig; fi



More information about the Lunar-commits mailing list