From 61464ee29894aa7091440b882900e01d011ebc8a Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 9 May 2005 13:48:27 +0000 Subject: [PATCH] Clifford Wolf: Some config.in fixes and cleanups (in xorg and lvm-wrapper) [2005041315453810917] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5947 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/lvm-wrapper/config.in | 2 ++ package/x11/xorg/config.in | 44 ++++++++++++++---------------- package/x11/xorg/parse-config | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package/base/lvm-wrapper/config.in b/package/base/lvm-wrapper/config.in index dd45f444a..dc25c47cb 100644 --- a/package/base/lvm-wrapper/config.in +++ b/package/base/lvm-wrapper/config.in @@ -22,6 +22,7 @@ if pkgcheck lvm X || pkgcheck lvm2 X then + menu_begin MENU_COMPILER 'LVM / LVM2 Related Options' # if ! pkgcheck lvm-wrapper X ; then # comment "WARNING! You should really select the lvm-wrapper package when using lvm or lvm2." # fi @@ -31,4 +32,5 @@ then "none" "Dont install any man-pages regarding LVM" \ "lvm" "Install util man-pages for native LVM of linux-2.4" \ "lvm2" "Install util man-pages for LVM2 based on device-mapper" + menu_end fi diff --git a/package/x11/xorg/config.in b/package/x11/xorg/config.in index a58fea572..62490deed 100644 --- a/package/x11/xorg/config.in +++ b/package/x11/xorg/config.in @@ -20,33 +20,31 @@ # # --- ROCK-COPYRIGHT-NOTE-END --- -if pkgcheck xfree86 X && pkgcheck xorg X +if pkgcheck xfree86 X || pkgcheck xorg X then - menu_begin MENU_PKG_XORG 'X.Org Options' -# bool 'Use a CVS checkout instead of last stable release' \ -# ROCKCFG_PKG_XFREE86_CVS 0 - -# if [ "$ROCKCFG_PKG_XFREE86_CVS" = 1 ] ; then -# pkgenable xfree86-cvs -# pkgremove xfree86 -# else -# pkgenable xfree86 -# pkgremove xfree86-cvs -# fi - - bool 'Build X.Org instead of Xfree86' \ - ROCKCFG_PKG_XORG_BUILD 1 - - if [ $ROCKCFG_PKG_XORG_BUILD = 1 ] ; then - bool 'Enable Xinerama support globally' \ - ROCKCFG_PKG_XFREE86_XINERAMA 1 - - # Enable X.Org packages and disable xfree86 ones - pkgremove xfree86 + menu_begin MENU_PKG_XORG 'X.Org / XFree86 Options' + + if pkgcheck xfree86 X && pkgcheck xorg X + then + bool 'Build X.Org (instead of Xfree86)' \ + ROCKCFG_PKG_XORG_BUILD 1 + + if [ $ROCKCFG_PKG_XORG_BUILD = 1 ] ; then + pkgremove xfree86 + else + pkgremove xorg + fi else - pkgremove xorg + if pkgcheck xfree86 X; then + comment 'Using XFree86 (xorg already disabled)' + fi + if pkgcheck xorg X; then + comment 'Using X.Org (xfree86 already disabled)' + fi fi + bool 'Enable Xinerama support globally' \ + ROCKCFG_PKG_XORG_XINERAMA 1 menu_end fi diff --git a/package/x11/xorg/parse-config b/package/x11/xorg/parse-config index 34f8e2417..dd1c36faa 100644 --- a/package/x11/xorg/parse-config +++ b/package/x11/xorg/parse-config @@ -20,7 +20,7 @@ # # --- ROCK-COPYRIGHT-NOTE-END --- -if [ "$ROCKCFG_PKG_XFREE86_XINERAMA" = 1 ] ; then +if [ "$ROCKCFG_PKG_XORG_XINERAMA" = 1 ] ; then var_append confopt " " "--with-xinerama" fi