]> git.pld-linux.org Git - packages/xorg-xserver-server.git/commitdiff
- trigger to edit xorg.conf (disable RgbPath and removed modules) on upgrade
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 12 Sep 2008 20:03:35 +0000 (20:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xorg-xserver-server.spec -> 1.141

xorg-xserver-server.spec

index 380fcb72eee75baf276ac62651701f98343cf038..7f348324a605a5d0f040a408a21340f697b0942d 100644 (file)
@@ -99,6 +99,7 @@ BuildRequires:        xorg-proto-xproto-devel >= 7.0.9
 BuildRequires: xorg-util-util-macros >= 0.99.2
 #BR: xcalibrateproto, tslib (for KDRIVE only)
 #BR: glitz-devel >= 0.4.3 (for XGL and EGL only)
+Requires(triggerpostun):       sed >= 4.0
 Requires:      pixman >= 0.9.5
 Requires:      xkeyboard-config
 # for rgb.txt
@@ -383,6 +384,18 @@ if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then
 fi
 %endif
 
+%triggerpostun -- xorg-xserver-server < 1.5.0
+if [ -f /etc/X11/xorg.conf ]; then
+       sed -i -e 's/^\s*RgbPath.*$/#& # obsolete option/' /etc/X11/xorg.conf
+       sed -i -e 's/^\s*Load\s*"type1".*$/#& # obsolete module/' /etc/X11/xorg.conf
+%if %{without record}
+       sed -i -e 's/^\s*Load\s*"record".*$/#& # module disabled in this build/' /etc/X11/xorg.conf
+%endif
+%if %{without xtrap}
+       sed -i -e 's/^\s*Load\s*"xtrap".*$/#& # deprecated module, disabled/' /etc/X11/xorg.conf
+%endif
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc COPYING ChangeLog
This page took 2.067555 seconds and 4 git commands to generate.