summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Weiler <pylon@gentoo.org>2004-10-07 19:38:23 +0000
committerLars Weiler <pylon@gentoo.org>2004-10-07 19:38:23 +0000
commit0503e7d04e31c0e54702d2472faf45ffc328d5d4 (patch)
tree3b8b4afa348c0ee66643a020ef55c395f520404f /x11-misc/Xautoconfig
parentKeyworded ~ppc-macos. Bug #57856 (diff)
downloadhistorical-0503e7d04e31c0e54702d2472faf45ffc328d5d4.tar.gz
historical-0503e7d04e31c0e54702d2472faf45ffc328d5d4.tar.bz2
historical-0503e7d04e31c0e54702d2472faf45ffc328d5d4.zip
Edited the patches and the ebuild so that it works with X.org.
Diffstat (limited to 'x11-misc/Xautoconfig')
-rw-r--r--x11-misc/Xautoconfig/ChangeLog9
-rw-r--r--x11-misc/Xautoconfig/Manifest14
-rw-r--r--x11-misc/Xautoconfig/Xautoconfig-0.22-r2.ebuild (renamed from x11-misc/Xautoconfig/Xautoconfig-0.22-r1.ebuild)4
-rw-r--r--x11-misc/Xautoconfig/Xautoconfig-0.22.ebuild42
-rw-r--r--x11-misc/Xautoconfig/files/XF4text.h.diff48
-rw-r--r--x11-misc/Xautoconfig/files/Xautoconfig.patch374
-rw-r--r--x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r11
-rw-r--r--x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r2 (renamed from x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22)0
8 files changed, 204 insertions, 288 deletions
diff --git a/x11-misc/Xautoconfig/ChangeLog b/x11-misc/Xautoconfig/ChangeLog
index dc7533a513d0..df4429cf7cea 100644
--- a/x11-misc/Xautoconfig/ChangeLog
+++ b/x11-misc/Xautoconfig/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-misc/Xautoconfig
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/Xautoconfig/ChangeLog,v 1.12 2004/07/17 21:17:27 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/Xautoconfig/ChangeLog,v 1.13 2004/10/07 19:38:23 pylon Exp $
+
+*Xautoconfig-0.22-r2 (07 Oct 2004)
+
+ 07 Oct 2004; Lars Weiler <pylon@gentoo.org> files/XF4text.h.diff,
+ files/Xautoconfig.patch, -Xautoconfig-0.22-r1.ebuild,
+ +Xautoconfig-0.22-r2.ebuild, -Xautoconfig-0.22.ebuild:
+ Edited the patches and the ebuild so that it works with X.org.
14 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> Xautoconfig-0.15.ebuild:
Added eutils, added IUSE=.
diff --git a/x11-misc/Xautoconfig/Manifest b/x11-misc/Xautoconfig/Manifest
index 300078ba4365..93e255f27ec1 100644
--- a/x11-misc/Xautoconfig/Manifest
+++ b/x11-misc/Xautoconfig/Manifest
@@ -1,10 +1,8 @@
-MD5 6d65a18f4c96d32a230510646bb15f5e ChangeLog 1092
-MD5 9ba3ceca3ae81ec759fbb9a277c0e45c metadata.xml 165
-MD5 e0a9d60c9715187f5be2c66cb26deb6e Xautoconfig-0.22-r1.ebuild 915
+MD5 e1f088697c134a1934c9ed0d30d24ce7 ChangeLog 1376
MD5 7d09bdb93d079ed8ce21168774550fa5 Xautoconfig-0.15.ebuild 954
-MD5 400217364e9660cfe614151b5799db49 Xautoconfig-0.22.ebuild 936
-MD5 7d6fd7123b65ab448c23cdbed3c33c1b files/digest-Xautoconfig-0.22 67
-MD5 a9870986859a1ae8c050c8a5a0209644 files/XF4text.h.diff 1486
-MD5 bb658b932c87f1cad014df109e7bbdd3 files/Xautoconfig.patch 5196
+MD5 9ba3ceca3ae81ec759fbb9a277c0e45c metadata.xml 165
+MD5 8dd257b928d8087f5e2669d04dc41017 Xautoconfig-0.22-r2.ebuild 911
MD5 d2e645a38c207a626b6b6fb2c9835937 files/digest-Xautoconfig-0.15 67
-MD5 7d6fd7123b65ab448c23cdbed3c33c1b files/digest-Xautoconfig-0.22-r1 67
+MD5 727d7ebe6cc48a75a0a74f09836e7287 files/XF4text.h.diff 1900
+MD5 7e31919322ee6a5e01fa56b44fc46338 files/Xautoconfig.patch 3867
+MD5 7d6fd7123b65ab448c23cdbed3c33c1b files/digest-Xautoconfig-0.22-r2 67
diff --git a/x11-misc/Xautoconfig/Xautoconfig-0.22-r1.ebuild b/x11-misc/Xautoconfig/Xautoconfig-0.22-r2.ebuild
index 1ef3bb0a65c3..3e3276391626 100644
--- a/x11-misc/Xautoconfig/Xautoconfig-0.22-r1.ebuild
+++ b/x11-misc/Xautoconfig/Xautoconfig-0.22-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/Xautoconfig/Xautoconfig-0.22-r1.ebuild,v 1.2 2004/09/28 19:28:59 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/Xautoconfig/Xautoconfig-0.22-r2.ebuild,v 1.1 2004/10/07 19:38:23 pylon Exp $
inherit eutils
@@ -35,7 +35,7 @@ src_install() {
dodir /usr/X11R6/
into /usr/X11R6/
- dobin Xautoconfig4
+ dobin Xautoconfig
dodoc ChangeLog
diff --git a/x11-misc/Xautoconfig/Xautoconfig-0.22.ebuild b/x11-misc/Xautoconfig/Xautoconfig-0.22.ebuild
deleted file mode 100644
index f37ecdbec081..000000000000
--- a/x11-misc/Xautoconfig/Xautoconfig-0.22.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation & Pieter Van den Abeele
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/Xautoconfig/Xautoconfig-0.22.ebuild,v 1.4 2004/09/28 19:28:59 pvdabeel Exp $
-
-inherit eutils
-
-DESCRIPTION="Xautoconfig is a PPC only config file generator for xfree86"
-SRC_URI="http://ftp.penguinppc.org/projects/xautocfg/${P}.tar.gz"
-HOMEPAGE="http://ftp.penguinppc.org/projects/xautocfg/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="ppc -x86 -sparc "
-IUSE=""
-
-DEPEND="sys-apps/pciutils"
-
-src_unpack() {
- if [ ${ARCH} != ppc ]
- then
- die "This is a PPC-only package"
- fi
-
- unpack ${A}
-
- cd ${S}
- epatch ${FILESDIR}/Xautoconfig.patch || die
- epatch ${FILESDIR}/XF4text.h.diff || die
-}
-
-src_compile() {
- make || die "sorry, failed to compile Xautoconfig (PPC-only ebuild)"
-}
-
-src_install() {
-
- dodir /usr/X11R6/
- into /usr/X11R6/
- dobin Xautoconfig4
-
- dodoc ChangeLog
-
-}
diff --git a/x11-misc/Xautoconfig/files/XF4text.h.diff b/x11-misc/Xautoconfig/files/XF4text.h.diff
index 99864e192bc0..ef28d20c27a3 100644
--- a/x11-misc/Xautoconfig/files/XF4text.h.diff
+++ b/x11-misc/Xautoconfig/files/XF4text.h.diff
@@ -1,13 +1,13 @@
---- XF4text.h.old 2004-06-07 17:42:13.000000000 -0400
-+++ XF4text.h 2004-06-07 17:49:33.000000000 -0400
-@@ -1,5 +1,7 @@
- /* This file hold the various bits of the config file for XFree86 4.2+ */
-
-+/* Modified for Gentoo PPC Distribution by Matt Jarjoura */
+--- XF4text.h.old 2004-10-07 21:24:03.911097072 +0200
++++ XF4text.h 2004-10-07 21:26:29.497964504 +0200
+@@ -1,4 +1,6 @@
+-/* This file hold the various bits of the config file for XFree86 4.2+ */
++/* This file hold the various bits of the config file for X.org >=6.7.0 */
+
++/* Modified for Gentoo PPC Distribution by Matt Jarjoura and Lars Weiler */
+
static char *header =
"# File generated by Xautoconfig.\n"
- "Section \"ServerLayout\"\n"
@@ -20,10 +22,26 @@
"\n"
" RgbPath \"/usr/X11R6/lib/X11/rgb\"\n";
@@ -17,16 +17,16 @@
+static char *fontpath_gentoo =
+" # For XFS, uncomment this and comment the others\n"
+" # FontPath \"unix/:-1\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/local/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/misc/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/Type1/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/TTF/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/CID/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/Speedo/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/75dpi/\"\n"
-+" FontPath \"/usr/X11R6/lib/X11/fonts/100dpi/\"\n"
++" FontPath \"/usr/share/fonts/local/\"\n"
++" FontPath \"/usr/share/fonts/misc/\"\n"
++" FontPath \"/usr/share/fonts/75dpi/:unscaled\"\n"
++" FontPath \"/usr/share/fonts/100dpi/:unscaled\"\n"
++" FontPath \"/usr/share/fonts/Type1/\"\n"
++" FontPath \"/usr/share/fonts/TTF/\"\n"
++" FontPath \"/usr/share/fonts/CID/\"\n"
++" FontPath \"/usr/share/fonts/Speedo/\"\n"
++" FontPath \"/usr/share/fonts/75dpi/\"\n"
++" FontPath \"/usr/share/fonts/100dpi/\"\n"
"EndSection\n\n";
+/* static char *fontpath =
@@ -37,3 +37,17 @@
static char *fontpath_anaconda =
" FontPath \"/usr/X11R6/lib/X11/fonts/misc:unscaled\"\n"
" FontPath \"/usr/X11R6/lib/X11/fonts/Type1/\"\n"
+@@ -57,12 +75,11 @@
+ static char *inputdev_section =
+ "Section \"InputDevice\"\n"
+ " Identifier \"Keyboard0\"\n"
+-" Driver \"keyboard\"\n";
++" Driver \"kbd\"\n";
+
+ static char *keyboard_linux =
+ "# Change \"XkbModel\" to \"macintosh_old\" if you are using\n"
+ "# the deprecated adb keycodes.\n"
+-" Option \"XkbRules\" \"xfree86\"\n"
+ " Option \"XkbModel\" \"macintosh\"\n"
+ " Option \"XkbLayout\" \"us\"\n"
+ "EndSection\n\n";
diff --git a/x11-misc/Xautoconfig/files/Xautoconfig.patch b/x11-misc/Xautoconfig/files/Xautoconfig.patch
index 9b682c95ab11..1df56802f978 100644
--- a/x11-misc/Xautoconfig/files/Xautoconfig.patch
+++ b/x11-misc/Xautoconfig/files/Xautoconfig.patch
@@ -1,217 +1,157 @@
-*** Xautoconfig.c.old Mon Jun 7 17:27:37 2004
---- Xautoconfig.c Mon Jun 7 19:00:54 2004
-***************
-*** 1,7 ****
-! /* Xautoconfig: versatile XF86Config creation tool for powerpc
- *
- * Copyright (C) 2002-2003 Dan Burcaw <dburcaw@terrasoftsolutions.com>
- * Copyright (C) 1999-2001 Tom Rini <trini@kernel.crashing.org>
- *
- */
-
---- 1,8 ----
-! /* Xautoconfig: versatile XF86Config/xorg.conf creation tool for powerpc
- *
-+ * Copyright (C) 2004 Matt Jarjoura <matt@tasonline.com>
- * Copyright (C) 2002-2003 Dan Burcaw <dburcaw@terrasoftsolutions.com>
- * Copyright (C) 1999-2001 Tom Rini <trini@kernel.crashing.org>
- *
- */
-
-***************
-*** 31,58 ****
---- 32,78 ----
- extern void findVideoDevice(void);
- extern void help();
- extern void usage();
- extern char * macMachineType(void);
-
-+ char XorgTest(void);
-+
- struct monitor_sync
- {
- int h_min;
- int h_max;
- int v_min;
- int v_max;
- };
-
-+ /* Gentoo Likes Color, so I decided to add some to this tiny utility
-+ since this is a gentoo specific application */
-+
-+ #define GENTOO_COLOR
-+
-+ #ifdef GENTOO_COLOR
-+ #define GENTOO_BOLD "\x1b[01m"
-+ #define GENTOO_RESET "\x1b[0m"
-+ #define GENTOO_RED "\x1b[31;06m"
-+ #else
-+ #define GENTOO_BOLD ""
-+ #define GENTOO_RESET ""
-+ #define GENTOO_RED ""
-+ #endif
-+
- int main(int argc, char **argv) {
- FILE * f;
- int i, depth, fd;
- int anaconda = 0, rc = 0, offb = 0, fbdepth = 0, fbdev = 0, nv = 0;
- unsigned int xsstart, xsend, xtotal = 0;
- unsigned int ysstart, ysend, ytotal = 0;
- double drate, vrate, hrate;
- unsigned int htotal, vtotal;
- char manufacturer[4];
-
-+ char xorg = 0;
-+
- struct monitor_sync sync;
- struct fb_fix_screeninfo fix;
- struct fb_var_screeninfo var;
- struct edid1_info *edid_info = NULL;
-
-***************
-*** 70,81 ****
- if (!rc && ioctl(fd, FBIOGET_VSCREENINFO, &var))
- rc = 2; /* Failure */
-
- close(fd);
-
- if (rc) {
-! fprintf(stderr, "Can't access %s. Exiting.\n", name);
- return -1;
- }
-
- if (argc == 2)
- {
---- 90,104 ----
- if (!rc && ioctl(fd, FBIOGET_VSCREENINFO, &var))
- rc = 2; /* Failure */
-
- close(fd);
-
-+ printf("%sXautoconfig: Release 0.22.[Gentoo] %s\n\n", GENTOO_BOLD, GENTOO_RESET);
-+
- if (rc) {
-! fprintf(stderr, "%sCan't access %s. Exiting.%s\n",
-! GENTOO_RED, name, GENTOO_RESET);
- return -1;
- }
-
- if (argc == 2)
- {
-***************
-*** 187,208 ****
- if (!(f = fopen("/tmp/XF86Config.test", "w"))) {
- fprintf(stderr, "Can't write to /tmp/XF86Config.test. Exiting.\n");
- return -1;;
- }
- } else {
-! /* Let's be nice and backup an existing XF86Config */
-! if ((f = fopen("/etc/X11/XF86Config", "r"))) {
-! system("mv /etc/X11/XF86Config /etc/X11/XF86Config.xautoconfig");
- }
-
-! if (!(f = fopen("/etc/X11/XF86Config", "w"))) {
-! fprintf(stderr, "Can't write to /etc/X11/XF86Config. Exiting.\n");
-! return -1;;
- }
- }
-
--
- /*** BEGIN XF86Config ***/
- fprintf(f, "%s", header);
-
- /* fontpath */
- if (anaconda)
---- 210,261 ----
- if (!(f = fopen("/tmp/XF86Config.test", "w"))) {
- fprintf(stderr, "Can't write to /tmp/XF86Config.test. Exiting.\n");
- return -1;;
- }
- } else {
-!
-! /* Test to see if it's xorg or XFree86 */
-! if (XorgTest())
-! {
-! xorg = 0; /* false, using XF86Config */
-!
-! /* Let's be nice and backup an existing XF86Config */
-! if ((f = fopen("/etc/X11/XF86Config", "r")))
-! {
-! fclose(f);
-! printf("XF86Config found, moving to XF86Config.orig...\n");
-! system("mv /etc/X11/XF86Config /etc/X11/XF86Config.orig");
-! }
-!
-! if (!(f = fopen("/etc/X11/XF86Config", "w")))
-! {
-! fprintf(stderr, "%sCan't write to /etc/X11/XF86Config. Exiting.%s\n",
-! GENTOO_RED, GENTOO_RESET);
-! return -1;
-! }
- }
-+ else
-+ {
-+ xorg = 1; /* true, using xorg.conf */
-+
-+ /* Let's be nice and backup an existing XF86Config */
-+ if ((f = fopen("/etc/X11/xorg.conf", "r")))
-+ {
-+ fclose(f);
-+ printf("xorg.conf found, moving to xorg.conf.orig...\n");
-+ system("mv /etc/X11/xorg.conf /etc/X11/xorg.conf.orig");
-+ }
-
-! if (!(f = fopen("/etc/X11/xorg.conf", "w")))
-! {
-! fprintf(stderr, "%sCan't write to /etc/X11/xorg.conf. Exiting.%s\n",
-! GENTOO_RED, GENTOO_RESET);
-! return -1;
-! }
- }
- }
-
- /*** BEGIN XF86Config ***/
- fprintf(f, "%s", header);
-
- /* fontpath */
- if (anaconda)
-***************
-*** 400,408 ****
- fclose(f);
-
- if (anaconda)
- fprintf(stdout, "Wrote /tmp/XF86Config.test\n");
- else
-! fprintf(stdout, "Wrote /etc/X11/XF86Config\n");
-!
- return 0;
- }
---- 453,480 ----
- fclose(f);
-
- if (anaconda)
- fprintf(stdout, "Wrote /tmp/XF86Config.test\n");
- else
-! {
-! if (xorg)
-! fprintf(stdout, "Wrote /etc/X11/xorg.conf %s\n", GENTOO_RESET);
-! else
-! fprintf(stdout, "Wrote /etc/X11/XF86Config %s\n", GENTOO_RESET);
-! }
-!
- return 0;
- }
-+
-+ /**
-+ * @return char true if running X.org, false XFree86
-+ */
-+ char XorgTest(void)
-+ {
-+ FILE *f;
-+
-+ if (!(f = fopen("/usr/X11R6/bin/Xorg", "r")))
-+ return -1;
-+ else
-+ return 0;
-+ }
-+
+--- Xautoconfig.c.old 2004-10-07 21:07:46.410894808 +0200
++++ Xautoconfig.c 2004-10-07 21:06:58.168228808 +0200
+@@ -1,5 +1,6 @@
+-/* Xautoconfig: versatile XF86Config creation tool for powerpc
++/* Xautoconfig: versatile XF86Config/xorg.conf creation tool for powerpc
+ *
++ * Copyright (C) 2004 Matt Jarjoura <matt@tasonline.com>
+ * Copyright (C) 2002-2003 Dan Burcaw <dburcaw@terrasoftsolutions.com>
+ * Copyright (C) 1999-2001 Tom Rini <trini@kernel.crashing.org>
+ *
+@@ -33,6 +34,8 @@
+ extern void usage();
+ extern char * macMachineType(void);
+
++char XorgTest(void);
++
+ struct monitor_sync
+ {
+ int h_min;
+@@ -41,6 +44,21 @@
+ int v_max;
+ };
+
++/* Gentoo Likes Color, so I decided to add some to this tiny utility
++ since this is a gentoo specific application */
++
++#define GENTOO_COLOR
++
++#ifdef GENTOO_COLOR
++ #define GENTOO_BOLD "\x1b[01m"
++ #define GENTOO_RESET "\x1b[0m"
++ #define GENTOO_RED "\x1b[31;06m"
++#else
++ #define GENTOO_BOLD ""
++ #define GENTOO_RESET ""
++ #define GENTOO_RED ""
++#endif
++
+ int main(int argc, char **argv) {
+ FILE * f;
+ int i, depth, fd;
+@@ -51,6 +69,8 @@
+ unsigned int htotal, vtotal;
+ char manufacturer[4];
+
++ char xorg = 0;
++
+ struct monitor_sync sync;
+ struct fb_fix_screeninfo fix;
+ struct fb_var_screeninfo var;
+@@ -72,8 +92,11 @@
+
+ close(fd);
+
++ printf("%sXautoconfig: Release 0.22.[Gentoo] %s\n\n", GENTOO_BOLD, GENTOO_RESET);
++
+ if (rc) {
+- fprintf(stderr, "Can't access %s. Exiting.\n", name);
++ fprintf(stderr, "%sCan't access %s. Exiting.%s\n",
++ GENTOO_RED, name, GENTOO_RESET);
+ return -1;
+ }
+
+@@ -189,18 +212,48 @@
+ return -1;;
+ }
+ } else {
+- /* Let's be nice and backup an existing XF86Config */
+- if ((f = fopen("/etc/X11/XF86Config", "r"))) {
+- system("mv /etc/X11/XF86Config /etc/X11/XF86Config.xautoconfig");
++
++ /* Test to see if it's xorg or XFree86 */
++ if (XorgTest())
++ {
++ xorg = 0; /* false, using XF86Config */
++
++ /* Let's be nice and backup an existing XF86Config */
++ if ((f = fopen("/etc/X11/XF86Config", "r")))
++ {
++ fclose(f);
++ printf("XF86Config found, moving to XF86Config.orig...\n");
++ system("mv /etc/X11/XF86Config /etc/X11/XF86Config.orig");
++ }
++
++ if (!(f = fopen("/etc/X11/XF86Config", "w")))
++ {
++ fprintf(stderr, "%sCan't write to /etc/X11/XF86Config. Exiting.%s\n",
++ GENTOO_RED, GENTOO_RESET);
++ return -1;
++ }
+ }
++ else
++ {
++ xorg = 1; /* true, using xorg.conf */
++
++ /* Let's be nice and backup an existing XF86Config */
++ if ((f = fopen("/etc/X11/xorg.conf", "r")))
++ {
++ fclose(f);
++ printf("xorg.conf found, moving to xorg.conf.orig...\n");
++ system("mv /etc/X11/xorg.conf /etc/X11/xorg.conf.orig");
++ }
+
+- if (!(f = fopen("/etc/X11/XF86Config", "w"))) {
+- fprintf(stderr, "Can't write to /etc/X11/XF86Config. Exiting.\n");
+- return -1;;
++ if (!(f = fopen("/etc/X11/xorg.conf", "w")))
++ {
++ fprintf(stderr, "%sCan't write to /etc/X11/xorg.conf. Exiting.%s\n",
++ GENTOO_RED, GENTOO_RESET);
++ return -1;
++ }
+ }
+ }
+
+-
+ /*** BEGIN XF86Config ***/
+ fprintf(f, "%s", header);
+
+@@ -208,7 +261,7 @@
+ if (anaconda)
+ fprintf(f, "%s", fontpath_anaconda);
+ else
+- fprintf(f, "%s", fontpath);
++ fprintf(f, "%s", fontpath_gentoo);
+
+ /* modules section */
+ fprintf(f, "%s", modules_section);
+@@ -402,7 +455,26 @@
+ if (anaconda)
+ fprintf(stdout, "Wrote /tmp/XF86Config.test\n");
+ else
+- fprintf(stdout, "Wrote /etc/X11/XF86Config\n");
+-
++ {
++ if (xorg)
++ fprintf(stdout, "Wrote /etc/X11/xorg.conf %s\n", GENTOO_RESET);
++ else
++ fprintf(stdout, "Wrote /etc/X11/XF86Config %s\n", GENTOO_RESET);
++ }
++
+ return 0;
+ }
++
++/**
++ * @return char true if running X.org, false XFree86
++ */
++char XorgTest(void)
++{
++ FILE *f;
++
++ if (!(f = fopen("/usr/X11R6/bin/Xorg", "r")))
++ return -1;
++ else
++ return 0;
++}
++
diff --git a/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r1 b/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r1
deleted file mode 100644
index a8cd144012ba..000000000000
--- a/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 c0b8e1b7f9acfcbeebad51a6015554b2 Xautoconfig-0.22.tar.gz 52173
diff --git a/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22 b/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r2
index a8cd144012ba..a8cd144012ba 100644
--- a/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22
+++ b/x11-misc/Xautoconfig/files/digest-Xautoconfig-0.22-r2