summaryrefslogtreecommitdiff
path: root/source/x/x11/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/post-install')
-rw-r--r--source/x/x11/post-install/beforelight.post-install7
-rw-r--r--source/x/x11/post-install/encodings.post-install8
-rw-r--r--source/x/x11/post-install/font-adobe-100dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-adobe-75dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-adobe-utopia-100dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-adobe-utopia-75dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-adobe-utopia-type1.post-install8
-rw-r--r--source/x/x11/post-install/font-alias.post-install8
-rw-r--r--source/x/x11/post-install/font-arabic-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-100dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-75dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-lucidatypewriter-100dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-lucidatypewriter-75dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-ttf.post-install8
-rw-r--r--source/x/x11/post-install/font-bh-type1.post-install8
-rw-r--r--source/x/x11/post-install/font-bitstream-100dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bitstream-75dpi.post-install8
-rw-r--r--source/x/x11/post-install/font-bitstream-speedo.post-install8
-rw-r--r--source/x/x11/post-install/font-bitstream-type1.post-install8
-rw-r--r--source/x/x11/post-install/font-cronyx-cyrillic.post-install8
-rw-r--r--source/x/x11/post-install/font-cursor-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-daewoo-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-dec-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-ibm-type1.post-install8
-rw-r--r--source/x/x11/post-install/font-isas-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-jis-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-micro-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-misc-cyrillic.post-install8
-rw-r--r--source/x/x11/post-install/font-misc-ethiopic.post-install8
-rw-r--r--source/x/x11/post-install/font-misc-meltho.post-install8
-rw-r--r--source/x/x11/post-install/font-misc-misc.post-install17
-rw-r--r--source/x/x11/post-install/font-mutt-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-schumacher-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-screen-cyrillic.post-install8
-rw-r--r--source/x/x11/post-install/font-sony-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-sun-misc.post-install8
-rw-r--r--source/x/x11/post-install/font-util.post-install8
-rw-r--r--source/x/x11/post-install/font-winitzki-cyrillic.post-install8
-rw-r--r--source/x/x11/post-install/font-xfree86-type1.post-install8
-rw-r--r--source/x/x11/post-install/lbxproxy.post-install5
-rw-r--r--source/x/x11/post-install/libXaw.post-install36
-rw-r--r--source/x/x11/post-install/libpthread-stubs.post-install5
-rw-r--r--source/x/x11/post-install/libxcb.post-install52
-rw-r--r--source/x/x11/post-install/mkfontdir.post-install4
-rw-r--r--source/x/x11/post-install/mkfontdir/setup.04.mkfontdir23
-rw-r--r--source/x/x11/post-install/pixman.post-install9
-rw-r--r--source/x/x11/post-install/proxymngr.post-install5
-rw-r--r--source/x/x11/post-install/rstart.post-install5
-rw-r--r--source/x/x11/post-install/twm.post-install4
-rw-r--r--source/x/x11/post-install/twm/xinitrc.twm33
-rw-r--r--source/x/x11/post-install/x11-app-test.post-install13
-rw-r--r--source/x/x11/post-install/x11-font.post-install8
-rw-r--r--source/x/x11/post-install/x11-util.post-install2
-rw-r--r--source/x/x11/post-install/xcb-proto.post-install5
-rw-r--r--source/x/x11/post-install/xdm.post-install16
-rwxr-xr-xsource/x/x11/post-install/xdm/Xsession203
-rwxr-xr-xsource/x/x11/post-install/xdm/Xsession.orig37
-rwxr-xr-xsource/x/x11/post-install/xdm/Xsetup_018
-rwxr-xr-xsource/x/x11/post-install/xdm/Xsetup_0.orig3
-rw-r--r--source/x/x11/post-install/xf86-input-joystick.post-install1
-rw-r--r--source/x/x11/post-install/xf86-input-synaptics.post-install9
-rw-r--r--source/x/x11/post-install/xfs.post-install2
-rw-r--r--source/x/x11/post-install/xinit.post-install17
-rw-r--r--source/x/x11/post-install/xinit/README.Xmodmap10
-rw-r--r--source/x/x11/post-install/xkeyboard-config.post-install11
-rw-r--r--source/x/x11/post-install/xorg-cf-files.post-install7
-rw-r--r--source/x/x11/post-install/xorg-cf-files/x11.tmpl.lib64.kludge.diff14
-rw-r--r--source/x/x11/post-install/xorg-docs.post-install1
-rw-r--r--source/x/x11/post-install/xorg-server.post-install17
-rw-r--r--source/x/x11/post-install/xsm.post-install5
70 files changed, 900 insertions, 0 deletions
diff --git a/source/x/x11/post-install/beforelight.post-install b/source/x/x11/post-install/beforelight.post-install
new file mode 100644
index 00000000..9b39d02e
--- /dev/null
+++ b/source/x/x11/post-install/beforelight.post-install
@@ -0,0 +1,7 @@
+# DESTDIR is seriously broken on this one, but since nobody
+# knows what it's for that's probably why it isn't noticed.
+if [ -d $PKG/tmp/x11-build/package-beforelight/etc/X11/app-defaults ]; then
+ mkdir -p $PKG/etc/X11/app-defaults
+ mv $PKG/tmp/x11-build/package-beforelight/etc/X11/app-defaults/Beforelight $PKG/etc/X11/app-defaults
+ rm -rf $PKG/tmp
+fi
diff --git a/source/x/x11/post-install/encodings.post-install b/source/x/x11/post-install/encodings.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/encodings.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-adobe-100dpi.post-install b/source/x/x11/post-install/font-adobe-100dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-adobe-100dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-adobe-75dpi.post-install b/source/x/x11/post-install/font-adobe-75dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-adobe-75dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-adobe-utopia-100dpi.post-install b/source/x/x11/post-install/font-adobe-utopia-100dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-adobe-utopia-100dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-adobe-utopia-75dpi.post-install b/source/x/x11/post-install/font-adobe-utopia-75dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-adobe-utopia-75dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-adobe-utopia-type1.post-install b/source/x/x11/post-install/font-adobe-utopia-type1.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-adobe-utopia-type1.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-alias.post-install b/source/x/x11/post-install/font-alias.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-alias.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-arabic-misc.post-install b/source/x/x11/post-install/font-arabic-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-arabic-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-100dpi.post-install b/source/x/x11/post-install/font-bh-100dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-100dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-75dpi.post-install b/source/x/x11/post-install/font-bh-75dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-75dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-lucidatypewriter-100dpi.post-install b/source/x/x11/post-install/font-bh-lucidatypewriter-100dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-lucidatypewriter-100dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-lucidatypewriter-75dpi.post-install b/source/x/x11/post-install/font-bh-lucidatypewriter-75dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-lucidatypewriter-75dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-ttf.post-install b/source/x/x11/post-install/font-bh-ttf.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-ttf.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bh-type1.post-install b/source/x/x11/post-install/font-bh-type1.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bh-type1.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bitstream-100dpi.post-install b/source/x/x11/post-install/font-bitstream-100dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bitstream-100dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bitstream-75dpi.post-install b/source/x/x11/post-install/font-bitstream-75dpi.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bitstream-75dpi.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bitstream-speedo.post-install b/source/x/x11/post-install/font-bitstream-speedo.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bitstream-speedo.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-bitstream-type1.post-install b/source/x/x11/post-install/font-bitstream-type1.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-bitstream-type1.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-cronyx-cyrillic.post-install b/source/x/x11/post-install/font-cronyx-cyrillic.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-cronyx-cyrillic.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-cursor-misc.post-install b/source/x/x11/post-install/font-cursor-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-cursor-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-daewoo-misc.post-install b/source/x/x11/post-install/font-daewoo-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-daewoo-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-dec-misc.post-install b/source/x/x11/post-install/font-dec-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-dec-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-ibm-type1.post-install b/source/x/x11/post-install/font-ibm-type1.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-ibm-type1.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-isas-misc.post-install b/source/x/x11/post-install/font-isas-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-isas-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-jis-misc.post-install b/source/x/x11/post-install/font-jis-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-jis-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-micro-misc.post-install b/source/x/x11/post-install/font-micro-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-micro-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-misc-cyrillic.post-install b/source/x/x11/post-install/font-misc-cyrillic.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-misc-cyrillic.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-misc-ethiopic.post-install b/source/x/x11/post-install/font-misc-ethiopic.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-misc-ethiopic.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-misc-meltho.post-install b/source/x/x11/post-install/font-misc-meltho.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-misc-meltho.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-misc-misc.post-install b/source/x/x11/post-install/font-misc-misc.post-install
new file mode 100644
index 00000000..43a27f90
--- /dev/null
+++ b/source/x/x11/post-install/font-misc-misc.post-install
@@ -0,0 +1,17 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
+mkdir -p $PKG/usr/share/fonts/misc
+
+# OK, this seems plain wrong. The install scripts should handle this.
+
+## We'll use the fonts/encodings on the system, so hopefully they are the right ones...
+#( cd /usr/share/fonts/misc
+# mkfontdir -e /usr/share/fonts/encodings -e /usr/share/fonts/encodings/large
+# cp -a encodings.dir fonts.alias fonts.dir fonts.scale $PKG/usr/share/fonts/misc
+#)
diff --git a/source/x/x11/post-install/font-mutt-misc.post-install b/source/x/x11/post-install/font-mutt-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-mutt-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-schumacher-misc.post-install b/source/x/x11/post-install/font-schumacher-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-schumacher-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-screen-cyrillic.post-install b/source/x/x11/post-install/font-screen-cyrillic.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-screen-cyrillic.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-sony-misc.post-install b/source/x/x11/post-install/font-sony-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-sony-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-sun-misc.post-install b/source/x/x11/post-install/font-sun-misc.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-sun-misc.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-util.post-install b/source/x/x11/post-install/font-util.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-util.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-winitzki-cyrillic.post-install b/source/x/x11/post-install/font-winitzki-cyrillic.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-winitzki-cyrillic.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/font-xfree86-type1.post-install b/source/x/x11/post-install/font-xfree86-type1.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/font-xfree86-type1.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/lbxproxy.post-install b/source/x/x11/post-install/lbxproxy.post-install
new file mode 100644
index 00000000..9bb11032
--- /dev/null
+++ b/source/x/x11/post-install/lbxproxy.post-install
@@ -0,0 +1,5 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv lbxproxy $PKG/etc/X11
+ ln -sf ../../../etc/X11/lbxproxy .
+)
diff --git a/source/x/x11/post-install/libXaw.post-install b/source/x/x11/post-install/libXaw.post-install
new file mode 100644
index 00000000..37b7fb18
--- /dev/null
+++ b/source/x/x11/post-install/libXaw.post-install
@@ -0,0 +1,36 @@
+
+# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+# Older versions of libXaw shipped a libXaw8.so.8 aka libXaw.so.8.
+# This has since been removed (thanks), so we will, at least for now,
+# make libXaw.so.8 a symlink to libXaw.so.7 so that programs that used
+# that version of libXaw will still function if they didn't actually
+# use any of the Xprint functions that were in .8 but not .7. We are
+# not aware of anything that used them, which is probably why the whole
+# library ended up considered dead weight. Next time we hope that
+# upstream will consider using a different library name instead of
+# floating a higher major library version and then pulling it.
+
+( cd $PKG/usr/lib
+ ln -sf libXaw.so.7 libXaw.so.8
+)
+
diff --git a/source/x/x11/post-install/libpthread-stubs.post-install b/source/x/x11/post-install/libpthread-stubs.post-install
new file mode 100644
index 00000000..f7ee375a
--- /dev/null
+++ b/source/x/x11/post-install/libpthread-stubs.post-install
@@ -0,0 +1,5 @@
+# Add documentation:
+mkdir -p $PKG/usr/doc/libpthread-stubs-server-$MODULAR_PACKAGE_VERSION
+cp -a \
+ COPYING README \
+ $PKG/usr/doc/libpthread-stubs-server-$MODULAR_PACKAGE_VERSION
diff --git a/source/x/x11/post-install/libxcb.post-install b/source/x/x11/post-install/libxcb.post-install
new file mode 100644
index 00000000..76ac40c0
--- /dev/null
+++ b/source/x/x11/post-install/libxcb.post-install
@@ -0,0 +1,52 @@
+
+# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+# Add documentation:
+mkdir -p $PKG/usr/doc/libxcb-$MODULAR_PACKAGE_VERSION
+cp -a \
+ COPYING INSTALL NEWS README \
+ $PKG/usr/doc/libxcb-$MODULAR_PACKAGE_VERSION
+mv $PKG/usr/share/doc/libxcb/tutorial $PKG/usr/doc/libxcb-$MODULAR_PACKAGE_VERSION
+# The manual isn't building for now, so...
+rm -rf $PKG/usr/share/doc/libxcb
+rmdir $PKG/usr/share/doc
+rmdir $PKG/usr/share
+
+# Older versions of libxcb shipped a poorly libtooled .la file that caused
+# the now-gone libxcb-xlib.so module to be incorrectly linked with many
+# binaries and libraries, and cause the module to be listed (again,
+# incorrectly) in a lot of .la files. Rather than breaking a large amount
+# of existing X programs, we will use this simple trick to allow old binaries
+# to keep running, and new things to compile even if a bogus .la file
+# referencing libxcb-xlib is in the development environment.
+#
+# References to libxcb-xlib will go away as things are recompiled in the
+# future (we've eliminated any remaining references in Slackware itself).
+#
+# It's like letting a sliver work out instead of cutting off the finger.
+
+( cd $PKG/usr/lib
+ ln -sf libxcb.so.1 libxcb-xlib.so.0
+ ln -sf libxcb-xlib.so.0 libxcb-xlib.so
+ ln -sf libxcb.la libxcb-xlib.la
+)
+
diff --git a/source/x/x11/post-install/mkfontdir.post-install b/source/x/x11/post-install/mkfontdir.post-install
new file mode 100644
index 00000000..00a3a22d
--- /dev/null
+++ b/source/x/x11/post-install/mkfontdir.post-install
@@ -0,0 +1,4 @@
+mkdir -p $PKG/var/log/setup
+cp -a $CWD/post-install/mkfontdir/setup.04.mkfontdir $PKG/var/log/setup/setup.04.mkfontdir
+chown root:root $PKG/var/log/setup/setup.04.mkfontdir
+chmod 755 $PKG/var/log/setup/setup.04.mkfontdir
diff --git a/source/x/x11/post-install/mkfontdir/setup.04.mkfontdir b/source/x/x11/post-install/mkfontdir/setup.04.mkfontdir
new file mode 100644
index 00000000..b5407633
--- /dev/null
+++ b/source/x/x11/post-install/mkfontdir/setup.04.mkfontdir
@@ -0,0 +1,23 @@
+#!/bin/sh
+#BLURB="Run mkfontdir and mkfontscale in font directories."
+# Just in case.
+chroot . /sbin/ldconfig 1> /dev/null 2> /dev/null
+if [ -x usr/bin/fc-cache ]; then
+ if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then
+ dialog --title "MKFONTDIR AND MKFONTSCALE UPDATE" --infobox \
+ "Please wait while we run mkfontscale and mkfontdir in \
+your font directories." 4 68
+ else
+ echo "Please wait while we run mkfontscale and mkfontdir in your font directories."
+ fi
+ for fontdir in 100dpi 75dpi OTF Speedo TTF Type1 cyrillic ; do
+ if [ -d usr/share/fonts/$fontdir ]; then
+ chroot . mkfontscale /usr/share/fonts/$fontdir 1> /dev/null 2> /dev/null
+ chroot . mkfontdir /usr/share/fonts/$fontdir 1> /dev/null 2> /dev/null
+ fi
+ done
+ if [ -d usr/share/fonts/misc ]; then
+ chroot . mkfontscale /usr/share/fonts/misc 1> /dev/null 2> /dev/null
+ chroot . mkfontdir -e /usr/share/fonts/encodings -e /usr/share/fonts/encodings/large /usr/share/fonts/misc 1> /dev/null 2> /dev/null
+ fi
+fi
diff --git a/source/x/x11/post-install/pixman.post-install b/source/x/x11/post-install/pixman.post-install
new file mode 100644
index 00000000..c2678e74
--- /dev/null
+++ b/source/x/x11/post-install/pixman.post-install
@@ -0,0 +1,9 @@
+# Yes, this is ugly, but for some reason several things are not
+# looking at pixman.pc to get -I/usr/include/pixman-1/.
+# This is the path of least resistance (for now).
+
+( cd $PKG/usr/include
+ ln -sf pixman-1/pixman-version.h .
+ ln -sf pixman-1/pixman.h .
+ ln -sf pixman-1 pixman
+)
diff --git a/source/x/x11/post-install/proxymngr.post-install b/source/x/x11/post-install/proxymngr.post-install
new file mode 100644
index 00000000..29c647c3
--- /dev/null
+++ b/source/x/x11/post-install/proxymngr.post-install
@@ -0,0 +1,5 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv proxymngr $PKG/etc/X11
+ ln -sf ../../../etc/X11/proxymngr .
+)
diff --git a/source/x/x11/post-install/rstart.post-install b/source/x/x11/post-install/rstart.post-install
new file mode 100644
index 00000000..d51ad34d
--- /dev/null
+++ b/source/x/x11/post-install/rstart.post-install
@@ -0,0 +1,5 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv rstart $PKG/etc/X11
+ ln -sf ../../../etc/X11/rstart .
+)
diff --git a/source/x/x11/post-install/twm.post-install b/source/x/x11/post-install/twm.post-install
new file mode 100644
index 00000000..2b815669
--- /dev/null
+++ b/source/x/x11/post-install/twm.post-install
@@ -0,0 +1,4 @@
+mkdir -p $PKG/etc/X11/xinit
+cp -a $CWD/post-install/twm/xinitrc.twm $PKG/etc/X11/xinit
+chown root:root $PKG/etc/X11/xinit/xinitrc.twm
+chmod 755 $PKG/etc/X11/xinit/xinitrc.twm
diff --git a/source/x/x11/post-install/twm/xinitrc.twm b/source/x/x11/post-install/twm/xinitrc.twm
new file mode 100644
index 00000000..1bb5185e
--- /dev/null
+++ b/source/x/x11/post-install/twm/xinitrc.twm
@@ -0,0 +1,33 @@
+#!/bin/sh
+# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/usr/lib/X11/xinit/.Xresources
+sysmodmap=/usr/lib/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+ /usr/bin/xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+ /usr/bin/xmodmap $sysmodmap
+fi
+
+if [ -f $userresources ]; then
+ /usr/bin/xrdb -merge $userresources
+fi
+
+if [ -f $usermodmap ]; then
+ /usr/bin/xmodmap $usermodmap
+fi
+
+# start some nice programs
+
+/usr/bin/twm &
+/usr/bin/xclock -geometry 50x50-1+1 &
+/usr/bin/xterm -geometry 80x50+494+51 &
+/usr/bin/xterm -geometry 80x20+494-0 &
+exec /usr/bin/xterm -geometry 80x66+0+0 -name login
diff --git a/source/x/x11/post-install/x11-app-test.post-install b/source/x/x11/post-install/x11-app-test.post-install
new file mode 100644
index 00000000..82ec3cef
--- /dev/null
+++ b/source/x/x11/post-install/x11-app-test.post-install
@@ -0,0 +1,13 @@
+VERSION=i20070206
+# Move things into /etc/X11 that are supposed to be there:
+if [ -d usr/lib/X11 ]; then
+ ( cd $PKG/usr/lib/X11
+ for dir in fs lbxproxy proxymngr rstart xdm xinit xsm ; do
+ if [ -d $dir ]; then
+ mkdir -p $PKG/etc/X11
+ mv $dir $PKG/etc/X11
+ ln -sf ../../../etc/X11/$dir .
+ done
+ done
+ )
+fi
diff --git a/source/x/x11/post-install/x11-font.post-install b/source/x/x11/post-install/x11-font.post-install
new file mode 100644
index 00000000..25533670
--- /dev/null
+++ b/source/x/x11/post-install/x11-font.post-install
@@ -0,0 +1,8 @@
+# The fonts really should go in /usr/share/fonts:
+mkdir -p $PKG/usr/share
+mv $PKG/usr/lib/X11/fonts $PKG/usr/share
+# I use this strange sequence so I'll notice if anything else
+# pops up in /usr/lib/X11:
+rmdir $PKG/usr/lib/X11/fonts
+rmdir $PKG/usr/lib/X11
+rmdir $PKG/usr/lib
diff --git a/source/x/x11/post-install/x11-util.post-install b/source/x/x11/post-install/x11-util.post-install
new file mode 100644
index 00000000..bafbe0d1
--- /dev/null
+++ b/source/x/x11/post-install/x11-util.post-install
@@ -0,0 +1,2 @@
+# Remove the empty host.def:
+rm -f $PKG/usr/lib/X11/config/host.def
diff --git a/source/x/x11/post-install/xcb-proto.post-install b/source/x/x11/post-install/xcb-proto.post-install
new file mode 100644
index 00000000..eb341027
--- /dev/null
+++ b/source/x/x11/post-install/xcb-proto.post-install
@@ -0,0 +1,5 @@
+# Add documentation:
+mkdir -p $PKG/usr/doc/xcb-proto-$MODULAR_PACKAGE_VERSION
+cp -a \
+ COPYING README \
+ $PKG/usr/doc/xcb-proto-$MODULAR_PACKAGE_VERSION
diff --git a/source/x/x11/post-install/xdm.post-install b/source/x/x11/post-install/xdm.post-install
new file mode 100644
index 00000000..05e37163
--- /dev/null
+++ b/source/x/x11/post-install/xdm.post-install
@@ -0,0 +1,16 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv xdm $PKG/etc/X11
+ ln -sf ../../../etc/X11/xdm .
+)
+mv $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsession.orig
+mv $PKG/etc/X11/xdm/Xsetup_0 $PKG/etc/X11/xdm/Xsetup_0.orig
+cp -a $CWD/post-install/xdm/Xsession $PKG/etc/X11/xdm/Xsession
+cp -a $CWD/post-install/xdm/Xsetup_0 $PKG/etc/X11/xdm/Xsetup_0
+chown root:root $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
+chmod 755 $PKG/etc/X11/xdm/Xsession $PKG/etc/X11/xdm/Xsetup_0
+( cd $PKG/etc/X11/xdm
+ mv xdm-config xdm-config.new
+ mv Xservers Xservers.new
+ mv Xsession Xsession.new
+)
diff --git a/source/x/x11/post-install/xdm/Xsession b/source/x/x11/post-install/xdm/Xsession
new file mode 100755
index 00000000..6484b096
--- /dev/null
+++ b/source/x/x11/post-install/xdm/Xsession
@@ -0,0 +1,203 @@
+#!/bin/sh
+# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
+#
+#
+# $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $
+# Modified for Slackware-3.5, 28-Mar-98 volkerdi
+# Extensively rewritten for Slackware 7.0, 03-Oct-1999 volkerdi
+# Patched to give priority to $HOME/.xsession, 10-Oct-1999 volkerdi
+# Merged changes into upstream (XFree86-4.0.2) version, 17-Feb-2001 volkerdi
+# Fixes for $PATH (from Jim Diamond), GDM/KDM/XDM, 2003-02-07 volkerdi
+# Use absolute paths until $PATH is set, 2006-01-11 (Al's 100th :-) volkerdi
+# merged changes from # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $, 2007-02-13 volkerdi
+
+# redirect errors to a file in user's home directory if we can
+errfile="$HOME/.xsession-errors"
+if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null )
+then
+ exec > "$errfile" 2>&1
+else
+
+ mktemp=/usr/bin/mktemp
+ for errfile in "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
+ do
+ if ef="$( umask 077 && $mktemp "$errfile.XXXXXX" 2> /dev/null)"
+ then
+ exec > "$ef" 2>&1
+ mv "$ef" "$errfile" 2> /dev/null
+ break
+ fi
+ done
+fi
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/usr/lib/X11/xinit/.Xresources
+sysmodmap=/usr/lib/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -r $sysresources ]; then
+ /usr/bin/xrdb -merge $sysresources
+fi
+
+if [ -r $sysmodmap ]; then
+ /usr/bin/xmodmap $sysmodmap
+fi
+
+if [ -r $userresources ]; then
+ /usr/bin/xrdb -merge $userresources
+fi
+
+if [ -r $usermodmap ]; then
+ /usr/bin/xmodmap $usermodmap
+fi
+
+# Since xdm doesn't run a bash -login shell (or any other login shell)
+# we should source these files to set up the user's environment.
+profile=/etc/profile
+userprofile=~/.profile
+
+if [ -r $profile ]; then
+ source $profile 1> /dev/null 2> /dev/null
+fi
+if [ -r $userprofile ]; then
+ source $userprofile 1> /dev/null 2> /dev/null
+fi
+
+# Set the $PATH through the user's preferred shell.
+case `basename "$SHELL"` in
+bash|sh|ash)
+ PATH="`( echo 'echo $PATH' | bash --login ) | tail -1`"
+ ;;
+csh|tcsh)
+ PATH="`( echo 'echo $PATH' | tcsh -l ) | tail -1`"
+ ;;
+ksh)
+ PATH="`( cat /etc/profile ; echo 'echo $PATH' ) | ksh | tail -1`"
+ ;;
+zsh)
+ PATH="`( echo 'echo $PATH' | zsh -l ) | tail -1`"
+ ;;
+*)
+ # We don't know your shell, so we'll set up reasonable defaults.
+ if [ "`whoami`" = "root" ]; then
+ PATH=$PATH:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
+ else
+ PATH=$PATH:/usr/local/bin:/bin:/usr/bin
+ fi
+ ;;
+esac
+
+# These files (if they exist) are used to set up the X related environment. We used to
+# exec .xsession at this location, but that can interfere with choosing a session type
+# through XDM/KDM/GDM so it was moved to after a requested session is started. Since
+# that means that .xsession might never be run at all when using XDM/KDM/GDM, support
+# for the xprofile was added to allow a way for the user to customize the X environment.
+if [ -r /etc/xprofile ]; then
+ source /etc/xprofile
+fi
+if [ -r ~/.xprofile ]; then
+ source ~/.xprofile
+fi
+
+# Some people say that an .xsession file should always be given priority, even if a
+# different window manager was requested in $1. If you want that behavior, uncomment
+# the lines below. This is not recommended (nor, in general, is the use of an
+# .xsession file as a default... it should be left for the advanced users).
+#if [ -x $HOME/.xsession ]; then
+# exec $HOME/.xsession $@
+#fi
+
+# If a particular session type was requested in $1, start that session:
+case "$1" in
+failsafe)
+ xsetroot -solid SteelBlue
+ exec xterm -geometry 80x24-0-0
+ ;;
+kde)
+ exec startkde
+ ;;
+gnome)
+ exec gnome-session
+ ;;
+openwin)
+ exec olvwm
+ ;;
+fluxbox)
+ exec fluxbox
+ ;;
+fvwm2)
+ xsetroot -solid SteelBlue
+ exec fvwm2
+ ;;
+fvwm95)
+ xsetroot -solid SteelBlue
+ exec fvwm95
+ ;;
+blackbox)
+ exec blackbox
+ ;;
+xfce)
+ exec /etc/X11/xinit/xinitrc.xfce
+ ;;
+windowmaker)
+ exec /etc/X11/xinit/xinitrc.wmaker
+ ;;
+afterstep)
+ exec afterstep
+ ;;
+enlightenment)
+ exec enlightenment
+ ;;
+twm)
+ #xclock -geometry 50x50-1+1 &
+ #xterm -geometry 80x50+494+51 &
+ #xterm -geometry 80x20+494-0 &
+ #xterm -geometry 80x66+0+0 -name login &
+ xsetroot -solid SteelBlue
+ exec twm
+ ;;
+esac
+
+# If we aren't running from XDM/KDM/GDM and no window manager was
+# specified, then we'll run the user's $HOME/.xsession if it's
+# executable. This must be set up to run the user's window manager.
+if [ -x $HOME/.xsession ]; then
+ exec $HOME/.xsession $@
+fi
+
+# If the user doesn't have their own xsession and none was specified in
+# $1, then run the system default session type:
+if [ -r /etc/X11/xinit/xinitrc ]; then
+ exec /etc/X11/xinit/xinitrc
+fi
+
+# If a $startup variable is set to define the window or session manager,
+# then run that:
+if [ -s "$startup" -a -x "$startup" ]; then
+ exec "$startup"
+else
+ if [ -r "$resources" ]; then
+ /usr/bin/xrdb -load "$resources"
+ fi
+ # Run xsm as a failsafe.
+ exec xsm
+fi
+
+startup=$HOME/.xsession
+resources=$HOME/.Xresources
+
+if [ -s "$startup" ]; then
+ if [ -x "$startup" ]; then
+ exec "$startup"
+ else
+ exec /bin/sh "$startup"
+ fi
+else
+ if [ -r "$resources" ]; then
+ /usr/bin/xrdb -load "$resources"
+ fi
+ exec /usr/bin/xsm
+fi
+
diff --git a/source/x/x11/post-install/xdm/Xsession.orig b/source/x/x11/post-install/xdm/Xsession.orig
new file mode 100755
index 00000000..993e7418
--- /dev/null
+++ b/source/x/x11/post-install/xdm/Xsession.orig
@@ -0,0 +1,37 @@
+#!/bin/sh
+# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
+#
+#
+# $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $
+
+# redirect errors to a file in user's home directory if we can
+for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
+do
+ if ( cp /dev/null "$errfile" 2> /dev/null )
+ then
+ chmod 600 "$errfile"
+ exec > "$errfile" 2>&1
+ break
+ fi
+done
+
+case $# in
+1)
+ case $1 in
+ failsafe)
+ exec xterm -geometry 80x24-0-0
+ ;;
+ esac
+esac
+
+startup=$HOME/.xsession
+resources=$HOME/.Xresources
+
+if [ -s "$startup" -a -x "$startup" ]; then
+ exec "$startup"
+else
+ if [ -r "$resources" ]; then
+ xrdb -load "$resources"
+ fi
+ exec xsm
+fi
diff --git a/source/x/x11/post-install/xdm/Xsetup_0 b/source/x/x11/post-install/xdm/Xsetup_0
new file mode 100755
index 00000000..fee6af06
--- /dev/null
+++ b/source/x/x11/post-install/xdm/Xsetup_0
@@ -0,0 +1,18 @@
+#!/bin/sh
+# $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
+
+# Fix backspace problem in login box:
+sysmodmap=/etc/X11/xinit/.Xmodmap
+if [ -f $sysmodmap ]; then
+ /usr/bin/xmodmap $sysmodmap
+fi
+
+# If the nifty KDE background loader is around, use it:
+if [ -x /opt/kde/bin/kdmdesktop ]; then
+ /opt/kde/bin/kdmdesktop
+elif [ -x /usr/bin/kdmdesktop ]; then
+ /usr/bin/kdmdesktop
+else
+ /usr/bin/xsetroot -solid SteelBlue
+fi
diff --git a/source/x/x11/post-install/xdm/Xsetup_0.orig b/source/x/x11/post-install/xdm/Xsetup_0.orig
new file mode 100755
index 00000000..8e30694f
--- /dev/null
+++ b/source/x/x11/post-install/xdm/Xsetup_0.orig
@@ -0,0 +1,3 @@
+#!/bin/sh
+# $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
+xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
diff --git a/source/x/x11/post-install/xf86-input-joystick.post-install b/source/x/x11/post-install/xf86-input-joystick.post-install
new file mode 100644
index 00000000..755c5a9c
--- /dev/null
+++ b/source/x/x11/post-install/xf86-input-joystick.post-install
@@ -0,0 +1 @@
+mv $PKG/usr/man/man4x $PKG/usr/man/man4
diff --git a/source/x/x11/post-install/xf86-input-synaptics.post-install b/source/x/x11/post-install/xf86-input-synaptics.post-install
new file mode 100644
index 00000000..d7de8a4e
--- /dev/null
+++ b/source/x/x11/post-install/xf86-input-synaptics.post-install
@@ -0,0 +1,9 @@
+mkdir -p $PKG/usr/share/hal/fdi/policy/10osvendor
+cat fdi/11-x11-synaptics.fdi > \
+ $PKG/usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi
+
+mkdir -p $PKG/usr/doc/xf86-input-synaptics-$MODULAR_PACKAGE_VERSION
+cp -a \
+ NEWS README TODO \
+ $PKG/usr/doc/xf86-input-synaptics-$MODULAR_PACKAGE_VERSION
+
diff --git a/source/x/x11/post-install/xfs.post-install b/source/x/x11/post-install/xfs.post-install
new file mode 100644
index 00000000..0292124e
--- /dev/null
+++ b/source/x/x11/post-install/xfs.post-install
@@ -0,0 +1,2 @@
+mv $PKG/etc/X11/fs/config $PKG/etc/X11/fs/config.new
+
diff --git a/source/x/x11/post-install/xinit.post-install b/source/x/x11/post-install/xinit.post-install
new file mode 100644
index 00000000..818764ec
--- /dev/null
+++ b/source/x/x11/post-install/xinit.post-install
@@ -0,0 +1,17 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv xinit $PKG/etc/X11
+ ln -sf ../../../etc/X11/xinit .
+)
+cp -a $CWD/post-install/xinit/README.Xmodmap $PKG/etc/X11/xinit
+chown root:root $PKG/etc/X11/xinit/README.Xmodmap
+chmod 644 $PKG/etc/X11/xinit/README.Xmodmap
+
+# This should be selected by xwmconfig, and should not be included in the
+# package at all. Since this was included in the older package (and not
+# as "new") upgrading this will erase your xinitrc, and you'll have to
+# run xwmconfig again. Sorry about that, but it's better than having your
+# xinitrc overwritten with the TWM version...
+
+rm -f $PKG/etc/X11/xinit/xinitrc
+
diff --git a/source/x/x11/post-install/xinit/README.Xmodmap b/source/x/x11/post-install/xinit/README.Xmodmap
new file mode 100644
index 00000000..237fd947
--- /dev/null
+++ b/source/x/x11/post-install/xinit/README.Xmodmap
@@ -0,0 +1,10 @@
+
+# In versions of XFree86 prior to 4.3.0, a .Xmodmap file was required in
+# this directory in order to make the backspace key function correctly.
+# This does not seem to be needed any longer, but if you notice problems
+# with the backspace key, you might want to try it.
+
+# Old .Xmodmap follows:
+
+keycode 22 = BackSpace
+
diff --git a/source/x/x11/post-install/xkeyboard-config.post-install b/source/x/x11/post-install/xkeyboard-config.post-install
new file mode 100644
index 00000000..8446f064
--- /dev/null
+++ b/source/x/x11/post-install/xkeyboard-config.post-install
@@ -0,0 +1,11 @@
+# Move things into /etc/X11 that are supposed to be there:
+#mkdir -p $PKG/etc/X11
+#rm -rf $PKG/etc/X11/xkb
+#mv $PKG/usr/share/X11/xkb $PKG/etc/X11
+mkdir -p $PKG/usr/share/X11
+( cd $PKG/usr/share/X11 ; ln -sf ../../../etc/X11/xkb . )
+#( cd $PKG/etc/X11/xkb/rules
+# ln -sf base.lst xorg.lst
+# ln -sf base.xml xorg.xml
+# ln -sf base xorg
+#)
diff --git a/source/x/x11/post-install/xorg-cf-files.post-install b/source/x/x11/post-install/xorg-cf-files.post-install
new file mode 100644
index 00000000..e5fc2cc4
--- /dev/null
+++ b/source/x/x11/post-install/xorg-cf-files.post-install
@@ -0,0 +1,7 @@
+if [ "$(uname -m)" = "x86_64" ]; then
+ ( cd $PKG/usr/lib/X11/config
+ zcat $CWD/post-install/xorg-cf-files/x11.tmpl.lib64.kludge.diff.gz | patch -p1 || exit 1
+ )
+fi
+# Remove the empty host.def:
+rm -f $PKG/usr/lib/X11/config/host.def
diff --git a/source/x/x11/post-install/xorg-cf-files/x11.tmpl.lib64.kludge.diff b/source/x/x11/post-install/xorg-cf-files/x11.tmpl.lib64.kludge.diff
new file mode 100644
index 00000000..424bf733
--- /dev/null
+++ b/source/x/x11/post-install/xorg-cf-files/x11.tmpl.lib64.kludge.diff
@@ -0,0 +1,14 @@
+--- ./X11.tmpl.orig 2009-08-10 22:24:59.000000000 -0500
++++ ./X11.tmpl 2009-08-10 22:26:20.000000000 -0500
+@@ -1461,9 +1461,9 @@
+ #endif
+ #ifndef LibDir
+ # ifdef ProjectRoot
+-# define LibDir Concat(ProjectRoot,/lib/X11)
++# define LibDir Concat(ProjectRoot,/lib64/X11)
+ # else
+-# define LibDir /usr/lib/X11
++# define LibDir /usr/lib64/X11
+ # endif
+ #endif
+ #ifndef ModuleDir
diff --git a/source/x/x11/post-install/xorg-docs.post-install b/source/x/x11/post-install/xorg-docs.post-install
new file mode 100644
index 00000000..9857acaf
--- /dev/null
+++ b/source/x/x11/post-install/xorg-docs.post-install
@@ -0,0 +1 @@
+rm $PKG/usr/man/man7/Xprint.7
diff --git a/source/x/x11/post-install/xorg-server.post-install b/source/x/x11/post-install/xorg-server.post-install
new file mode 100644
index 00000000..0185cb70
--- /dev/null
+++ b/source/x/x11/post-install/xorg-server.post-install
@@ -0,0 +1,17 @@
+# Add COPYING file:
+mkdir -p $PKG/usr/doc/xorg-server-$MODULAR_PACKAGE_VERSION
+cp -a COPYING $PKG/usr/doc/xorg-server-$MODULAR_PACKAGE_VERSION
+
+# Don't mess with my /var/log/ permissions:
+rmdir $PKG/var/log
+rmdir $PKG/var
+
+# While I hate to have X11 take over another generic-sounding
+# piece of prime filesystem real estate, this symlink will
+# direct (for now) proprietary X drivers into the corrent
+# location:
+
+( cd $PKG/usr/lib
+ rm -rf modules
+ ln -sf xorg/modules .
+)
diff --git a/source/x/x11/post-install/xsm.post-install b/source/x/x11/post-install/xsm.post-install
new file mode 100644
index 00000000..509b8447
--- /dev/null
+++ b/source/x/x11/post-install/xsm.post-install
@@ -0,0 +1,5 @@
+mkdir -p $PKG/etc/X11
+( cd $PKG/usr/lib/X11
+ mv xsm $PKG/etc/X11
+ ln -sf ../../../etc/X11/xsm .
+)