r1987 - in profiles: . HLFS HLFS/trunk HLFS/trunk/chapter05 HLFS/trunk/chapter06 HLFS/trunk/chapter07 HLFS/trunk/chapter08 HLFS/trunk/chapter09 HLFS/trunk/config HLFS/trunk/scripts HLFS/trunk/skeleton HLFS/trunk/skeleton/boot HLFS/trunk/skeleton/boot/grub HLFS/trunk/skeleton/etc HLFS/trunk/skeleton/etc/kbd HLFS/trunk/skeleton/etc/sysconfig HLFS/trunk/skeleton/etc/sysconfig/network-devices HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0 HLFS/trunk/skeleton/etc/udev HLFS/trunk/skeleton/etc/udev/rules.d HLFS/trunk/skeleton/home HLFS/trunk/skeleton/home/lfs HLFS/trunk/skeleton/root HLFS/trunk/skeleton/usr HLFS/trunk/skeleton/usr/bin HLFS/trunk/tools

jbeckers at linuxfromscratch.org jbeckers at linuxfromscratch.org
Thu Sep 8 13:32:09 PDT 2005


Author: jbeckers
Date: 2005-09-08 14:32:01 -0600 (Thu, 08 Sep 2005)
New Revision: 1987

Added:
   profiles/HLFS/
   profiles/HLFS/trunk/
   profiles/HLFS/trunk/LFS.xml
   profiles/HLFS/trunk/README
   profiles/HLFS/trunk/chapter05/
   profiles/HLFS/trunk/chapter05/addinguser.xml
   profiles/HLFS/trunk/chapter05/adjustingtoolchain.xml
   profiles/HLFS/trunk/chapter05/bash.xml
   profiles/HLFS/trunk/chapter05/binutils-pass1.xml
   profiles/HLFS/trunk/chapter05/binutils-pass2.xml
   profiles/HLFS/trunk/chapter05/bison.xml
   profiles/HLFS/trunk/chapter05/bzip2.xml
   profiles/HLFS/trunk/chapter05/coreutils.xml
   profiles/HLFS/trunk/chapter05/creatingtoolsdir.xml
   profiles/HLFS/trunk/chapter05/dejagnu.xml
   profiles/HLFS/trunk/chapter05/diffutils.xml
   profiles/HLFS/trunk/chapter05/expect.xml
   profiles/HLFS/trunk/chapter05/findutils.xml
   profiles/HLFS/trunk/chapter05/flex.xml
   profiles/HLFS/trunk/chapter05/gawk.xml
   profiles/HLFS/trunk/chapter05/gcc-pass1.xml
   profiles/HLFS/trunk/chapter05/gcc-pass2.xml
   profiles/HLFS/trunk/chapter05/gettext.xml
   profiles/HLFS/trunk/chapter05/glibc-headers.xml
   profiles/HLFS/trunk/chapter05/glibc.xml
   profiles/HLFS/trunk/chapter05/grep.xml
   profiles/HLFS/trunk/chapter05/gzip.xml
   profiles/HLFS/trunk/chapter05/kernel-headers.xml
   profiles/HLFS/trunk/chapter05/linux-libc-headers.xml
   profiles/HLFS/trunk/chapter05/m4.xml
   profiles/HLFS/trunk/chapter05/make.xml
   profiles/HLFS/trunk/chapter05/ncurses.xml
   profiles/HLFS/trunk/chapter05/patch.xml
   profiles/HLFS/trunk/chapter05/perl.xml
   profiles/HLFS/trunk/chapter05/sed.xml
   profiles/HLFS/trunk/chapter05/settingenvironment.xml
   profiles/HLFS/trunk/chapter05/strip.xml
   profiles/HLFS/trunk/chapter05/tar.xml
   profiles/HLFS/trunk/chapter05/tcl.xml
   profiles/HLFS/trunk/chapter05/texinfo.xml
   profiles/HLFS/trunk/chapter05/util-linux.xml
   profiles/HLFS/trunk/chapter06/
   profiles/HLFS/trunk/chapter06/Makefile.in
   profiles/HLFS/trunk/chapter06/autoconf.xml
   profiles/HLFS/trunk/chapter06/automake.xml
   profiles/HLFS/trunk/chapter06/bash.xml
   profiles/HLFS/trunk/chapter06/basic-dev.xml
   profiles/HLFS/trunk/chapter06/binutils.xml
   profiles/HLFS/trunk/chapter06/bison.xml
   profiles/HLFS/trunk/chapter06/bzip2.xml
   profiles/HLFS/trunk/chapter06/changingowner.xml
   profiles/HLFS/trunk/chapter06/coreutils.xml
   profiles/HLFS/trunk/chapter06/createfiles.xml
   profiles/HLFS/trunk/chapter06/creatingdirs.xml
   profiles/HLFS/trunk/chapter06/diffutils.xml
   profiles/HLFS/trunk/chapter06/e2fsprogs.xml
   profiles/HLFS/trunk/chapter06/file.xml
   profiles/HLFS/trunk/chapter06/findutils.xml
   profiles/HLFS/trunk/chapter06/flex.xml
   profiles/HLFS/trunk/chapter06/gawk.xml
   profiles/HLFS/trunk/chapter06/gcc.xml
   profiles/HLFS/trunk/chapter06/gettext.xml
   profiles/HLFS/trunk/chapter06/glibc.xml
   profiles/HLFS/trunk/chapter06/grep.xml
   profiles/HLFS/trunk/chapter06/groff.xml
   profiles/HLFS/trunk/chapter06/grsecoff.xml
   profiles/HLFS/trunk/chapter06/grub.xml
   profiles/HLFS/trunk/chapter06/gzip.xml
   profiles/HLFS/trunk/chapter06/hotplug.xml
   profiles/HLFS/trunk/chapter06/iana-etc.xml
   profiles/HLFS/trunk/chapter06/inetutils.xml
   profiles/HLFS/trunk/chapter06/iproute2.xml
   profiles/HLFS/trunk/chapter06/kbd.xml
   profiles/HLFS/trunk/chapter06/kernfs.xml
   profiles/HLFS/trunk/chapter06/less.xml
   profiles/HLFS/trunk/chapter06/libc-headers.xml
   profiles/HLFS/trunk/chapter06/libtool.xml
   profiles/HLFS/trunk/chapter06/m4.xml
   profiles/HLFS/trunk/chapter06/make.xml
   profiles/HLFS/trunk/chapter06/man-pages.xml
   profiles/HLFS/trunk/chapter06/man.xml
   profiles/HLFS/trunk/chapter06/mktemp.xml
   profiles/HLFS/trunk/chapter06/module-init-tools.xml
   profiles/HLFS/trunk/chapter06/ncurses.xml
   profiles/HLFS/trunk/chapter06/patch.xml
   profiles/HLFS/trunk/chapter06/paxctl.xml
   profiles/HLFS/trunk/chapter06/perl.xml
   profiles/HLFS/trunk/chapter06/procps.xml
   profiles/HLFS/trunk/chapter06/psmisc.xml
   profiles/HLFS/trunk/chapter06/pwdgroup.xml
   profiles/HLFS/trunk/chapter06/readjustingtoolchain.xml
   profiles/HLFS/trunk/chapter06/readline.xml
   profiles/HLFS/trunk/chapter06/sed.xml
   profiles/HLFS/trunk/chapter06/shadow.xml
   profiles/HLFS/trunk/chapter06/strip.xml
   profiles/HLFS/trunk/chapter06/sysklogd.xml
   profiles/HLFS/trunk/chapter06/sysvinit.xml
   profiles/HLFS/trunk/chapter06/tar.xml
   profiles/HLFS/trunk/chapter06/texinfo.xml
   profiles/HLFS/trunk/chapter06/udev.xml
   profiles/HLFS/trunk/chapter06/util-linux.xml
   profiles/HLFS/trunk/chapter06/vim.xml
   profiles/HLFS/trunk/chapter06/zlib.xml
   profiles/HLFS/trunk/chapter07/
   profiles/HLFS/trunk/chapter07/bootscripts.xml
   profiles/HLFS/trunk/chapter07/hostname.xml
   profiles/HLFS/trunk/chapter07/hosts.xml
   profiles/HLFS/trunk/chapter07/inputrc.xml
   profiles/HLFS/trunk/chapter07/network.xml
   profiles/HLFS/trunk/chapter07/profile.xml
   profiles/HLFS/trunk/chapter07/setclock.xml
   profiles/HLFS/trunk/chapter08/
   profiles/HLFS/trunk/chapter08/fstab.xml
   profiles/HLFS/trunk/chapter08/grub.xml
   profiles/HLFS/trunk/chapter08/kernel.xml
   profiles/HLFS/trunk/chapter09/
   profiles/HLFS/trunk/chapter09/libxml2.xml
   profiles/HLFS/trunk/chapter09/nALFS.xml
   profiles/HLFS/trunk/chapter09/optional-prep.xml
   profiles/HLFS/trunk/checkit.sh
   profiles/HLFS/trunk/config/
   profiles/HLFS/trunk/config/console.xml
   profiles/HLFS/trunk/config/general.ent
   profiles/HLFS/trunk/config/keymap-ch6.xml
   profiles/HLFS/trunk/config/keymap-ch8.xml
   profiles/HLFS/trunk/config/package.ent
   profiles/HLFS/trunk/config/profile.ent
   profiles/HLFS/trunk/e2fs.sh
   profiles/HLFS/trunk/runit.sh
   profiles/HLFS/trunk/scripts/
   profiles/HLFS/trunk/scripts/optional.packages.urls
   profiles/HLFS/trunk/scripts/required.packages.urls
   profiles/HLFS/trunk/scripts/wget.lfs
   profiles/HLFS/trunk/skeleton/
   profiles/HLFS/trunk/skeleton/boot/
   profiles/HLFS/trunk/skeleton/boot/grub/
   profiles/HLFS/trunk/skeleton/boot/grub/menu.lst
   profiles/HLFS/trunk/skeleton/etc/
   profiles/HLFS/trunk/skeleton/etc/fstab
   profiles/HLFS/trunk/skeleton/etc/group
   profiles/HLFS/trunk/skeleton/etc/hosts
   profiles/HLFS/trunk/skeleton/etc/inittab
   profiles/HLFS/trunk/skeleton/etc/inputrc
   profiles/HLFS/trunk/skeleton/etc/kbd/
   profiles/HLFS/trunk/skeleton/etc/kbd/bs-sends-del
   profiles/HLFS/trunk/skeleton/etc/ld.so.conf
   profiles/HLFS/trunk/skeleton/etc/modprobe.conf
   profiles/HLFS/trunk/skeleton/etc/nsswitch.conf
   profiles/HLFS/trunk/skeleton/etc/passwd
   profiles/HLFS/trunk/skeleton/etc/profile
   profiles/HLFS/trunk/skeleton/etc/resolv.conf
   profiles/HLFS/trunk/skeleton/etc/sysconfig/
   profiles/HLFS/trunk/skeleton/etc/sysconfig/clock
   profiles/HLFS/trunk/skeleton/etc/sysconfig/console
   profiles/HLFS/trunk/skeleton/etc/sysconfig/network
   profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/
   profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/
   profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4
   profiles/HLFS/trunk/skeleton/etc/syslog.conf
   profiles/HLFS/trunk/skeleton/etc/udev/
   profiles/HLFS/trunk/skeleton/etc/udev/rules.d/
   profiles/HLFS/trunk/skeleton/etc/udev/rules.d/25-core.rules
   profiles/HLFS/trunk/skeleton/etc/vimrc
   profiles/HLFS/trunk/skeleton/hardened-specs.sh
   profiles/HLFS/trunk/skeleton/home/
   profiles/HLFS/trunk/skeleton/home/lfs/
   profiles/HLFS/trunk/skeleton/home/lfs/dot_bash_profile
   profiles/HLFS/trunk/skeleton/home/lfs/dot_bashrc
   profiles/HLFS/trunk/skeleton/root/
   profiles/HLFS/trunk/skeleton/root/reminder.txt
   profiles/HLFS/trunk/skeleton/usr/
   profiles/HLFS/trunk/skeleton/usr/bin/
   profiles/HLFS/trunk/skeleton/usr/bin/lex
   profiles/HLFS/trunk/tools/
   profiles/HLFS/trunk/tools/tidy.conf
   profiles/HLFS/trunk/tools/tidyxml.sh
Log:
Initial import of HLFS profile

Added: profiles/HLFS/trunk/LFS.xml
===================================================================
--- profiles/HLFS/trunk/LFS.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/LFS.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+
+        LFS profile, version SVN
+        =================================
+        by Dave Wheeler (davewheeler69 at hotmail.com)
+        updates by "Mark"
+        updates by Kevin P. Fleming (kpfleming at linuxfromscratch.org)
+        updates by Jamie Bennett (jamie at linuxfromscratch.org)
+        updates by Thomas Pegg (thomasp at linuxfromscratch.org)
+        Adapted from a profile by Vassili Dzuba (vassilidzuba at nerim.net)
+        Adapted from a profile by Neven Has - haski at sezampro.yu
+
+        HLFS profile, version SVN-20050723
+        ==================================
+        Adapted to HLFS by Kendrick (hlfs at linux2themax.com)
+
+        Note : read the file README before running this profile
+
+-->
+<!DOCTYPE alfs SYSTEM "DTD/ALFS.dtd"
+[
+
+<!ENTITY % general_entities SYSTEM "config/general.ent">
+%general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
+  <stage name="Chapter 5 - Constructing a Temporary System">
+    <xi:include href="chapter05/creatingtoolsdir.xml" />
+    <xi:include href="chapter05/addinguser.xml" />
+    <xi:include href="chapter05/settingenvironment.xml" />
+    <stage name="Installing packages in /tools as &lfs-user;">
+      <stageinfo>
+        <root>/</root>
+        <user>&lfs-user;</user>
+        <environment>
+          <variable name="LFS">&LFS;</variable>
+          <variable name="LC_ALL">POSIX</variable>
+          <variable name="PATH">/tools/bin:/bin:/usr/bin</variable>
+          <variable name="CFLAGS">&gcc_optimizations;</variable>
+          <variable name="CXXFLAGS">&gcc_optimizations;</variable>
+          <variable name="TERM">&TERM;</variable>
+          <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="target">i686-tools-linux-gnu</variable>
+	  <variable name="ldso">/tools/lib/ld-linux.so.2</variable>
+        </environment>
+      </stageinfo>
+      <xi:include href="chapter05/linux-libc-headers.xml" />
+      <xi:include href="chapter05/glibc-headers.xml" />
+      <xi:include href="chapter05/binutils-pass1.xml" />
+      <xi:include href="chapter05/gcc-pass1.xml" />
+      <xi:include href="chapter05/glibc.xml" />
+      <xi:include href="chapter05/adjustingtoolchain.xml" />
+      <xi:include href="chapter05/tcl.xml" />
+      <xi:include href="chapter05/expect.xml" />
+      <xi:include href="chapter05/dejagnu.xml" />
+      <xi:include href="chapter05/binutils-pass2.xml" />
+      <xi:include href="chapter05/gcc-pass2.xml" />
+      <xi:include href="chapter05/gawk.xml" />
+      <xi:include href="chapter05/coreutils.xml" />
+      <xi:include href="chapter05/diffutils.xml" />
+      <xi:include href="chapter05/findutils.xml" />
+      <xi:include href="chapter05/make.xml" />
+      <xi:include href="chapter05/grep.xml" />
+      <xi:include href="chapter05/sed.xml" />
+      <xi:include href="chapter05/gettext.xml" />
+      <xi:include href="chapter05/ncurses.xml" />
+      <xi:include href="chapter05/patch.xml" />
+      <xi:include href="chapter05/tar.xml" />
+      <xi:include href="chapter05/bzip2.xml" />
+      <xi:include href="chapter05/gzip.xml" />
+      <xi:include href="chapter05/texinfo.xml" />
+      <xi:include href="chapter05/bash.xml" />
+      <xi:include href="chapter05/m4.xml" />
+      <xi:include href="chapter05/bison.xml" />
+      <xi:include href="chapter05/flex.xml" />
+      <xi:include href="chapter05/util-linux.xml" />
+      <xi:include href="chapter05/perl.xml" />
+  <!-- removed Needed by systems with small build partition where every mb counts
+      <xi:include href="chapter05/strip.xml" />
+      -->
+    </stage>
+  </stage>
+  <stage name="Chapter 6 - Installing Basic System Software">
+    <stage name="Creating Directories and Mounting Virtual Kernel File Systems">
+      <xi:include href="chapter06/kernfs.xml" />
+    </stage>
+    <stage name="Enable when bulding on a HLFS or GRSEC enabled system">
+      <xi:include href="chapter06/grsecoff.xml" />
+    </stage>
+    <stage name="Chroot with /tools">
+      <stageinfo>
+        <root>&LFS;</root>
+        <environment>
+          <variable name="HOME">/root</variable>
+          <variable name="TERM">&TERM;</variable>
+          <variable name="PS1">'\u:\w\$ '</variable>
+          <variable name="target">$(uname -m)-pc-linux-gnu</variable>
+          <variable name="ldso">/lib/ld-linux.so.2</variable>
+          <variable name="PATH">/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin</variable>
+          <variable name="CFLAGS">&gcc_optimizations;</variable>
+          <variable name="CXXFLAGS">&gcc_optimizations;</variable>
+        </environment>
+      </stageinfo>
+      <xi:include href="chapter06/changingowner.xml" />
+      <xi:include href="chapter06/creatingdirs.xml" />
+      <xi:include href="chapter06/createfiles.xml" />
+      <xi:include href="chapter06/pwdgroup.xml" />
+      <xi:include href="chapter06/basic-dev.xml" />
+      <xi:include href="chapter06/libc-headers.xml" />
+      <xi:include href="chapter06/man-pages.xml" />
+      <xi:include href="chapter06/glibc.xml" />
+      <xi:include href="chapter06/readjustingtoolchain.xml" />
+      <xi:include href="chapter06/binutils.xml" />
+      <xi:include href="chapter06/gcc.xml" />
+      <xi:include href="chapter06/coreutils.xml" />
+      <xi:include href="chapter06/zlib.xml" />
+      <xi:include href="chapter06/mktemp.xml" />
+      <xi:include href="chapter06/iana-etc.xml" />
+      <xi:include href="chapter06/findutils.xml" />
+      <xi:include href="chapter06/gawk.xml" />
+      <xi:include href="chapter06/ncurses.xml" />
+      <xi:include href="chapter06/readline.xml" />
+      <xi:include href="chapter06/vim.xml" />
+      <xi:include href="chapter06/m4.xml" />
+      <xi:include href="chapter06/bison.xml" />
+      <xi:include href="chapter06/less.xml" />
+      <xi:include href="chapter06/groff.xml" />
+      <xi:include href="chapter06/sed.xml" />
+      <xi:include href="chapter06/flex.xml" />
+      <xi:include href="chapter06/gettext.xml" />
+      <xi:include href="chapter06/inetutils.xml" />
+      <xi:include href="chapter06/iproute2.xml" />
+      <xi:include href="chapter06/perl.xml" />
+      <xi:include href="chapter06/texinfo.xml" />
+      <xi:include href="chapter06/autoconf.xml" />
+      <xi:include href="chapter06/automake.xml" />
+      <xi:include href="chapter06/bash.xml" />
+      <xi:include href="chapter06/file.xml" />
+      <xi:include href="chapter06/libtool.xml" />
+      <xi:include href="chapter06/bzip2.xml" />
+      <xi:include href="chapter06/diffutils.xml" />
+      <xi:include href="chapter06/kbd.xml" />
+      <xi:include href="chapter06/e2fsprogs.xml" />
+      <xi:include href="chapter06/grep.xml" />
+      <xi:include href="chapter06/grub.xml" />
+      <xi:include href="chapter06/gzip.xml" />
+      <xi:include href="chapter06/hotplug.xml" />
+      <xi:include href="chapter06/man.xml" />
+      <xi:include href="chapter06/make.xml" />
+      <xi:include href="chapter06/module-init-tools.xml" />
+      <xi:include href="chapter06/patch.xml" />
+      <xi:include href="chapter06/procps.xml" />
+      <xi:include href="chapter06/psmisc.xml" />
+      <xi:include href="chapter06/shadow.xml" />
+      <xi:include href="chapter06/util-linux.xml" />
+      <xi:include href="chapter06/sysklogd.xml" />
+      <xi:include href="chapter06/sysvinit.xml" />
+      <xi:include href="chapter06/tar.xml" />
+      <xi:include href="chapter06/udev.xml" />
+      <xi:include href="chapter06/paxctl.xml"/>
+      <xi:include href="chapter06/strip.xml" />
+    </stage>
+  </stage>
+  <stage name="Chapter 7 - Setting Up System Bootscripts">
+    <stageinfo>
+      <root>&LFS;</root>
+      <environment>
+        <variable name="HOME">/root</variable>
+        <variable name="TERM">&TERM;</variable>
+        <variable name="PS1">'\u:\w\$ '</variable>
+        <variable name="PATH">/bin:/usr/bin:/sbin:/usr/sbin</variable>
+        <variable name="CFLAGS">&gcc_optimizations;</variable>
+        <variable name="CXXFLAGS">&gcc_optimizations;</variable>
+      </environment>
+    </stageinfo>
+    <xi:include href="chapter07/bootscripts.xml" />
+    <xi:include href="chapter07/setclock.xml" />
+    <xi:include href="config/console.xml" />
+    <xi:include href="chapter07/inputrc.xml" />
+    <xi:include href="chapter07/profile.xml" />
+    <xi:include href="chapter07/hostname.xml" />
+    <xi:include href="chapter07/hosts.xml" />
+    <xi:include href="chapter07/network.xml" />
+  </stage>
+  <stage name="Chapter 8 - Making the LFS System Bootable">
+    <stageinfo>
+      <root>&LFS;</root>
+      <environment>
+        <variable name="HOME">/root</variable>
+        <variable name="TERM">&TERM;</variable>
+        <variable name="PS1">'\u:\w\$ '</variable>
+        <variable name="PATH">/bin:/usr/bin:/sbin:/usr/sbin</variable>
+        <variable name="CFLAGS">&gcc_optimizations;</variable>
+        <variable name="CXXFLAGS">&gcc_optimizations;</variable>
+      </environment>
+    </stageinfo>
+    <xi:include href="chapter08/fstab.xml" />
+    <xi:include href="chapter08/kernel.xml" />
+    <xi:include href="chapter08/grub.xml" />
+  </stage>
+  <stage name="Optional Packages Prep">
+    <stageinfo>
+      <root>/</root>
+    </stageinfo>
+    <xi:include href="chapter09/optional-prep.xml" />
+  </stage>
+  <stage name="Optional Packages">
+    <stageinfo>
+      <root>&LFS;</root>
+      <environment>
+        <variable name="HOME">/root</variable>
+        <variable name="TERM">&TERM;</variable>
+        <variable name="PS1">'\u:\w\$ '</variable>
+        <variable name="PATH">/bin:/usr/bin:/sbin:/usr/sbin</variable>
+        <variable name="CFLAGS">&gcc_optimizations;</variable>
+        <variable name="CXXFLAGS">&gcc_optimizations;</variable>
+      </environment>
+    </stageinfo>
+    <xi:include href="chapter09/libxml2.xml" />
+    <xi:include href="chapter09/nALFS.xml" />
+  </stage>
+  <stage name="Chapter 9 - The End">
+    <stageinfo>
+      <root>&LFS;</root>
+    </stageinfo>
+    <remove>/tools</remove>
+    <textdump>
+      <file>/etc/lfs-release</file>
+      <content>=&LFS-version;</content>
+    </textdump>
+    <copy>
+	<source>&skeleton_dir;/root/reminder.txt</source>
+	<destination>/root/reminder.txt</destination>
+    </copy>
+  </stage>
+  <stage name="Finishing Up">
+    <remove>/tools</remove>
+    <execute command="umount">
+      <param>&LFS;/dev/pts</param>
+      <param>&LFS;/dev/shm</param>
+      <param>&LFS;/dev</param>
+      <param>&LFS;/proc</param>
+      <param>&LFS;/sys</param>
+      <!-- If you used a bind mount for your package dir, unmount it here. -->
+      <!-- <param>&LFS;&packages_dir;</param> -->
+    </execute>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/README
===================================================================
--- profiles/HLFS/trunk/README	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/README	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,60 @@
+==============================================
+        LFS-6.1 PROFILE
+==============================================
+
+This profile must be used with nALFS 1.2.3 or later.
+
+This profile contains two areas that must be customized to create
+your LFS installation:
+
+- "config" directory
+  This directory contains a variety of files used directly by the
+  profile to build your system. They are:
+   - the file general.ent contains a bunch of entity declarations
+     (Note: this file contains an entity called TERM that should be
+            set to the same value as the TERM environment variable on
+            your build system. It defaults to "linux", the most common
+            value for a GNU/Linux system.)
+   - the file kernel.xml contains the commands for building the kernel
+   - the files keymap-ch6.xml and keymap-ch8.xml are used to set up
+     the default keymap
+   - file console.xml contains the commands to set up the Linux
+     console for non-US English language support
+
+- "skeleton" directory
+  This directory (and all its subdirectories) contain all the standard
+  text config files used by an LFS build. You should review every file
+  in this directory to ensure that it contains the values that you wish
+  to use to configure your system.
+
+  Note: there is no documentation in this profile on the use and values
+  of each of these files. If you are not familiar enough with these files
+  to know what you should put into them, you are probably not yet ready to
+  be performing automated LFS builds using this profile.
+
+To use the profile you should :-
+
+1) Make a backup copy of the config directory.
+
+2) Customize the files in the config directory.
+
+3) Make a copy of the skeleton directory and give it name that
+   represents the system you are building for.
+
+4) Customize the files in the new skeleton directory you created.
+
+5) Place a valid Linux kernel config file (for the kernel version
+   the profile uses) into the skeleton directory and name it
+   "linux-kernel-config". This will be used in the chapter 8
+   portion of the build to build and install the kernel.
+
+6) This profile contains two additional packages that are installed
+   during chapter 9, libxml2 and nALFS. This is done under the
+   assumption that you will want to use nALFS once you have booted
+   your new LFS system to continue building other packages (via BLFS
+   or other profiles). These packages are optional.
+
+7) Execute "./runit.sh {skeleton}" as root, providing the name of the
+   directory you created in step 3. Please note that if you have installed
+   nALFS into a location other than /usr/local/bin you will need to edit
+   runit.sh to point to your copy of nALFS.

Added: profiles/HLFS/trunk/chapter05/addinguser.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/addinguser.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/addinguser.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Adding the LFS User">
+    <execute command="groupadd -f lfs" />
+    <execute command="id -u &lfs-user; &real-amp;> /dev/null || useradd -s /bin/bash -g lfs -m -k /dev/null &lfs-user;" />
+    <execute command="echo &lfs-user;:&lfs-password; | chpasswd" />
+    <ownership user="&lfs-user;">
+      <name>&LFS;/tools</name>
+      <name>&LFS;&build_dir;</name>
+    </ownership>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/adjustingtoolchain.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/adjustingtoolchain.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/adjustingtoolchain.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <stage name="Adjusting the Toolchain">
+    <stage name="Adjusting the Linker">
+      <stageinfo>
+        <base>&build_dir;/binutils-build</base>
+      </stageinfo>
+       <execute command="install ld/ld-new /tools/bin/${target}-ld" />
+       <link>
+        <option>force</option>
+        <target>/tools/bin/${target}-ld</target>
+        <name>/tools/${target}/bin/ld</name>
+      </link>
+    </stage>
+    <remove>&build_dir;/&binutils-directory;</remove>
+    <!--  <remove>&build_dir;/binutils-build</remove> keep for a bit -->
+    <!-- Test basic functions of toolchain with:        -->
+    <execute command="echo" base="&build_dir;/">
+	<param>'main(){}' > dummy.c</param>
+	</execute>
+	<execute command="gcc" base="&build_dir;"> 
+	  <param>dummy.c</param>
+	</execute>
+	<execute command="readelf" base="&build_dir;">
+	  <param>-l a.out | grep ': /tools' > tool-test.txt</param>
+	</execute>
+<!-- Output of last line s/b: [Requesting program interpreter: /tools/lib/ld-linux.so.2]
+If so:
+        rm dummy.c a.out
+Otherwise, STOP HERE & find & fix the problem
+     -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/bash.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/bash.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/bash.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bash" version="&bash-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bash-md5;</digest>
+        <archive>&packages_dir;/&bash-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bash-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&bash-wcontinued-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {.,builtins}/Makefile.in" base="&build_dir;/&bash-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+        <param>--without-bash-malloc</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>tests</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>bash</target>
+        <name>/tools/bin/sh</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bash-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/binutils-pass1.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/binutils-pass1.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/binutils-pass1.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="binutils-pass1" version="&binutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&binutils-md5;</digest>
+        <archive>&packages_dir;/&binutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>binutils-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/binutils-build</base>
+      </stageinfo>
+      <configure command="../&binutils-directory;/configure">
+        <param>--prefix=/tools</param>
+        <param>--disable-nls</param>
+        <param>--target=${target}</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <make>
+        <param>-C ld</param>
+        <param>clean</param>
+      </make>
+      <make>
+        <param>&jlevel;</param>
+        <param>-C ld</param>
+        <param>LIB_PATH=/tools/lib</param>
+      </make>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/binutils-pass2.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/binutils-pass2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/binutils-pass2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="binutils-pass2" version="&binutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&binutils-md5;</digest>
+        <archive>&packages_dir;/&binutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>binutils-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+        <base>&build_dir;/&binutils-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&binutils-patch;</param>
+      </patch>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/binutils-build</base>
+      </stageinfo>
+      <configure command="../&binutils-directory;/configure">
+        <prefix>env CC=${target}-gcc</prefix>
+        <param>--prefix=/tools</param>
+        <param>--host=${target}</param>
+        <param>--build=${target}</param>
+        <param>--target=${target}</param>
+        <param>--enable-shared</param>
+        <param>--with-lib-path=/tools/lib</param>
+      </configure>
+      <make>
+	</make>
+      <!--
+      <make>
+        <param>-k check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <make>
+        <param>-C ld</param>
+        <param>clean</param>
+      </make>
+      <make>
+        <param>-C ld</param>
+        <param>LIB_PATH=/usr/lib:/lib</param>
+      </make>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/bison.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/bison.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/bison.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bison" version="&bison-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bison-md5;</digest>
+        <archive>&packages_dir;/&bison-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bison-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&bison-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bison-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/bzip2.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/bzip2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/bzip2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bzip2" version="&bzip2-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bzip2-md5;</digest>
+        <archive>&packages_dir;/&bzip2-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bzip2-directory;</base>
+      </stageinfo>
+       <patch base="&build_dir;/&bzip2-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&bzip2-patch;</param>
+      </patch>
+      <make />
+      <make>
+        <param>test</param>
+      </make>
+      <make>
+        <param>PREFIX=/tools</param>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bzip2-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/coreutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/coreutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/coreutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="coreutils" version="&coreutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&coreutils-md5;</digest>
+        <archive>&packages_dir;/&coreutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&coreutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&coreutils-directory;"/>
+      <configure>
+        <prefix>DEFAULT_POSIX2_VERSION=199209</prefix>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>RUN_EXPENSIVE_TESTS=yes</param>
+        <param>check</param>
+        <param>> /tools/coreutils-test.txt</param> <!-- test info command -->
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&coreutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/creatingtoolsdir.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/creatingtoolsdir.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/creatingtoolsdir.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+<!ENTITY % profile_entities SYSTEM "../config/profile.ent">
+
+%general_entities;
+%package_entities;
+%profile_entities;
+]>
+<alfs>
+  <stage name="Creating the $LFS/tools Directory">
+    <mkdir>
+      <option>parents</option>
+      <name>&LFS;/tools</name>
+    </mkdir>
+    <link>
+      <option>force</option>
+      <target>&LFS;/tools</target>
+      <name>/</name>
+    </link>
+    <!-- From this point forward isn't in the book, it's only here for nALFS to use -->
+    <mkdir base="&LFS;">
+      <option>parents</option>
+      <name>&LFS;&packages_dir;</name>
+      <name>&LFS;&build_dir;</name>
+      <name>&LFS;&skeleton_dir;</name>
+    </mkdir>
+    <!--
+      If you run a kernel that supports VFS bindings (2.4 or later),
+      you can uncomment this command instead of using the <copy>.
+      Don't forget to also uncomment the unmounting command from
+      the end of the profile.
+
+      Warning: if you use the mount option, and if the execution
+      of your profile fails, be careful to unmount the package
+      directory before you delete the content the target partition!
+
+      Note: a space has been inserted between the two dashes in the
+      bind parameter to avoid the double dash being deteted as the
+      end of the comment. You need to remove it if you use this
+      command.
+    <execute command="mount">
+      <param>- -bind</param>
+      <param>&orig_packages_dir;</param>
+      <param>&LFS;&packages_dir;</param>
+    </execute>
+    -->
+    <stage name="Copying package and patch files">
+      <stageinfo>
+        <base>&orig_packages_dir;</base>
+      </stageinfo>
+      <copy>
+        <source>&autoconf-package;</source>
+        <source>&automake-package;</source>
+        <source>&bash-package;</source>
+        <source>&bash-fixes-patch;</source>
+        <source>&bash-wcontinued-patch;</source>
+        <source>&binutils-package;</source>
+        <source>&bison-package;</source>
+        <source>&bzip2-package;</source>
+        <source>&coreutils-package;</source>
+        <source>&coreutils-dupes-patch;</source>
+        <source>&coreutils-uname-patch;</source>
+        <source>&dejagnu-package;</source>
+        <source>&diffutils-package;</source>
+        <source>&e2fsprogs-package;</source>
+        <source>&expect-package;</source>
+        <source>&expect-spawn-patch;</source>
+        <source>&file-package;</source>
+        <source>&findutils-package;</source>
+        <source>&flex-package;</source>
+        <source>&flex-debian-fixes-patch;</source>
+        <source>&gawk-package;</source>
+        <source>&gcc-package;</source>
+        <!-- <source>&gcc-core-package;</source> -->
+        <!-- <source>&gcc-gpp-package;</source> -->
+        <!-- <source>&gcc-testsuite-package;</source> -->
+        <source>&gcc-linkonce-patch;</source>
+        <source>&gcc-no-fixincludes-patch;</source>
+        <source>&gcc-specs-patch;</source>
+        <source>&gettext-package;</source>
+        <source>&glibc-package;</source>
+        <source>&glibc-linuxthreads-package;</source>
+        <source>&glibc-fix-testsuite-patch;</source>
+          <source>&glibc-libidn-package;</source>
+        <source>&grep-package;</source>
+        <source>&groff-package;</source>
+        <source>&grub-package;</source>
+        <source>&gzip-package;</source>
+        <source>&gzip-security-fixes-patch;</source>
+        <source>&hotplug-package;</source>
+        <source>&iana-etc-package;</source>
+        <source>&inetutils-package;</source>
+        <source>&inetutils-no-man-pages-patch;</source>
+        <source>&inetutils-kernel-headers-patch;</source>
+        <source>&iproute2-package;</source>
+        <source>&kbd-package;</source>
+        <source>&less-package;</source>
+        <source>&lfs-bootscripts-package;</source>
+        <source>&libtool-package;</source>
+        <source>&linux-package;</source>
+        <source>&linux-libc-headers-package;</source>
+        <source>&m4-package;</source>
+        <source>&make-package;</source>
+        <source>&man-package;</source>
+        <source>&man-pages-package;</source>
+        <source>&mktemp-package;</source>
+        <source>&mktemp-tempfile-patch;</source>
+        <source>&module-init-tools-package;</source>
+        <source>&ncurses-package;</source>
+        <source>&patch-package;</source>
+        <source>&perl-package;</source>
+        <source>&perl-libc-1-patch;</source>
+        <source>&procps-package;</source>
+        <source>&psmisc-package;</source>
+        <source>&readline-package;</source>
+        <source>&readline-fixes-patch;</source>
+        <source>&sed-package;</source>
+        <source>&shadow-package;</source>
+        <source>&sysklogd-package;</source>
+        <source>&sysklogd-fixes-patch;</source>
+        <source>&sysvinit-package;</source>
+        <source>&tar-package;</source>
+        <source>&tar-sparse-fix-patch;</source>
+        <source>&tcl-package;</source>
+        <source>&texinfo-package;</source>
+        <source>&udev-package;</source>
+        <!-- eh? <source>&udev-rules-file;</source> -->
+        <source>&util-linux-package;</source>
+        <!-- eh? <source>&util-linux-cramfs-patch;</source> -->
+        <source>&vim-package;</source>
+        <source>&vim-security-patch;</source>
+        <source>&zlib-package;</source>
+        <!-- HLFS packages and patches here -->
+        <source>&blfs-bootscripts-package;</source>
+        <source>&blfs-bootscripts-patch;</source>
+        <source>&paxctl-package;</source>
+        <source>&binutils-patch;</source>
+        <source>&bzip2-patch;</source>
+        <source>&flex-cflags-fixes-patch;</source>
+        <source>&gcc-hardened-cflags-patch;</source>
+        <source>&gcc-ssp-patch;</source>
+        <source>&glibc-arc4random-patch;</source>
+        <source>&glibc-dl_execstack-patch;</source>
+        <source>&glibc-stack_protector-patch;</source>
+        <source>&glibc-pax-patch;</source>
+        <source>&glibc-ssp-patch;</source>
+        <source>&gr-security-patch;</source>
+        <source>&linux-frandom-patch;</source>
+        <source>&linux-libc-headers-random-patch;</source>
+        <source>&linux-libc-headers-unistd-patch;</source>
+        <source>&module-init-tools-nostatic-patch;</source>
+        <source>&util-linux-cflags-patch;</source>
+        <source>&util-linux-nologin-patch;</source>
+        <source>&util-linux-pic-patch;</source>
+        <destination>&LFS;&packages_dir;</destination>
+      </copy>
+    </stage>
+    <stage name="Copying skeleton configuration files">
+      <copy>
+        <option>recursive</option>
+        <source>&lfs-profile;/&skeleton;/*</source>
+        <destination>&LFS;&skeleton_dir;</destination>
+      </copy>
+    </stage>
+  </stage>
+</alfs>
\ No newline at end of file

Added: profiles/HLFS/trunk/chapter05/dejagnu.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/dejagnu.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/dejagnu.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="dejagnu" version="&dejagnu-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&dejagnu-md5;</digest>
+        <archive>&packages_dir;/&dejagnu-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&dejagnu-directory;</base>
+      </stageinfo>
+      <configure>
+        <prefix>env CC=${target}-gcc</prefix>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&dejagnu-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/diffutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/diffutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/diffutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="diffutils" version="&diffutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&diffutils-md5;</digest>
+        <archive>&packages_dir;/&diffutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&diffutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&diffutils-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&diffutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/expect.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/expect.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/expect.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="expect" version="&expect-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&expect-md5;</digest>
+        <archive>&packages_dir;/&expect-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&expect-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&expect-spawn-patch;</param>
+      </patch>
+      <configure>
+        <prefix>env CC=${target}-gcc</prefix>
+        <param>--prefix=/tools</param>
+        <param>--with-tcl=/tools/lib</param>
+        <param>--with-tclinclude=&build_dir;/&tcl-directory;</param>
+        <param>--with-x=no</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>test</param>
+      </make>
+      -->
+      <make>
+        <param>SCRIPTS=""</param>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&tcl-directory;</remove>
+      <remove>&build_dir;/&expect-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/findutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/findutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/findutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="findutils" version="&findutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&findutils-md5;</digest>
+        <archive>&packages_dir;/&findutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&findutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {find,locate,xargs}/Makefile.in" base="&build_dir;/&findutils-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&findutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/flex.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/flex.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/flex.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="flex" version="&flex-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&flex-md5;</digest>
+        <archive>&packages_dir;/&flex-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&flex-directory;</base>
+      </stageinfo>
+       <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&flex-cflags-fixes-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&flex-debian-fixes-patch;</param>
+      </patch>
+      <execute command="touch">
+        <param>doc/flex.1</param>
+      </execute>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&flex-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/gawk.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/gawk.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/gawk.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gawk" version="&gawk-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gawk-md5;</digest>
+        <archive>&packages_dir;/&gawk-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gawk-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&gawk-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gawk-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/gcc-pass1.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/gcc-pass1.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/gcc-pass1.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gcc-pass1" version="&gcc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gcc-md5;</digest>
+        <archive>&packages_dir;/&gcc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <execute command="sed" base="&build_dir;/&gcc-directory;">
+      <param>-e 's@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g'</param>
+        <param>-i gcc/Makefile.in</param>
+      </execute>
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <textdump mode="append">
+        <file>&build_dir;/&gcc-directory;/gcc/config/linux.h</file>
+        <content>
+          =
+          =#undef STARTFILE_PREFIX_SPEC
+          =#define STARTFILE_PREFIX_SPEC "/tools/lib/"
+        </content>
+      </textdump>
+      <execute command="touch">
+        <param>${ldso}</param>
+        </execute>
+      <configure command="../&gcc-directory;/configure">
+        <param>--prefix=/tools</param>
+        <param>--target=${target}</param>
+        <param>--with-local-prefix=/tools</param>
+        <param>--disable-nls</param>
+        <param>--disable-shared</param>
+        <param>--enable-languages=c</param>
+        <param>--with-dynamic-linker=${ldso}</param>
+        <param>--with-nostdinc</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/gcc-build</remove>
+      <remove>&build_dir;/&gcc-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/gcc-pass2.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/gcc-pass2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/gcc-pass2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gcc-pass2" version="&gcc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gcc-md5;</digest>
+        <archive>&packages_dir;/&gcc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <!-- Run the following command:  expect -c "spawn ls"
+If you receive the message:
+        The system has no more ptys.  Ask your system administrator to create more.
+Your host distribution is not set up for proper PTY operation. In this case there is no point in running the test
+suites for GCC and Binutils until you are able to resolve the issue.
+      -->
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-ssp-patch;</param>
+      </patch>
+      <execute command="sed -e 's at gcc.gnu.org/bugs.html at bugs.linuxfromscratch.org/@' -e 's/3.4.4/3.4.4 (ssp)/' -i gcc/version.c" base="&build_dir;/&gcc-directory;"/>
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-no-fixincludes-patch;</param>
+      </patch>
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <configure command="../&gcc-directory;/configure">
+        <prefix>env CC=${target}-gcc</prefix>
+        <param>--prefix=/tools</param>
+        <param>--host=${target}</param>
+        <param>--build=${target}</param>
+        <param>--target=${target}</param>
+        <param>--libexecdir=/tools/lib</param>
+        <param>--with-local-prefix=/tools</param>
+        <param>--enable-clocale=gnu</param>
+        <param>--enable-shared</param>
+        <param>--enable-threads=posix</param>
+        <param>--enable-__cxa_atexit</param>
+        <param>--enable-languages=c,c++</param>
+        <param>--disable-libstdcxx-pch</param>
+        <param>--with-dynamic-linker=${ldso}</param>
+        <param>--with-nostdinc</param>
+        <param>--enable-multilib=no</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>-k check</param>
+      </make>
+      <execute command="../&gcc-directory;/contrib/test_summary" />
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <textdump base="/tools/bin">
+        <file>hardened-specs.sh</file>
+        <content>
+          =#!/bin/sh
+          =perl -pi -e 's@\*cc1:\n@$_%(cc1_ssp) @;' (gcc --print-file specs) &real-amp;&real-amp;
+          =perl -pi -e 's@\*cc1plus:\n@$_%(cc1_ssp) @;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =echo '*cc1_ssp:
+          =%{!fno-stack-protector*: -fstack-protector-all}
+          ='    >> $(gcc --print-file specs)
+          =perl -pi -e 's@\*cc1:\n@$_%(cc1_pie) @;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =perl -pi -e 's@\*cc1plus:\n@$_%(cc1_pie) @;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =perl -pi -e 's@%{pie:-pie}@%(link_pie)@;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =perl -pi -e 's at pie:@!no-pie|pie:@g;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =perl -pi -e 's@\*cpp:\n@$_%(cpp_pie) @;' $(gcc --print-file specs) &real-amp;&real-amp;
+          =echo '*cpp_pie:
+          =%{!static:%{!no-pie:%{!pie: -D__PIC__ -DPIC}}}
+          =' >> $(gcc --print-file specs) &real-amp;&real-amp;
+          =echo '*cc1_pie:
+          =%{!static:%{!no-pie:%{!pie: -fPIC}}}
+          =' >> $(gcc --print-file specs) &real-amp;&real-amp;
+          =echo '*link_pie:
+          =%{pie:-pie}%{!no-pie:%{!static:%{!Bstatic:%{!i:%{!r: %{!nonow: -z now} %{!norelro: -z relro} %{!shared:%{!Bshareable:%{!pie: -pie}}}}}}}}
+          =' >> $(gcc --print-file specs)
+        </content>
+      </textdump>
+	<execute command="chmod +x /tools/bin/hardened-specs.sh"/>
+      <execute command="/tools/bin/hardened-specs.sh"/>
+      <textdump>
+        <file>&build_dir;/&gcc-directory;/test.c</file>
+        <content>
+          =#include <stdio.h>
+          =#include <unistd.h>
+          =extern long __guard[];
+          =int overflow(char *test) {
+          =char buffer[7];
+          =sprintf(buffer, "12345678901234567890123456789012345678901234567890");
+          =return(1234);
+          =}
+          =int main(int argc, char **argv) {
+          =  printf("__guard\t=\t0x%08x;\n", __guard[0]);
+          =  overflow("test");
+          =  printf("This line should never get printed.\n");
+          =}
+          </content>
+        </textdump>
+        <execute command="gcc -o test test.c"/>
+        <execute command="&build_dir;/&gcc-directory;/test > /tools/gcc-chap5-test.txt"/>
+        <execute command="cat /tools/gcc-chap5-test.txt"/>
+        <execute command="readelf -l test{,2} | grep -e ': /tools' -e 'Shared' -e 'GNU_RELRO' -e 'PAX_FLAGS' > /tools/gcc-chap5-test2.txt"/>
+        <execute command="cat /tools/gcc-chap5-test2.txt"/>
+    </stage>
+    <stage name="Cleanup">
+      <remove></remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/gettext.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/gettext.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/gettext.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gettext" version="&gettext-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gettext-md5;</digest>
+        <archive>&packages_dir;/&gettext-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gettext-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^C\(XX\)\?FLAGS .*$/&real-amp; -pie -fpie/' -i gettext-runtime/src/Makefile.in" base="&build_dir;/&gettext-directory;"/>
+      <execute command="sed -e 's/.*_CFLAGS = .*$/&real-amp; -pie -fpie/' -i gettext-tools/src/Makefile.in" base="&build_dir;/&gettext-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+        <param>--disable-libasprintf</param>
+        <param>--without-csharp</param>
+      </configure>
+      <make>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gettext-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/glibc-headers.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/glibc-headers.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/glibc-headers.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="glibc-headers" version="&glibc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&glibc-md5;</digest>
+        <archive>&packages_dir;/&glibc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>glibc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/glibc-build</base>
+      </stageinfo>
+      <configure command="../&glibc-directory;/configure">
+        <param>--prefix=/tools</param>
+        <param>--host=${target}</param>
+        <param>--without-cvs</param>
+        <param>--disable-sanity-checks</param>
+        <param>--with-headers=/tools/include</param>
+      </configure>
+      <make>
+        <param>install-headers</param>
+      </make>
+      <copy>
+        <source>bits/stdio_lim.h</source>
+        <destination>/tools/include/bits</destination>
+      </copy>
+      <execute command="touch">
+        <param>/tools/include/gnu/stubs.h</param>
+      </execute>
+      <copy>
+        <source>../glibc-2.3.5/nptl/sysdeps/pthread/pthread.h</source>
+        <destination>/tools/include</destination>
+      </copy>
+      <copy>
+        <source>../glibc-2.3.5/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h</source>
+        <destination>/tools/include/bits</destination>
+	</copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&glibc-directory;</remove>
+      <remove>&build_dir;/glibc-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/glibc.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/glibc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/glibc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="glibc" version="&glibc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&glibc-md5;</digest>
+        <archive>&packages_dir;/&glibc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <unpack>
+        <digest>&glibc-libidn-md5;</digest>
+        <archive>&packages_dir;/&glibc-libidn-package;</archive>
+        <destination>&build_dir;/&glibc-directory;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>glibc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+        <base>&build_dir;/&glibc-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-arc4random-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-ssp-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-pax-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-dl_execstack-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-fix-testsuite-patch;</param>
+      </patch>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/glibc-build</base>
+      </stageinfo>
+      <textdump>
+        <file>config.cache</file>
+        <content>
+        =libc_cv_forced_unwind=yes
+        =libc_cv_c_cleanup=yes
+        </content>
+      </textdump>
+      <configure command="../&glibc-directory;/configure">
+        <param>--prefix=/tools</param>
+        <param>--host=${target}</param>
+        <param>--build=$(uname -m)-linux</param>
+        <param>--disable-profile</param>
+        <param>--enable-add-ons</param>
+        <param>--enable-kernel=2.6.0</param>
+        <param>--with-binutils=/tools/bin</param>
+        <param>--without-gd</param>
+        <param>--without-cvs</param>
+        <param>--with-headers=/tools/include</param>
+        <param>--cache-file=config.cache</param>
+        <param>--enable-bind-now</param>
+      </configure>
+      <make>
+        <param>libgcc_eh="" gnulib="-lgcc" static-gnulib="-lgcc"</param>
+      </make>
+      <mkdir>
+        <name>/tools/etc</name>
+      </mkdir>
+      <execute command="touch">
+        <param>/tools/etc/ld.so.conf</param>
+      </execute>
+      <make>
+        <param>libgcc_eh="" gnulib="-lgcc" static-gnulib="-lgcc" install</param>
+      </make>
+      <mkdir>
+        <option>parents</option>
+        <name>/tools/lib/locale</name>
+      </mkdir>
+      <make>
+        <param>localedata/install-locales</param>
+      </make>
+      <!--
+      <execute command="localedef -i de_DE -f ISO-8859-1 de_DE" />
+      <execute command="localedef -i de_DE at euro -f ISO-8859-15 de_DE at euro" />
+      <execute command="localedef -i en_HK -f ISO-8859-1 en_HK" />
+      <execute command="localedef -i en_PH -f ISO-8859-1 en_PH" />
+      <execute command="localedef -i en_US -f ISO-8859-1 en_US" />
+      <execute command="localedef -i es_MX -f ISO-8859-1 es_MX" />
+      <execute command="localedef -i fa_IR -f UTF-8 fa_IR" />
+      <execute command="localedef -i fr_FR -f ISO-8859-1 fr_FR" />
+      <execute command="localedef -i fr_FR at euro -f ISO-8859-15 fr_FR at euro" />
+      <execute command="localedef -i it_IT -f ISO-8859-1 it_IT" />
+      <execute command="localedef -i ja_JP -f EUC-JP ja_JP" />
+      -->
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&glibc-directory;</remove>
+      <remove>&build_dir;/glibc-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/grep.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/grep.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/grep.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="grep" version="&grep-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&grep-md5;</digest>
+        <archive>&packages_dir;/&grep-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&grep-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&grep-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+        <param>--disable-perl-regexp</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&grep-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/gzip.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/gzip.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/gzip.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gzip" version="&gzip-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gzip-md5;</digest>
+        <archive>&packages_dir;/&gzip-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gzip-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&gzip-directory;"/>
+      <configure>
+      <prefix>env DEFS=NO_ASM</prefix>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gzip-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/kernel-headers.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/kernel-headers.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/kernel-headers.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="kernel-headers" version="&linux-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&linux-md5;</digest>
+        <archive>&packages_dir;/&linux-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&linux-directory;</base>
+      </stageinfo>
+      <make>
+        <param>mrproper</param>
+      </make>
+      <make>
+        <param>include/linux/version.h</param>
+      </make>
+      <make>
+        <param>include/asm</param>
+      </make>
+      <mkdir>
+        <option>parents</option>
+        <name>/tools/glibc-kernheaders/asm</name>
+      </mkdir>
+      <copy>
+        <option>recursive</option>
+        <source>include/asm/*</source>
+        <destination>/tools/glibc-kernheaders/asm</destination>
+      </copy>
+      <copy>
+        <option>recursive</option>
+        <source>include/asm-generic</source>
+        <destination>/tools/glibc-kernheaders</destination>
+      </copy>
+      <copy>
+        <option>recursive</option>
+        <source>include/linux</source>
+        <destination>/tools/glibc-kernheaders</destination>
+      </copy>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/linux-libc-headers.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/linux-libc-headers.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/linux-libc-headers.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="linux-headers" version="&linux-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&linux-libc-headers-md5;</digest>
+        <archive>&packages_dir;/&linux-libc-headers-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&linux-libc-headers-directory;</base>
+      </stageinfo>
+     <patch base="&build_dir;/&linux-libc-headers-directory;">
+        <param>--no-backup-if-mismatch</param>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&linux-libc-headers-random-patch;</param>
+      </patch>
+      <mkdir base="/tools">
+        <option>parents</option>
+        <name>include</name>
+      </mkdir>
+      <copy>
+	<option>recursive</option>
+        <source>include/asm-i386</source>
+        <destination>/tools/include/asm</destination>
+      </copy>
+      <copy>
+	<option>recursive</option>
+        <source>include/linux</source>
+        <destination>/tools/include</destination>
+      </copy>
+	<execute command="source ~/.bash_profile &real-amp;"/>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/m4.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/m4.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/m4.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="m4" version="&m4-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&m4-md5;</digest>
+        <archive>&packages_dir;/&m4-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&m4-directory;</base>
+      </stageinfo>
+      <execute command="sed">
+        <param>-e "s/^\(MDEFINES.*\)CFLAGS='\$(CFLAGS)' /\1/" -i Makefile.in</param>
+        </execute>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&m4-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&m4-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/make.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/make.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/make.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="make" version="&make-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&make-md5;</digest>
+        <archive>&packages_dir;/&make-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&make-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&make-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&make-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/ncurses.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/ncurses.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/ncurses.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="ncurses" version="&ncurses-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&ncurses-md5;</digest>
+        <archive>&packages_dir;/&ncurses-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&ncurses-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS\t.*$/&real-amp; -pie -fpie/' -i {progs,tack}/Makefile.in" base="&build_dir;/&ncurses-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+        <param>--with-shared</param>
+        <param>--without-debug</param>
+        <param>--without-ada</param>
+        <param>--enable-overwrite</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&ncurses-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/patch.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/patch.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/patch.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="patch" version="&patch-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&patch-md5;</digest>
+        <archive>&packages_dir;/&patch-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&patch-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&patch-directory;"/>
+      <configure>
+        <prefix>CPPFLAGS=-D_GNU_SOURCE</prefix> <!-- lfs 6.1 not hlfs -->
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&patch-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/perl.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/perl.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/perl.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="perl" version="&perl-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&perl-md5;</digest>
+        <archive>&packages_dir;/&perl-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&perl-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&perl-libc-1-patch;</param>
+      </patch>
+      <configure command="./configure.gnu">
+        <param>--prefix=/tools</param>
+        <param>-Dstatic_ext='IO Fcntl POSIX'</param>
+        <param>-Doptimize="-O2 -fno-stack-protector"</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+        <param>perl</param>
+        <param>utilities</param>
+      </make>
+      <copy>
+        <source>perl</source>
+        <source>pod/pod2man</source>
+        <destination>/tools/bin</destination>
+      </copy>
+      <mkdir>
+        <option>parents</option>
+        <name>/tools/lib/perl5/&perl-version;</name>
+      </mkdir>
+      <copy>
+        <option>recursive</option>
+        <source>lib/*</source>
+        <destination>/tools/lib/perl5/&perl-version;</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&perl-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/sed.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/sed.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/sed.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="sed" version="&sed-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&sed-md5;</digest>
+        <archive>&packages_dir;/&sed-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&sed-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i sed/Makefile.in" base="&build_dir;/&sed-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&sed-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/settingenvironment.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/settingenvironment.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/settingenvironment.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Setting Up the Environment">
+    <stageinfo>
+      <user>&lfs-user;</user>
+    </stageinfo>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bash_profile</source>
+      <destination>&lfs-user-dir;/.bash_profile</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bashrc</source>
+      <destination>&lfs-user-dir;/.bashrc</destination>
+    </copy>
+    <search_replace>
+      <file>&lfs-user-dir;/.bashrc</file>
+      <find>[LFS]</find>
+      <replace>&LFS;</replace>
+    </search_replace>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/strip.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/strip.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/strip.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+<!--
+ ************************ 
+ * OPTIONAL BUT USEFUL  *
+ ************************
+
+ * remove the space in between the - -strip commands to make the strip work
+-->
+  <stage name="First stripping of debug symbols">
+    <!--    
+    <execute command="/tools/bin/strip">
+      <param>- -strip-debug</param>
+      <param>/tools/lib/*</param>
+    </execute>
+    <execute command="/tools/bin/strip">
+      <param>- -strip-unneeded</param>
+      <param>/tools/{,s}bin/*</param>
+    </execute>
+    <remove>/tools/{doc,info,man}</remove>
+    -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/tar.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/tar.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/tar.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="tar" version="&tar-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&tar-md5;</digest>
+        <archive>&packages_dir;/&tar-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&tar-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {rmt,src}/Makefile.in" base="&build_dir;/&tar-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&tar-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/tcl.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/tcl.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/tcl.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="tcl" version="&tcl-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&tcl-md5;</digest>
+        <archive>&packages_dir;/&tcl-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&tcl-directory;/unix</base>
+      </stageinfo>
+      <configure>
+        <prefix>env CC=${target}-gcc</prefix>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <prefix>TZ=UTC</prefix>
+        <param>test</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>tclsh8.4</target>
+        <name>/tools/bin/tclsh</name>
+      </link>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/texinfo.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/texinfo.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/texinfo.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="texinfo" version="&texinfo-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&texinfo-md5;</digest>
+        <archive>&packages_dir;/&texinfo-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&texinfo-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {info,makeinfo,util}/Makefile.in" base="&build_dir;/&texinfo-directory;"/>
+      <configure>
+        <param>--prefix=/tools</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&texinfo-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter05/util-linux.xml
===================================================================
--- profiles/HLFS/trunk/chapter05/util-linux.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter05/util-linux.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="util-linux" version="&util-linux-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&util-linux-md5;</digest>
+        <archive>&packages_dir;/&util-linux-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&util-linux-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&util-linux-cflags-patch;</param>
+      </patch>
+      <execute command="sed -i 's@/usr/include@/tools/include at g' configure" base="&build_dir;/&util-linux-directory;"/>
+      <configure />
+      <make>
+        <param>&jlevel;</param>
+        <param>-C lib</param>
+      </make>
+      <make>
+        <param>&jlevel;</param>
+        <param>-C mount</param>
+        <param>mount</param>
+        <param>umount</param>
+      </make>
+      <make>
+        <param>&jlevel;</param>
+        <param>-C text-utils</param>
+        <param>more</param>
+      </make>
+      <copy>
+        <source>mount/{,u}mount</source>
+        <source>text-utils/more</source>
+        <destination>/tools/bin</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&util-linux-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/Makefile.in
===================================================================
--- profiles/HLFS/trunk/chapter06/Makefile.in	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/Makefile.in	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,666 @@
+# Makefile.in generated by automake 1.9.3 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+
+# Main Makefile for GNU tar.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
+# Software Foundation, Inc.
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = .
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+	$(srcdir)/Makefile.in $(srcdir)/config.hin \
+	$(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \
+	INSTALL NEWS THANKS TODO config/config.guess \
+	config/config.rpath config/config.sub config/depcomp \
+	config/install-sh config/mdate-sh config/missing \
+	config/mkinstalldirs config/texinfo.tex
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/alloca.m4 \
+	$(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argp.m4 \
+	$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/bison.m4 \
+	$(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
+	$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/d-ino.m4 \
+	$(top_srcdir)/m4/dirname.m4 $(top_srcdir)/m4/dos.m4 \
+	$(top_srcdir)/m4/eealloc.m4 $(top_srcdir)/m4/error.m4 \
+	$(top_srcdir)/m4/exclude.m4 $(top_srcdir)/m4/exitfail.m4 \
+	$(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/fileblocks.m4 \
+	$(top_srcdir)/m4/fnmatch.m4 $(top_srcdir)/m4/ftruncate.m4 \
+	$(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
+	$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getline.m4 \
+	$(top_srcdir)/m4/getndelim2.m4 $(top_srcdir)/m4/getopt.m4 \
+	$(top_srcdir)/m4/getpagesize.m4 $(top_srcdir)/m4/gettext_gl.m4 \
+	$(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
+	$(top_srcdir)/m4/glibc21_gl.m4 $(top_srcdir)/m4/gnulib.m4 \
+	$(top_srcdir)/m4/hash.m4 $(top_srcdir)/m4/human.m4 \
+	$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intmax_t.m4 \
+	$(top_srcdir)/m4/inttypes_h.m4 \
+	$(top_srcdir)/m4/inttypes_h_gl.m4 $(top_srcdir)/m4/lchown.m4 \
+	$(top_srcdir)/m4/lib-ld_gl.m4 $(top_srcdir)/m4/lib-link.m4 \
+	$(top_srcdir)/m4/lib-prefix_gl.m4 \
+	$(top_srcdir)/m4/localcharset.m4 \
+	$(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
+	$(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbstate_t.m4 \
+	$(top_srcdir)/m4/mempcpy.m4 $(top_srcdir)/m4/memset.m4 \
+	$(top_srcdir)/m4/mktime.m4 $(top_srcdir)/m4/modechange.m4 \
+	$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/obstack.m4 \
+	$(top_srcdir)/m4/onceonly.m4 $(top_srcdir)/m4/po_gl.m4 \
+	$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/quote.m4 \
+	$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/restrict.m4 \
+	$(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/rmt.m4 \
+	$(top_srcdir)/m4/safe-read.m4 $(top_srcdir)/m4/safe-write.m4 \
+	$(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
+	$(top_srcdir)/m4/setenv.m4 $(top_srcdir)/m4/ssize_t.m4 \
+	$(top_srcdir)/m4/st_mtim.m4 $(top_srcdir)/m4/stdbool.m4 \
+	$(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/stdint_h_gl.m4 \
+	$(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcase.m4 \
+	$(top_srcdir)/m4/strchrnul.m4 $(top_srcdir)/m4/strndup.m4 \
+	$(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strtoimax.m4 \
+	$(top_srcdir)/m4/strtol.m4 $(top_srcdir)/m4/strtoll.m4 \
+	$(top_srcdir)/m4/strtoul.m4 $(top_srcdir)/m4/strtoull.m4 \
+	$(top_srcdir)/m4/strtoumax.m4 $(top_srcdir)/m4/sysexits.m4 \
+	$(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
+	$(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/uintmax_t.m4 \
+	$(top_srcdir)/m4/uintmax_t_gl.m4 $(top_srcdir)/m4/ulonglong.m4 \
+	$(top_srcdir)/m4/ulonglong_gl.m4 \
+	$(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/utimbuf.m4 \
+	$(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimes-null.m4 \
+	$(top_srcdir)/m4/xalloc.m4 $(top_srcdir)/m4/xgetcwd.m4 \
+	$(top_srcdir)/m4/xstrtol.m4 $(top_srcdir)/m4/xstrtoumax.m4 \
+	$(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno configure.status.lineno
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+	html-recursive info-recursive install-data-recursive \
+	install-exec-recursive install-info-recursive \
+	install-recursive installcheck-recursive installdirs-recursive \
+	pdf-recursive ps-recursive uninstall-info-recursive \
+	uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+  { test ! -d $(distdir) \
+    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+         && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 \
+	$(distdir).shar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+ALLOCA = @ALLOCA@
+ALLOCA_H = @ALLOCA_H@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOM4TE = @AUTOM4TE@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BACKUP_LIBEXEC_SCRIPTS = @BACKUP_LIBEXEC_SCRIPTS@
+BACKUP_SBIN_SCRIPTS = @BACKUP_SBIN_SCRIPTS@
+BACKUP_SED_COND = @BACKUP_SED_COND@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFAULT_ARCHIVE = @DEFAULT_ARCHIVE@
+DEFAULT_ARCHIVE_FORMAT = @DEFAULT_ARCHIVE_FORMAT@
+DEFAULT_BLOCKING = @DEFAULT_BLOCKING@
+DEFAULT_RMT_COMMAND = @DEFAULT_RMT_COMMAND@
+DEFAULT_RMT_DIR = @DEFAULT_RMT_DIR@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FNMATCH_H = @FNMATCH_H@
+GETOPT_H = @GETOPT_H@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+HAVE__BOOL = @HAVE__BOOL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
+LIB_SETSOCKOPT = @LIB_SETSOCKOPT@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+POSUB = @POSUB@
+PU_RMT_PROG = @PU_RMT_PROG@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STDBOOL_H = @STDBOOL_H@
+STRIP = @STRIP@
+SYSEXITS_H = @SYSEXITS_H@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+YACC = @YACC@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = ChangeLog.1 PORTS
+SUBDIRS = doc lib rmt src scripts po tests
+all: config.h
+	$(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+	@:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+	      cd $(srcdir) && $(AUTOMAKE) --gnu  \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    echo ' $(SHELL) ./config.status'; \
+	    $(SHELL) ./config.status;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	$(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+config.h: stamp-h1
+	@if test ! -f $@; then \
+	  rm -f stamp-h1; \
+	  $(MAKE) stamp-h1; \
+	else :; fi
+
+stamp-h1: $(srcdir)/config.hin $(top_builddir)/config.status
+	@rm -f stamp-h1
+	cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.hin:  $(am__configure_deps) 
+	cd $(top_srcdir) && $(AUTOHEADER)
+	rm -f stamp-h1
+	touch $@
+
+distclean-hdr:
+	-rm -f config.h stamp-h1
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+	@set fnord $$MAKEFLAGS; amf=$$2; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done; \
+	if test "$$dot_seen" = "no"; then \
+	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+	fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+	@set fnord $$MAKEFLAGS; amf=$$2; \
+	dot_seen=no; \
+	case "$@" in \
+	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+	  *) list='$(SUBDIRS)' ;; \
+	esac; \
+	rev=''; for subdir in $$list; do \
+	  if test "$$subdir" = "."; then :; else \
+	    rev="$$subdir $$rev"; \
+	  fi; \
+	done; \
+	rev="$$rev ."; \
+	target=`echo $@ | sed s/-recursive//`; \
+	for subdir in $$rev; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done && test -z "$$fail"
+tags-recursive:
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+	done
+ctags-recursive:
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+	done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.hin $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+	  include_option=--etags-include; \
+	  empty_fix=.; \
+	else \
+	  include_option=--include; \
+	  empty_fix=; \
+	fi; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  if test "$$subdir" = .; then :; else \
+	    test ! -f $$subdir/TAGS || \
+	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+	  fi; \
+	done; \
+	list='$(SOURCES) $(HEADERS) config.hin $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	    $$tags $$unique; \
+	fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.hin $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS) config.hin $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+	$(am__remove_distdir)
+	mkdir $(distdir)
+	$(mkdir_p) $(distdir)/config $(distdir)/m4 $(distdir)/po $(distdir)/tests
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+	  if test "$$subdir" = .; then :; else \
+	    test -d "$(distdir)/$$subdir" \
+	    || $(mkdir_p) "$(distdir)/$$subdir" \
+	    || exit 1; \
+	    distdir=`$(am__cd) $(distdir) && pwd`; \
+	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+	    (cd $$subdir && \
+	      $(MAKE) $(AM_MAKEFLAGS) \
+	        top_distdir="$$top_distdir" \
+	        distdir="$$distdir/$$subdir" \
+	        distdir) \
+	      || exit 1; \
+	  fi; \
+	done
+	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+	|| chmod -R a+r $(distdir)
+dist-gzip: distdir
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	$(am__remove_distdir)
+dist-bzip2: distdir
+	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+	$(am__remove_distdir)
+
+dist-tarZ: distdir
+	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+	$(am__remove_distdir)
+dist-shar: distdir
+	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+	$(am__remove_distdir)
+
+dist-zip: distdir
+	-rm -f $(distdir).zip
+	zip -rq $(distdir).zip $(distdir)
+	$(am__remove_distdir)
+
+dist dist-all: distdir
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+	$(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration.  Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+	case '$(DIST_ARCHIVES)' in \
+	*.tar.gz*) \
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+	*.tar.bz2*) \
+	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+	*.tar.Z*) \
+	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+	*.shar.gz*) \
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+	*.zip*) \
+	  unzip $(distdir).zip ;;\
+	esac
+	chmod -R a-w $(distdir); chmod a+w $(distdir)
+	mkdir $(distdir)/_build
+	mkdir $(distdir)/_inst
+	chmod a-w $(distdir)
+	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+	  && cd $(distdir)/_build \
+	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+	    $(DISTCHECK_CONFIGURE_FLAGS) \
+	  && $(MAKE) $(AM_MAKEFLAGS) \
+	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
+	  && $(MAKE) $(AM_MAKEFLAGS) check \
+	  && $(MAKE) $(AM_MAKEFLAGS) install \
+	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+	        distuninstallcheck \
+	  && chmod -R a-w "$$dc_install_base" \
+	  && ({ \
+	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
+	  && rm -rf "$$dc_destdir" \
+	  && $(MAKE) $(AM_MAKEFLAGS) dist \
+	  && rm -rf $(DIST_ARCHIVES) \
+	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+	$(am__remove_distdir)
+	@(echo "$(distdir) archives ready for distribution: "; \
+	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+distuninstallcheck:
+	@cd $(distuninstallcheck_dir) \
+	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+	   || { echo "ERROR: files left after uninstall:" ; \
+	        if test -n "$(DESTDIR)"; then \
+	          echo "  (check DESTDIR support)"; \
+	        fi ; \
+	        $(distuninstallcheck_listfiles) ; \
+	        exit 1; } >&2
+distcleancheck: distclean
+	@if test '$(srcdir)' = . ; then \
+	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+	  exit 1 ; \
+	fi
+	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+	  || { echo "ERROR: files left in build directory after distclean:" ; \
+	       $(distcleancheck_listfiles) ; \
+	       exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-recursive
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+	-rm -rf $(top_srcdir)/autom4te.cache
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
+	check-am clean clean-generic clean-recursive ctags \
+	ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
+	dist-tarZ dist-zip distcheck distclean distclean-generic \
+	distclean-hdr distclean-recursive distclean-tags \
+	distcleancheck distdir distuninstallcheck dvi dvi-am html \
+	html-am info info-am install install-am install-data \
+	install-data-am install-exec install-exec-am install-info \
+	install-info-am install-man install-strip installcheck \
+	installcheck-am installdirs installdirs-am maintainer-clean \
+	maintainer-clean-generic maintainer-clean-recursive \
+	mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
+	pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
+	uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: profiles/HLFS/trunk/chapter06/autoconf.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/autoconf.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/autoconf.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="autoconf" version="&autoconf-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&autoconf-md5;</digest>
+        <archive>&packages_dir;/&autoconf-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&autoconf-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&autoconf-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/automake.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/automake.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/automake.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="automake" version="&automake-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&automake-md5;</digest>
+        <archive>&packages_dir;/&automake-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&automake-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&automake-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/bash.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/bash.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/bash.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bash" version="&bash-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bash-md5;</digest>
+        <archive>&packages_dir;/&bash-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bash-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&bash-fixes-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&bash-wcontinued-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {.,builtins}/Makefile.in" base="&build_dir;/&bash-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--bindir=/bin</param>
+        <param>--without-bash-malloc</param>
+        <param>--with-installed-readline</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>tests</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bash-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/basic-dev.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/basic-dev.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/basic-dev.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <stage name="Populating /dev">
+    <stage name="Creating Initial Device Nodes">
+      <execute command="mknod">
+        <param>-m 600</param>
+        <param>/dev/console</param>
+        <param>c 5 1</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 666</param>
+        <param>/dev/null</param>
+        <param>c 1 3</param>
+      </execute>
+    </stage>
+    <stage name="Mounting ramfs and Populating /dev">
+      <execute command="mount">
+        <param>-n</param>
+        <param>-t tmpfs</param>
+        <param>none</param>
+        <param>/dev</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 622</param>
+        <param>/dev/console</param>
+        <param>c 5 1</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 666</param>
+        <param>/dev/null</param>
+        <param>c 1 3</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 666</param>
+        <param>/dev/zero</param>
+        <param>c 1 5</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 666</param>
+        <param>/dev/ptmx</param>
+        <param>c 5 2</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 666</param>
+        <param>/dev/tty</param>
+        <param>c 5 0</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 444</param>
+        <param>/dev/random</param>
+        <param>c 1 8</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 444</param>
+        <param>/dev/urandom</param>
+        <param>c 1 9</param>
+      </execute>
+      <execute command="mknod">
+        <param>-m 444</param>
+        <param>/dev/erandom</param>
+        <param>c 235 12</param>
+      </execute>
+      <ownership base="/dev" user="root" group="tty">
+        <name>console</name>
+        <name>ptmx</name>
+        <name>tty</name>
+      </ownership>
+      <link>
+        <target>/proc/self/fd</target>
+        <name>/dev/fd</name>
+      </link>
+      <link>
+        <target>/proc/self/fd/0</target>
+        <name>/dev/stdin</name>
+      </link>
+      <link>
+        <target>/proc/self/fd/1</target>
+        <name>/dev/stdout</name>
+      </link>
+      <link>
+        <target>/proc/self/fd/2</target>
+        <name>/dev/stderr</name>
+      </link>
+      <link>
+        <target>/proc/kcore</target>
+        <name>/dev/core</name>
+      </link>
+      <mkdir>
+        <name>/dev/shm</name>
+        <name>/dev/pts</name>
+      </mkdir>
+      <execute command="mount">
+        <param>-t devpts</param>
+        <param>-o gid=4,mode=620</param>
+        <param>none</param>
+        <param>/dev/pts</param>
+      </execute>
+      <execute command="mount">
+        <param>-t tmpfs</param>
+        <param>none</param>
+        <param>/dev/shm</param>
+      </execute>
+    </stage>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/binutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/binutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/binutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="binutils" version="&binutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&binutils-md5;</digest>
+        <archive>&packages_dir;/&binutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+<!-- test for trouble     <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>binutils-build</name>
+      </mkdir> -->
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/binutils-build</base>
+      </stageinfo>
+      <!-- Run the following command:  expect -c "spawn ls"
+If you receive the message:
+    The system has no more ptys.  Ask your system administrator to create more.
+Your chroot environment is not set up for proper PTY operation. In this case there is no point in running the test
+suites for Binutils and GCC until you are able to resolve the issue.
+      -->
+      <patch base="&build_dir;/&binutils-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&binutils-patch;</param>
+      </patch>
+      <configure command="../&binutils-directory;/configure">
+        <param>--prefix=/usr</param>
+        <param>--host=${target}</param>
+        <param>--build=${target}</param>
+        <param>--target=${target}</param>
+        <param>--enable-shared</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+        <param>tooldir=/usr</param>
+      </make>
+      <!--- buggy test needs fix (temp disable)
+      <make>
+        <param>-k check</param>
+        <param>|| true</param>
+      </make>
+      -->
+      <make>
+        <param>tooldir=/usr</param>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>../&binutils-directory;/include/libiberty.h</source>
+        <destination>/usr/include</destination>
+      </copy>
+	<execute command="rm /usr/lib/{libbfd,libopcodes,libiberty}.a"/>
+    <execute command="rm /usr/lib/libdl*.a"/>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&binutils-directory;</remove>
+      <remove>&build_dir;/binutils-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/bison.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/bison.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/bison.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bison" version="&bison-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bison-md5;</digest>
+        <archive>&packages_dir;/&bison-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bison-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&bison-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <remove>/usr/lib/liby.a</remove>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bison-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/bzip2.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/bzip2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/bzip2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bzip2" version="&bzip2-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&bzip2-md5;</digest>
+        <archive>&packages_dir;/&bzip2-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&bzip2-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&bzip2-patch;</param>
+      </patch>
+      <make>
+        <param>-f Makefile-libbz2_so</param>
+      </make>
+      <make>
+        <param>clean</param>
+      </make>
+      <make />
+      <!--<make>
+        <param>test</param>
+      </make>-->
+      <make>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>bzip2-shared</source>
+        <destination>/bin/bzip2</destination>
+      </copy>
+      <copy>
+        <option>archive</option>
+        <source>libbz2.so*</source>
+        <destination>/lib</destination>
+      </copy>
+      <link>
+        <option>force</option>
+        <target>../../lib/libbz2.so.1.0</target>
+        <name>/usr/lib/libbz2.so</name>
+      </link>
+      <remove>/usr/bin/bunzip2</remove>
+      <remove>/usr/bin/bzcat</remove>
+      <remove>/usr/bin/bzip2</remove>
+      <move base="/usr/bin">
+        <source>bzip2recover</source>
+        <source>bzless</source>
+        <source>bzmore</source>
+        <destination>/bin</destination>
+      </move>
+      <link>
+        <option>force</option>
+        <target>bzip2</target>
+        <name>/bin/bunzip2</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>bzip2</target>
+        <name>/bin/bzcat</name>
+      </link>
+      <remove>/usr/lib/libbz2.a</remove>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&bzip2-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/changingowner.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/changingowner.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/changingowner.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <stage name="Changing Ownership">
+    <ownership user="0" group="0">
+      <option>recursive</option>
+      <name>/tools</name>
+    </ownership>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/coreutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/coreutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/coreutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="coreutils" version="&coreutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&coreutils-md5;</digest>
+        <archive>&packages_dir;/&coreutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&coreutils-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&coreutils-uname-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&coreutils-dupes-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&coreutils-directory;"/>
+      <configure>
+        <prefix>DEFAULT_POSIX2_VERSION=199209</prefix>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <textdump mode="append">
+        <file>/etc/group</file>
+        <content>
+        =dummy1:x:1000
+        =dummy2:x:1001:dummy
+        </content>
+      </textdump>
+      <textdump mode="append">
+        <file>/etc/passwd</file>
+        <content>
+        =dummy:x:1000:1000:::/bin/bash
+        </content>
+      </textdump>
+      <make>
+        <param>NON_ROOT_USERNAME=dummy</param>
+        <param>check-root</param>
+      </make>
+      <execute command="src/su">
+        <param>dummy</param>
+        <param>-c "make RUN_EXPENSIVE_TESTS=yes check"</param>
+      </execute>
+      <execute command="sed">
+        <param>-i.bak</param>
+        <param>'/dummy/d'</param>
+        <param>/etc/passwd</param>
+        <param>/etc/group</param>
+      </execute>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <move base="/usr/bin">
+        <source>[</source>
+        <source>basename</source>
+        <source>cat</source>
+        <source>chgrp</source>
+        <source>chmod</source>
+        <source>chown</source>
+        <source>cp</source>
+        <source>dd</source>
+        <source>df</source>
+        <source>date</source>
+        <source>echo</source>
+        <source>false</source>
+        <source>head</source>
+        <source>hostname</source>
+        <source>install</source>
+        <source>ln</source>
+        <source>ls</source>
+        <source>mkdir</source>
+        <source>mknod</source>
+        <source>mv</source>
+        <source>pwd</source>
+        <source>rm</source>
+        <source>rmdir</source>
+        <source>sync</source>
+        <source>sleep</source>
+        <source>stty</source>
+        <source>test</source>
+        <source>touch</source>
+        <source>true</source>
+        <source>uname</source>
+        <destination>/bin</destination>
+      </move>
+      <move>
+        <source>/usr/bin/chroot</source>
+        <destination>/usr/sbin</destination>
+      </move>
+      <link>
+        <option>force</option>
+        <target>../../bin/install</target>
+        <name>/usr/bin</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&coreutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/createfiles.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/createfiles.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/createfiles.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <stage name="Creating Essential Symlinks">
+    <link>
+      <option>force</option>
+      <target>/tools/bin/bash</target>
+      <target>/tools/bin/cat</target>
+      <target>/tools/bin/pwd</target>
+      <target>/tools/bin/stty</target>
+      <name>/bin</name>
+    </link>
+    <link>
+      <option>force</option>
+      <target>/tools/bin/perl</target>
+      <name>/usr/bin</name>
+    </link>
+    <link>
+      <option>force</option>
+      <target>/tools/lib/libgcc_s.so</target>
+      <target>/tools/lib/libgcc_s.so.1</target>
+      <name>/usr/lib</name>
+    </link>
+    <link>
+      <option>force</option>
+      <target>bash</target>
+      <name>/bin/sh</name>
+    </link>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/creatingdirs.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/creatingdirs.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/creatingdirs.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <stage name="Creating Directories">
+    <mkdir base="/">
+      <option>parents</option>
+      <name>bin</name>
+      <name>boot</name>
+      <name>dev</name>
+      <name>etc/opt</name>
+      <name>home</name>
+      <name>lib</name>
+      <name>media/cdrom</name>
+      <name>media/floppy</name>
+      <name>mnt</name>
+      <name>proc</name>
+      <name>root</name>
+      <name>sbin</name>
+      <name>srv</name>
+      <name>sys</name>
+      <name>tmp</name>
+      <name>usr/local</name>
+      <name>var</name>
+      <name>opt</name>
+    </mkdir>
+    <mkdir base="/usr">
+      <option>parents</option>
+      <name>bin</name>
+      <name>include</name>
+      <name>lib</name>
+      <name>sbin</name>
+      <name>share</name>
+      <name>src</name>
+    </mkdir>
+    <link>
+      <option>force</option>
+      <target>share/man</target>
+      <target>share/doc</target>
+      <target>share/info</target>
+      <name>/usr</name>
+    </link>
+    <mkdir base="/usr/share">
+      <option>parents</option>
+      <name>doc</name>
+      <name>info</name>
+      <name>locale</name>
+      <name>man</name>
+      <name>misc</name>
+      <name>terminfo</name>
+      <name>zoneinfo</name>
+    </mkdir>
+    <mkdir base="/usr/share/man">
+      <option>parents</option>
+      <name>man1</name>
+      <name>man2</name>
+      <name>man3</name>
+      <name>man4</name>
+      <name>man5</name>
+      <name>man6</name>
+      <name>man7</name>
+      <name>man8</name>
+    </mkdir>
+    <mkdir base="/usr/local">
+      <option>parents</option>
+      <name>bin</name>
+      <name>etc</name>
+      <name>include</name>
+      <name>lib</name>
+      <name>sbin</name>
+      <name>share</name>
+      <name>src</name>
+    </mkdir>
+    <link>
+      <option>force</option>
+      <target>share/man</target>
+      <target>share/doc</target>
+      <target>share/info</target>
+      <name>/usr/local</name>
+    </link>
+    <mkdir base="/usr/local/share">
+      <option>parents</option>
+      <name>dict</name>
+      <name>doc</name>
+      <name>info</name>
+      <name>locale</name>
+      <name>man</name>
+      <name>nls</name>
+      <name>misc</name>
+      <name>terminfo</name>
+      <name>zoneinfo</name>
+    </mkdir>
+    <mkdir base="/usr/local/share/man">
+      <option>parents</option>
+      <name>man1</name>
+      <name>man2</name>
+      <name>man3</name>
+      <name>man4</name>
+      <name>man5</name>
+      <name>man6</name>
+      <name>man7</name>
+      <name>man8</name>
+    </mkdir>
+    <mkdir base="/var">
+      <option>parents</option>
+      <name>lock</name>
+      <name>log</name>
+      <name>mail</name>
+      <name>run</name>
+      <name>spool</name>
+      <name>tmp</name>
+      <name>opt</name>
+      <name>cache</name>
+      <name>lib/misc</name>
+      <name>local</name>
+      <name>empty</name>
+    </mkdir>
+    <mkdir base="/opt">
+      <option>parents</option>
+      <name>bin</name>
+      <name>doc</name>
+      <name>include</name>
+      <name>info</name>
+      <name>lib</name>
+      <name>man/man1</name>
+      <name>man/man2</name>
+      <name>man/man3</name>
+      <name>man/man4</name>
+      <name>man/man5</name>
+      <name>man/man6</name>
+      <name>man/man7</name>
+      <name>man/man8</name>
+    </mkdir>
+    <permissions mode="0750">
+      <name>/root</name>
+    </permissions>
+    <permissions mode="1777">
+      <name>/tmp</name>
+      <name>/var/tmp</name>
+    </permissions>
+    <permissions mode="0500">
+      <name>/var/empty</name>
+    </permissions>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/diffutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/diffutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/diffutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="diffutils" version="&diffutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&diffutils-md5;</digest>
+        <archive>&packages_dir;/&diffutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&diffutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&diffutils-directory;"/>
+
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&diffutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/e2fsprogs.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/e2fsprogs.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/e2fsprogs.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="e2fsprogs" version="&e2fsprogs-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&e2fsprogs-md5;</digest>
+        <archive>&packages_dir;/&e2fsprogs-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <name>e2fsprogs-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/e2fsprogs-build</base>
+      </stageinfo>
+	<execute command="find resize/ debugfs/ e2fsck/ misc/ -type f -name Makefile.in | xargs sed -e 's@\$(ALL_CFLAGS)@&real-amp; -pie -fpie at g' -i" base="&build_dir;/&e2fsprogs-directory;"/>
+      <execute command="sed" base="&build_dir;/&e2fsprogs-directory;">
+        <param>-i -e 's/-DTEST/$(ALL_CFLAGS) &real-amp;/'</param>
+        <param>lib/e2p/Makefile.in</param>
+      </execute>
+      <configure command="../&e2fsprogs-directory;/configure">
+        <param>--prefix=/usr</param>
+        <param>--with-root-prefix=""</param>
+        <param>--enable-elf-shlibs</param>
+        <param>--disable-evms</param>
+        <param>--with-gnu-ld</param>
+        <param>--enable-dynamic-e2fsc</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <make>
+        <param>install-libs</param>
+      </make>
+    <execute command="rm /usr/lib/{libcom_err,libss,libe2p,libext2fs,libuuid,libblkid}.a"/>
+    </stage>
+	<stage name="Cleanup">
+      <remove>&build_dir;/&e2fsprogs-directory;</remove>
+      <remove>&build_dir;/e2fsprogs-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/file.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/file.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/file.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="file" version="&file-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&file-md5;</digest>
+        <archive>&packages_dir;/&file-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&file-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--disable-static</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&file-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/findutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/findutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/findutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="findutils" version="&findutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&findutils-md5;</digest>
+        <archive>&packages_dir;/&findutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&findutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {find,locate,xargs}/Makefile.in" base="&build_dir;/&findutils-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--libexecdir=/usr/lib/locate</param>
+        <param>--localstatedir=/var/lib/locate</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&findutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/flex.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/flex.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/flex.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="flex" version="&flex-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&flex-md5;</digest>
+        <archive>&packages_dir;/&flex-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&flex-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&flex-debian-fixes-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&flex-cflags-fixes-patch;</param>
+      </patch>
+      <execute command="touch">
+        <param>doc/*.1</param>
+      </execute>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>libfl.a</target>
+        <name>/usr/lib/libl.a</name>
+      </link>
+      <copy>
+          <source>&skeleton_dir;/usr/bin/lex</source>
+	  <destination>/usr/bin/lex</destination>
+	</copy>
+      <permissions mode="755">
+        <name>/usr/bin/lex</name>
+      </permissions>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&flex-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/gawk.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/gawk.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/gawk.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gawk" version="&gawk-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gawk-md5;</digest>
+        <archive>&packages_dir;/&gawk-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gawk-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&gawk-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--libexecdir=/usr/lib</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gawk-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/gcc.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/gcc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/gcc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gcc-md5;</digest>
+        <archive>&packages_dir;/&gcc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>gcc-build</name>
+      </mkdir>
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-no-fixincludes-patch;</param>
+      </patch>
+      <patch base="&build_dir;/&gcc-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gcc-linkonce-patch;</param>
+      </patch>
+      <execute command="sed -e 's/install_to_$(INSTALL_DEST) //' -i libiberty/Makefile.in" base="&build_dir;/&gcc-directory;"/>
+      <execute command="sed -e 's at gcc.gnu.org/bugs.html at bugs.linuxfromscratch.org/@' -e 's/3.4.4/3.4.4 (ssp)/' -i gcc/version.c" base="&build_dir;/&gcc-directory;"/>
+      <configure command="../&gcc-directory;/configure">
+        <param>--prefix=/usr</param>
+        <param>--host=${target}</param>
+        <param>--build=${target}</param>
+        <param>--target=${target}</param>
+        <param>--libexecdir=/usr/lib</param>
+        <param>--with-dynamic-linker=${ldso}</param>
+        <param>--enable-shared</param>
+        <param>--enable-threads=posix</param>
+        <param>--enable-__cxa_atexit</param>
+        <param>--enable-clocale=gnu</param>
+        <param>--enable-languages=c,c++</param>
+        <param>--enable-multilib=no</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>-k check</param>
+        <param>|| true</param>
+      </make>
+      <!-- Shows a summary of the tests ran in the above `make -k check` -->
+      <execute command="../&gcc-directory;/contrib/test_summary" />
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>../usr/bin/cpp</target>
+        <name>/lib</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>gcc</target>
+        <name>/usr/bin/cc</name>
+      </link>
+    <execute command="/tools/bin/hardened-specs.sh"/>
+    <execute command="mv /usr/lib/libc{,_g}.a /root/"/>
+      <textdump>
+        <file>&build_dir;/&gcc-directory;/test.c</file>
+        <content>
+          =#include <stdio.h>
+          =#include <unistd.h>
+          =extern long __guard[];
+          =int overflow(char *test) {
+          =char buffer[7];
+          =sprintf(buffer, "12345678901234567890123456789012345678901234567890");
+          =return(1234);
+          =}
+          =int main(int argc, char **argv) {
+          =  printf("__guard\t=\t0x%08x;\n", __guard[0]);
+          =  overflow("test");
+          =  printf("This line should never get printed.\n");
+          =}
+        </content>
+      </textdump>
+        <execute command="gcc -o test test.c"/>
+        <execute command="&build_dir;/&gcc-directory;/test > /tools/gcc-chap6-test.txt"/>
+        <execute command="cat /tools/gcc-chap5-test.txt"/>
+        <execute command="readelf -l test{,2} | grep -e 'Shared' -e 'GNU_RELRO' -e 'PAX_FLAGS' > /tools/gcc-chap5-test2.txt"/>
+        <execute command="cat /tools/gcc-chap6-test2.txt"/>
+        </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+</alfs>
\ No newline at end of file

Added: profiles/HLFS/trunk/chapter06/gettext.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/gettext.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/gettext.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gettext" version="&gettext-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gettext-md5;</digest>
+        <archive>&packages_dir;/&gettext-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gettext-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^C\(XX\)\?FLAGS .*$/&real-amp; -pie -fpie/' -i gettext-runtime/src/Makefile.in" base="&build_dir;/&gettext-directory;"/>
+      <execute command="sed -e 's/.*_CFLAGS = .*$/&real-amp; -pie -fpie/' -i gettext-tools/src/Makefile.in" base="&build_dir;/&gettext-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--disable-static</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gettext-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/glibc.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/glibc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/glibc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="glibc" version="&glibc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&glibc-md5;</digest>
+        <archive>&packages_dir;/&glibc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <unpack>
+        <digest>&glibc-linuxthreads-md5;</digest>
+        <archive>&packages_dir;/&glibc-linuxthreads-package;</archive>
+        <destination>&build_dir;/&glibc-directory;</destination>
+      </unpack>
+      <unpack>
+        <digest>&glibc-libidn-md5;</digest>
+        <archive>&packages_dir;/&glibc-libidn-package;</archive>
+        <destination>&build_dir;/&glibc-directory;</destination>
+      </unpack>
+      <mkdir base="&build_dir;">
+        <option>parents</option>
+        <name>glibc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+        <base>&build_dir;/&glibc-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-arc4random-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-dl_execstack-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-stack_protector-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-pax-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-ssp-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&glibc-fix-testsuite-patch;</param>
+      </patch>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/glibc-build</base>
+      </stageinfo>
+      <configure command="../&glibc-directory;/configure">
+        <prefix>env CC="gcc -fno-stack-protector -no-pie"</prefix>
+        <param>--prefix=/usr</param>
+        <param>--disable-profile</param>
+        <param>--enable-add-ons</param>
+        <param>--enable-kernel=2.6.0</param>
+        <param>--without-cvs</param>
+        <param>--libexecdir=/usr/lib/glibc</param>
+        <param>--enable-bind-now</param>
+      </configure>
+      <make>
+        <prefix>PARALLELMFLAGS=&jlevel;</prefix>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <execute command="touch">
+        <param>/etc/ld.so.conf</param>
+      </execute>
+      <make>
+        <param>install</param>
+      </make>
+      <execute command="rm /usr/lib/{libbsd-compat,libg,libieee,libmcheck}.a"/>
+      <execute command="rm /usr/lib/{libBrokenLocale,libanl,libcrypt}{,_g}.a"/>
+      <execute command="rm /usr/lib/{libm,libnsl,libpthread,libresolv}{,_g}.a"/>
+      <execute command="rm /usr/lib/{librt,libutil,librpcsvc}{,_g}.a"/>
+      <mkdir>
+        <option>parents</option>
+        <name>/usr/lib/locale</name>
+      </mkdir>
+      <execute command="localedef -i de_DE -f ISO-8859-1 de_DE" />
+      <execute command="localedef -i de_DE at euro -f ISO-8859-15 de_DE at euro" />
+      <execute command="localedef -i en_HK -f ISO-8859-1 en_HK" />
+      <execute command="localedef -i en_PH -f ISO-8859-1 en_PH" />
+      <execute command="localedef -i en_US -f ISO-8859-1 en_US" />
+      <execute command="localedef -i es_MX -f ISO-8859-1 es_MX" />
+      <execute command="localedef -i fa_IR -f UTF-8 fa_IR" />
+      <execute command="localedef -i fr_FR -f ISO-8859-1 fr_FR" />
+      <execute command="localedef -i fr_FR at euro -f ISO-8859-15 fr_FR at euro" />
+      <execute command="localedef -i it_IT -f ISO-8859-1 it_IT" />
+      <execute command="localedef -i ja_JP -f EUC-JP ja_JP" />
+      <make>
+        <param>-C ../&glibc-directory;/linuxthreads/man</param>
+      </make>
+      <make>
+        <param>-C ../&glibc-directory;/linuxthreads/man</param>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Configuring">
+      <copy>
+        <source>&skeleton_dir;/etc/nsswitch.conf</source>
+        <source>&skeleton_dir;/etc/ld.so.conf</source>
+        <destination>/etc</destination>
+      </copy>
+      <copy>
+        <option>force</option>
+        <source>&localtime;</source>
+        <destination>/etc/localtime</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&glibc-directory;</remove>
+      <remove>&build_dir;/glibc-build</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/grep.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/grep.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/grep.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="grep" version="&grep-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&grep-md5;</digest>
+        <archive>&packages_dir;/&grep-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&grep-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&grep-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--bindir=/bin</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&grep-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/groff.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/groff.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/groff.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="groff" version="&groff-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&groff-md5;</digest>
+        <archive>&packages_dir;/&groff-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&groff-directory;</base>
+      </stageinfo>
+      <configure>
+        <prefix>PAGE=&paper_size;</prefix>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>soelim</target>
+        <name>/usr/bin/zsoelim</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>eqn</target>
+        <name>/usr/bin/geqn</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>tbl</target>
+        <name>/usr/bin/gtbl</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&groff-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/grsecoff.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/grsecoff.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/grsecoff.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <stage name="Enable when bulding on a HLFS or GRSEC enabled system">
+    <execute command="sysctl -w kernel.grsecurity.chroot_caps=0"/>
+    <execute command="sysctl -w kernel.grsecurity.chroot_deny_mknod=0"/>
+    <execute command="sysctl -w kernel.grsecurity.chroot_deny_chmod=0"/>
+    <execute command="sysctl -w kernel.grsecurity.chroot_deny_chmod=0"/>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/grub.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/grub.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/grub.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="grub" version="&grub-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&grub-md5;</digest>
+        <archive>&packages_dir;/&grub-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <environment>
+          <variable name="CFLAGS" />
+          <variable name="CXXFLAGS" />
+        </environment>
+        <base>&build_dir;/&grub-directory;</base>
+      </stageinfo>
+      <configure>
+        <prefix>CC="gcc -fno-stack-protector -no-pie"</prefix>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <mkdir>
+        <name>/boot/grub</name>
+      </mkdir>
+      <copy base="/usr/lib/grub/i386-pc">
+        <source>stage1</source>
+        <source>stage2</source>
+        <source>e2fs_stage1_5</source>
+        <destination>/boot/grub</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&grub-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/gzip.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/gzip.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/gzip.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="gzip" version="&gzip-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&gzip-md5;</digest>
+        <archive>&packages_dir;/&gzip-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&gzip-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&gzip-security-fixes-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&gzip-directory;"/>
+      <configure>
+        <prefix>DEFS=NO_ASM</prefix>
+        <param>--prefix=/usr</param>
+      </configure>
+      <search_replace>
+        <file>gzexe.in</file>
+        <find>"BINDIR"</find>
+        <replace>/bin</replace>
+      </search_replace>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <move>
+        <source>/usr/bin/gzip</source>
+        <destination>/bin</destination>
+      </move>
+      <remove>/usr/bin/gunzip</remove>
+      <remove>/usr/bin/zcat</remove>
+      <link>
+        <option>force</option>
+        <target>gzip</target>
+        <name>/bin/gunzip</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>gzip</target>
+        <name>/bin/zcat</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>gzip</target>
+        <name>/bin/compress</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>gunzip</target>
+        <name>/bin/uncompress</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gzip-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/hotplug.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/hotplug.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/hotplug.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="hotplug" version="&hotplug-version;">
+    <stage name="Unpacking.">
+      <unpack>
+        <digest>&hotplug-md5;</digest>
+        <archive>&packages_dir;/&hotplug-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing.">
+      <stageinfo>
+        <base>&build_dir;/&hotplug-directory;</base>
+      </stageinfo>
+      <execute command="sed -e '/init.d/d' -i Makefile"/>
+      <move>
+        <source>etc/hotplug/net.agent</source>
+        <destination>etc/hotplug/net.agent.unsupported</destination>
+      </move>
+      <make>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>etc/hotplug/pnp.distmap</source>
+        <destination>/etc/hotplug</destination>
+      </copy>
+      <remove>/etc/init.d</remove>
+      <remove>/etc/hotplug/net.agent</remove>
+      <mkdir>
+              <option>parents</option>
+        <name>/lib/firmware</name>
+      </mkdir>
+    </stage>
+    <stage name="Cleaning up.">
+      <remove>&build_dir;/&hotplug-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/iana-etc.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/iana-etc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/iana-etc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="iana-etc" version="&iana-etc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&iana-etc-md5;</digest>
+        <archive>&packages_dir;/&iana-etc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&iana-etc-directory;</base>
+      </stageinfo>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&iana-etc-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/inetutils.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/inetutils.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/inetutils.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="inetutils" version="&inetutils-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&inetutils-md5;</digest>
+        <archive>&packages_dir;/&inetutils-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&inetutils-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {ftp,ping,talk,telnet,tftp}/Makefile.in" base="&build_dir;/&inetutils-directory;"/>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&inetutils-no-man-pages-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&inetutils-kernel-headers-patch;</param>
+      </patch>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--libexecdir=/usr/sbin</param>
+        <param>--sysconfdir=/etc</param>
+        <param>--localstatedir=/var</param>
+        <param>--disable-logger</param>
+        <param>--disable-syslogd</param>
+        <param>--disable-whois</param>
+        <param>--disable-servers</param>
+        <param>--disable-rlogin</param>
+        <param>--disable-rsh</param>
+        <param>--disable-rcp</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <move>
+        <source>/usr/bin/ping</source>
+        <destination>/bin</destination>
+      </move>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&inetutils-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/iproute2.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/iproute2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/iproute2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="iproute2" version="&iproute2-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&iproute2-md5;</digest>
+        <archive>&packages_dir;/&iproute2-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&iproute2-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's at linux/socket.h at sys/socket.h@' -i include/linux/netlink.h" base="&build_dir;/&iproute2-directory;"/>
+      <execute command="sed -e '1,0s/^/CFLAGS+=-pie -fpie\n&real-amp;/' -i {ip,misc}/Makefile" base="&build_dir;/&iproute2-directory;"/>
+      <execute command="sed -i '/^TARGETS/s at arpd@@g' misc/Makefile" base="&build_dir;/&iproute2-directory;"/>
+      <configure />
+      <make>
+        <param>&jlevel;</param>
+        <param>SBINDIR=/sbin</param>
+      </make>
+      <make>
+        <param>install</param>
+        <param>SBINDIR=/sbin</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&iproute2-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/kbd.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/kbd.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/kbd.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="kbd" version="&kbd-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&kbd-md5;</digest>
+        <archive>&packages_dir;/&kbd-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&kbd-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i openvt/Makefile src/Makefile.in" base="&build_dir;/&kbd-directory;"/>
+      <configure />
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../config/keymap-ch6.xml" />
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&kbd-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/kernfs.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/kernfs.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/kernfs.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Mounting Virtual Kernel File Systems">
+    <mkdir base="&LFS;">
+      <option>parents</option>
+      <name>proc</name>
+      <name>sys</name>
+    </mkdir>
+    <execute command="mount">
+      <param>-t proc</param>
+      <param>proc</param>
+      <param>&LFS;/proc</param>
+    </execute>
+    <execute command="mount">
+      <param>-t sysfs</param>
+      <param>sysfs</param>
+      <param>&LFS;/sys</param>
+    </execute>
+    <execute command="mount">
+      <param>-f</param>
+      <param>-t tmpfs</param>
+      <param>tmpfs</param>
+      <param>&LFS;/dev</param>
+    </execute>
+    <execute command="mount">
+      <param>-f</param>
+      <param>-t tmpfs</param>
+      <param>tmpfs</param>
+      <param>&LFS;/dev/shm</param>
+    </execute>
+    <execute command="mount">
+      <param>-f</param>
+      <param>-t devpts</param>
+      <param>-o gid=4,mode=620</param>
+      <param>devpts</param>
+      <param>&LFS;/dev/pts</param>
+    </execute>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/less.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/less.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/less.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="less" version="&less-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&less-md5;</digest>
+        <archive>&packages_dir;/&less-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&less-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&less-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--bindir=/bin</param>
+        <param>--sysconfdir=/etc</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&less-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/libc-headers.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/libc-headers.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/libc-headers.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="libc-headers" version="&linux-libc-headers-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&linux-libc-headers-md5;</digest>
+        <archive>&packages_dir;/&linux-libc-headers-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&linux-libc-headers-directory;</base>
+      </stageinfo>
+      <patch base="&build_dir;/&linux-libc-headers-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&linux-libc-headers-random-patch;</param>
+      </patch>
+      <patch base="&build_dir;/&linux-libc-headers-directory;">
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&linux-libc-headers-unistd-patch;</param>
+      </patch>
+      <copy>
+        <option>recursive</option>
+        <source>include/asm-i386</source>
+        <destination>/usr/include/asm</destination>
+      </copy>
+      <copy>
+        <option>recursive</option>
+        <source>include/linux</source>
+        <destination>/usr/include</destination>
+      </copy>
+      <ownership user="root" group="root">
+        <option>recursive</option>
+        <name>/usr/include/asm</name>
+        <name>/usr/include/linux</name>
+      </ownership>
+      <permissions mode="u=rw,o=r,g=r">
+        <option>recursive</option>
+        <name>/usr/include/asm</name>
+        <name>/usr/include/linux</name>
+      </permissions>
+      <permissions mode="a+X">
+        <option>recursive</option>
+        <name>/usr/include/asm</name>
+        <name>/usr/include/linux</name>
+      </permissions>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&linux-libc-headers-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/libtool.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/libtool.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/libtool.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="libtool" version="&libtool-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&libtool-md5;</digest>
+        <archive>&packages_dir;/&libtool-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&libtool-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--disable-static</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&libtool-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/m4.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/m4.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/m4.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="m4" version="&m4-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&m4-md5;</digest>
+        <archive>&packages_dir;/&m4-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&m4-directory;</base>
+      </stageinfo>
+      <execute command="sed" base="&build_dir;/&m4-directory;">
+        <param>-e "s/^\(MDEFINES.*\)CFLAGS='\$(CFLAGS)' /\1/" -i Makefile.in"</param>
+        </execute>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&m4-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&m4-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/make.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/make.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/make.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="make" version="&make-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&make-md5;</digest>
+        <archive>&packages_dir;/&make-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&make-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&make-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&make-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/man-pages.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/man-pages.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/man-pages.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="man-pages" version="&man-pages-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&man-pages-md5;</digest>
+        <archive>&packages_dir;/&man-pages-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&man-pages-directory;</base>
+      </stageinfo>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&man-pages-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/man.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/man.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/man.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="man" version="&man-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&man-md5;</digest>
+        <archive>&packages_dir;/&man-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&man-directory;</base>
+      </stageinfo>
+      <search_replace base="&build_dir;/&man-directory;">
+        <file>configure</file>
+        <find>-is</find>
+        <replace>-isR</replace>
+      </search_replace>
+      <search_replace base="&build_dir;/&man-directory;">
+        <file>src/man.conf.in</file>
+        <find>MANPATH        /usr/man</find>
+        <replace>#MANPATH /usr/man</replace>
+      </search_replace>
+      <execute command="sed -e '1,0s/^/CFLAGS+=-pie -fpie\n&real-amp;/' -i src/Makefile.in" base="&build_dir;/&man-directory;"/>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i man2html/Makefile.in" base="&build_dir;/&man-directory;"/>
+      <configure>
+        <param>-confdir=/etc</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&man-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/mktemp.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/mktemp.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/mktemp.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="mktemp" version="&mktemp-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&mktemp-md5;</digest>
+        <archive>&packages_dir;/&mktemp-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&mktemp-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&mktemp-directory;"/>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&mktemp-tempfile-patch;</param>
+      </patch>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--with-libc</param>
+        <param>--with-random=/dev/erandom</param>
+      </configure>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+      <make>
+        <param>install-tempfile</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&mktemp-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/module-init-tools.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/module-init-tools.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/module-init-tools.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="module-init-tools" version="&module-init-tools-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&module-init-tools-md5;</digest>
+        <archive>&packages_dir;/&module-init-tools-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&module-init-tools-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&module-init-tools-nostatic-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&module-init-tools-directory;"/>
+      <execute command="touch modprobe.conf.5" base="&build_dir;/&module-init-tools-directory;"/>
+      <configure>
+        <param>--prefix=""</param>
+        <param>--enable-zlib</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&module-init-tools-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/ncurses.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/ncurses.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/ncurses.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="ncurses" version="&ncurses-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&ncurses-md5;</digest>
+        <archive>&packages_dir;/&ncurses-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&ncurses-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS\t.*$/&real-amp; -pie -fpie/' -i {progs,tack}/Makefile.in" base="&build_dir;/&ncurses-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--with-shared</param>
+        <param>--without-debug</param>
+        <param>--without-normal</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <permissions mode="755">
+        <name>/usr/lib/*.&ncurses-version;</name>
+      </permissions>
+      <remove>/usr/lib/libncurses++.a</remove>
+      <move>
+        <source>/usr/lib/libncurses.so.5*</source>
+        <destination>/lib</destination>
+      </move>
+      <link>
+        <option>force</option>
+        <target>../../lib/libncurses.so.5</target>
+        <name>/usr/lib/libncurses.so</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>libncurses.so</target>
+        <name>/usr/lib/libcurses.so</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&ncurses-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/patch.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/patch.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/patch.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="patch" version="&patch-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&patch-md5;</digest>
+        <archive>&packages_dir;/&patch-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&patch-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i Makefile.in" base="&build_dir;/&patch-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&patch-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/paxctl.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/paxctl.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/paxctl.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="Paxctl" version="&paxctl-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&paxctl-md5;</digest>
+        <archive>&packages_dir;/&paxctl-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&paxctl-directory;</base>
+      </stageinfo>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <execute command="paxctl -spm /usr/sbin/grub"/>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&paxctl-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/perl.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/perl.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/perl.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="perl" version="&perl-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&perl-md5;</digest>
+        <archive>&packages_dir;/&perl-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&perl-directory;</base>
+      </stageinfo>
+      <configure command="./configure.gnu">
+        <param>--prefix=/usr</param>
+        <param>-Duseshrplib</param>
+        <param>-Dpager="/bin/less -isR"</param>
+        <param>-Doptimize="-02 -fno-stack-protector"</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <textdump>
+        <file>/etc/hosts</file>
+        <content>
+        =127.0.0.1 localhost
+        </content>
+      </textdump>
+      <!--
+      <make>
+        <param>test</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&perl-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/procps.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/procps.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/procps.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="procps" version="&procps-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&procps-md5;</digest>
+        <archive>&packages_dir;/&procps-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&procps-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&procps-cflags-patch;</param>
+      </patch>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&procps-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/psmisc.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/psmisc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/psmisc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="psmisc" version="&psmisc-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&psmisc-md5;</digest>
+        <archive>&packages_dir;/&psmisc-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&psmisc-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&psmisc-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--exec-prefix=""</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <move>
+        <source>/bin/pstree*</source>
+        <destination>/usr/bin</destination>
+      </move>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&psmisc-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/pwdgroup.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/pwdgroup.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/pwdgroup.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Creating the passwd, group, and log Files">
+    <copy>
+      <source>&skeleton_dir;/etc/passwd</source>
+      <source>&skeleton_dir;/etc/group</source>
+      <destination>/etc</destination>
+    </copy>
+    <execute command="touch">
+      <param>/var/run/utmp</param>
+      <param>/var/log/{btmp,lastlog,wtmp}</param>
+    </execute>
+    <ownership base="/var" group="utmp">
+      <name>run/utmp</name>
+      <name>log/lastlog</name>
+    </ownership>
+    <permissions base="/var" mode="664">
+      <name>run/utmp</name>
+      <name>log/lastlog</name>
+    </permissions>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/readjustingtoolchain.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/readjustingtoolchain.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/readjustingtoolchain.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <stage name="Re-adjusting the Toolchain">
+    <stage name="Adjusting the Linker">
+      <stageinfo>
+        <base>&build_dir;/binutils-build</base>
+      </stageinfo>
+      <make>
+        <param>-C ld</param>
+        <param>INSTALL=/tools/bin/install</param>
+        <param>install</param>
+      </make>
+    </stage>
+    <remove>&build_dir;/&binutils-directory;</remove>
+    <remove>&build_dir;/binutils-build</remove>
+    <stage name="Amending the GCC specs File">
+      <search_replace>
+        <file>/tools/lib/gcc/&gcc_target;/&gcc-version;/specs</file>
+        <find>/tools/lib/&glibc-loader;</find>
+        <replace>/lib/&glibc-loader;</replace>
+      </search_replace>
+      <execute command="perl -pi -e 's: /tools${ldso}: ${ldso}:g;' -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/@g;' $(gcc --print-file specs)"/>
+    </stage>
+    <!-- Test basic functions of toolchain with:
+echo 'main(){}' > dummy.c; gcc dummy.c; readelf -l a.out | grep ': /lib';
+Output of last line s/b: [Requesting program interpreter: /lib/ld-linux.so.2]
+If so:
+        rm dummy.c a.out
+Otherwise, STOP HERE & find & fix the problem
+    -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/readline.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/readline.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/readline.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="readline" version="&readline-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&readline-md5;</digest>
+        <archive>&packages_dir;/&readline-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&readline-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&readline-fixes-patch;</param>
+      </patch>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--libdir=/lib</param>
+        <param>--disable-static</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+        <param>SHLIB_XLDFLAGS=-lncurses</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <permissions mode="755">
+        <name>/lib/libreadline.so*</name>
+        <name>/lib/libhistory.so*</name>
+      </permissions>
+      <move>
+        <source>/lib/libreadline.a</source>
+        <source>/lib/libhistory.a</source>
+        <destination>/usr/lib</destination>
+      </move>
+      <remove>/lib/libreadline.so</remove>
+      <remove>/lib/libhistory.so</remove>
+      <link>
+        <option>force</option>
+        <target>../../lib/libreadline.so.5</target>
+        <name>/usr/lib/libreadline.so</name>
+      </link>
+      <link>
+        <option>force</option>
+        <target>../../lib/libhistory.so.5</target>
+        <name>/usr/lib/libhistory.so</name>
+      </link>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&readline-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/sed.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/sed.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/sed.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="sed" version="&sed-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&sed-md5;</digest>
+        <archive>&packages_dir;/&sed-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&sed-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i sed/Makefile.in" base="&build_dir;/&sed-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--bindir=/bin</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&sed-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/shadow.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/shadow.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/shadow.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="shadow" version="&shadow-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&shadow-md5;</digest>
+        <archive>&packages_dir;/&shadow-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&shadow-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile.in" base="&build_dir;/&shadow-directory;"/>
+      <configure>
+        <param>--libdir=/lib</param>
+        <param>--enable-shared</param>
+        <param>--disable-static</param>
+      </configure>
+      <search_replace>
+        <file>src/Makefile</file>
+        <find>groups$(EXEEXT)</find>
+        <replace></replace>
+      </search_replace>
+      <!--
+      Note: the next step uses sed, because the matching
+      lines need to be removed from the file.
+      -->
+      <execute command="sed">
+        <param>-i</param>
+        <param>-e '/groups/d'</param>
+        <param>man/Makefile</param>
+      </execute>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>etc/limits</source>
+        <source>etc/login.access</source>
+        <destination>/etc</destination>
+      </copy>
+      <copy>
+        <source>etc/login.defs.linux</source>
+        <destination>/etc/login.defs</destination>
+      </copy>
+      <search_replace>
+        <file>/etc/login.defs</file>
+        <find>/var/spool/mail</find>
+        <replace>/var/mail</replace>
+      </search_replace>
+      <search_replace>
+        <file>/etc/login.defs</file>
+        <find>#MD5_CRYPT_ENAB no</find>
+        <replace>MD5_CRYPT_ENAB yes</replace>
+      </search_replace>
+      <move>
+        <source>/usr/bin/passwd</source>
+        <destination>/bin</destination>
+      </move>
+      <move>
+        <source>/lib/libshadow.*a</source>
+        <destination>/usr/lib</destination>
+      </move>
+      <remove>/lib/libshadow.so</remove>
+      <link>
+        <option>force</option>
+        <target>../../lib/libshadow.so.0</target>
+        <name>/usr/lib/libshadow.so</name>
+      </link>
+      <mkdir>
+        <name>/etc/default</name>
+      </mkdir>
+    </stage>
+    <stage name="Configuring">
+      <execute command="pwconv" />
+      <execute command="grpconv" />
+      <execute command="echo">
+        <param>root:&password;</param>
+        <param>| chpasswd</param>
+      </execute>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&shadow-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/strip.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/strip.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/strip.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+<!--
+ ************************
+ * OPTIONAL BUT USEFUL  *
+ ************************
+
+ * remove the space in between the - -strip command to make the strip work
+-->
+  <stage name="Stripping debug symbols">
+    <!--
+    <execute command="/tools/bin/find">
+      <param>/{,usr/,usr/local/}{bin,lib,sbin}</param>
+      <param>-type f</param>
+      <param>-exec /tools/bin/strip - -strip-debug '{}' ';'</param>
+    </execute>
+    -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/sysklogd.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/sysklogd.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/sysklogd.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="sysklogd" version="&sysklogd-version;">
+    <stage name="Unpacking.">
+      <unpack>
+        <digest>&sysklogd-md5;</digest>
+        <archive>&packages_dir;/&sysklogd-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing.">
+      <stageinfo>
+        <base>&build_dir;/&sysklogd-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&sysklogd-fixes-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS.*$/&real-amp; -pie -fpie/' -i Makefile" base="&build_dir;/&sysklogd-directory;"/>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>&skeleton_dir;/etc/syslog.conf</source>
+        <destination>/etc/syslog.conf</destination>
+      </copy>
+      <execute command="chmod 644 /etc/syslog.conf"/>
+    </stage>
+    <stage name="Cleaning up.">
+      <remove>&build_dir;/&sysklogd-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/sysvinit.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/sysvinit.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/sysvinit.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="sysvinit" version="&sysvinit-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&sysvinit-md5;</digest>
+        <archive>&packages_dir;/&sysvinit-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&sysvinit-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/libcrypt.a/libcrypt.so/' -i src/Makefile" base="&build_dir;/&sysvinit-directory;"/>
+      <search_replace>
+        <file>src/init.c</file>
+        <find>Sending processes</find>
+        <replace>Sending processes started by init</replace>
+      </search_replace>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/Makefile" base="&build_dir;/&sysvinit-directory;"/>
+      <make>
+        <param>&jlevel;</param>
+        <param>-C src</param>
+      </make>
+      <make>
+        <param>-C src</param>
+        <param>install</param>
+      </make>
+      <copy>
+        <source>&skeleton_dir;/etc/inittab</source>
+        <destination>/etc</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&sysvinit-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/tar.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/tar.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/tar.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="tar" version="&tar-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&tar-md5;</digest>
+        <archive>&packages_dir;/&tar-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&tar-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&tar-sparse-fix-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {rmt,src}/Makefile.in" base="&build_dir;/&tar-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--bindir=/bin</param>
+        <param>--libexecdir=/usr/sbin</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&tar-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/texinfo.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/texinfo.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/texinfo.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="texinfo" version="&texinfo-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&texinfo-md5;</digest>
+        <archive>&packages_dir;/&texinfo-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&texinfo-directory;</base>
+      </stageinfo>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i {info,makeinfo,util}/Makefile.in" base="&build_dir;/&texinfo-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>check</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <make>
+        <param>TEXMF=/usr/share/texmf</param>
+        <param>install-tex</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&texinfo-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/udev.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/udev.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/udev.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="udev" version="&udev-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&udev-md5;</digest>
+        <archive>&packages_dir;/&udev-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&udev-directory;</base>
+      </stageinfo>
+      <make>
+        <param>&jlevel;</param>
+        <param>udevdir=/dev</param>
+      </make>
+      <!--
+      <make>
+              <param>test</param>
+      </make>
+      -->
+      <make>
+        <param>udevdir=/dev</param>
+        <param>install</param>
+      </make>
+      <copy base="&packages_dir;">
+        <option>force</option>
+        <source>&udev-rules-file;</source>
+        <destination>/etc/udev/rules.d/25-lfs.rules</destination>
+      </copy>
+      <execute command="groupadd -g 7 floppy"/>
+      <execute command="groupadd -g 9 lp"/>
+      <!-- added audio daemon disk video and usb -->
+      <execute command="groupadd -g 10 daemon"/>
+      <execute command="groupadd -g 8 disk"/>
+      <execute command="groupadd -g 11 audio"/>
+      <execute command="groupadd -g 12 video"/>
+      <execute command="groupadd -g 13 usb"/>
+      <execute command="/sbin/udevstart" />
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&udev-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/util-linux.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/util-linux.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/util-linux.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="util-linux" version="&util-linux-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&util-linux-md5;</digest>
+        <archive>&packages_dir;/&util-linux-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&util-linux-directory;</base>
+      </stageinfo>
+      <search_replace>
+        <file>hwclock/hwclock.c</file>
+        <find>etc/adjtime</find>
+        <replace>var/lib/hwclock/adjtime</replace>
+      </search_replace>
+      <mkdir>
+        <option>parents</option>
+        <name>/var/lib/hwclock</name>
+      </mkdir>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&util-linux-pic-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&util-linux-cramfs-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&util-linux-nologin-patch;</param>
+      </patch>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&util-linux-cflags-patch;</param>
+      </patch>
+      <configure />
+      <make>
+        <param>&jlevel;</param>
+        <param>HAVE_KILL=yes</param>
+        <param>HAVE_SLN=yes</param>
+      </make>
+      <make>
+        <param>HAVE_KILL=yes</param>
+        <param>HAVE_SLN=yes</param>
+        <param>install</param>
+      </make>
+      <move>
+        <source>/usr/bin/logger</source>
+        <destination>/bin</destination>
+      </move>
+      <execute command="echo">
+	<param>"This account is not available." > /etc/nologin.txt"</param>
+	</execute>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&util-linux-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/vim.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/vim.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/vim.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="vim" version="&vim-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&vim-md5;</digest>
+        <archive>&packages_dir;/&vim-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+      <unpack>
+        <digest>&vim-lang-md5;</digest>
+        <archive>&packages_dir;/&vim-lang-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&vim-directory;</base>
+      </stageinfo>
+      <textdump mode="append">
+        <file>src/feature.h</file>
+        <content>
+        =#define SYS_VIMRC_FILE "/etc/vimrc"
+        =#define SYS_GVIMRC_FILE "/etc/gvimrc"
+        </content>
+      </textdump>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&vim-security-patch;</param>
+      </patch>
+      <execute command="sed -e 's/^CFLAGS .*$/&real-amp; -pie -fpie/' -i src/config.mk.in" base="&build_dir;/&vim-directory;"/>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--enable-multibyte</param>
+      </configure>
+      <make>
+        <param>&jlevel;</param>
+      </make>
+      <!--
+      <make>
+        <param>test</param>
+      </make>
+      -->
+      <make>
+        <param>install</param>
+      </make>
+      <link>
+        <option>force</option>
+        <target>vim</target>
+        <name>/usr/bin/vi</name>
+      </link>
+      <copy>
+        <source>&skeleton_dir;/etc/vimrc</source>
+        <destination>/etc</destination>
+      </copy>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&vim-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter06/zlib.xml
===================================================================
--- profiles/HLFS/trunk/chapter06/zlib.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter06/zlib.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="zlib" version="&zlib-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&zlib-md5;</digest>
+        <archive>&packages_dir;/&zlib-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+        <base>&build_dir;/&zlib-directory;</base>
+      </stageinfo>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&zlib-security-fix-patch;</param>
+      </patch>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&zlib-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+        <param>--shared</param>
+        <param>--libdir=/lib</param>
+      </configure>
+      <make />
+      <make>
+        <param>check</param>
+      </make>
+      <make>
+        <param>install</param>
+      </make>
+      <remove>/lib/libz.so</remove>
+      <link>
+        <option>force</option>
+        <target>../../lib/libz.so.&zlib-version;</target>
+        <name>/usr/lib/libz.so</name>
+      </link>
+      <permissions mode="644">
+        <name>/usr/lib/libz.a</name>
+      </permissions>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&zlib-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/bootscripts.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/bootscripts.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/bootscripts.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="bootscripts" version="&lfs-bootscripts-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&lfs-bootscripts-md5;</digest>
+        <archive>&packages_dir;/&lfs-bootscripts-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&lfs-bootscripts-directory;</base>
+      </stageinfo>
+      <make>
+        <param>install</param>
+      </make>
+      <patch>
+        <param>-N</param>
+        <param>-p1</param>
+        <param>-i &packages_dir;/&blfs-bootscripts-patch;</param>
+      </patch>
+      <make>
+        <param>install-random</param>
+      </make>
+      <execute command="/etc/rc.d/init.d/random start"/>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&lfs-bootscripts-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/hostname.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/hostname.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/hostname.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Configuring the localnet Script">
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/network</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/hosts.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/hosts.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/hosts.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Creating the /etc/hosts File">
+    <copy>
+      <source>&skeleton_dir;/etc/hosts</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/inputrc.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/inputrc.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/inputrc.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Creating the /etc/inputrc File">
+    <copy>
+      <source>&skeleton_dir;/etc/inputrc</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/network.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/network.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/network.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Configuring the network Script">
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/sysconfig/network-devices/ifconfig.eth0</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/network-devices/ifconfig.eth0/ipv4</source>
+      <destination>/etc/sysconfig/network-devices/ifconfig.eth0</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/etc/resolv.conf</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/profile.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/profile.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/profile.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="The Bash Shell Startup Files">
+    <copy>
+      <source>&skeleton_dir;/etc/profile</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter07/setclock.xml
===================================================================
--- profiles/HLFS/trunk/chapter07/setclock.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter07/setclock.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Configuring the setclock Script">
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/clock</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter08/fstab.xml
===================================================================
--- profiles/HLFS/trunk/chapter08/fstab.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter08/fstab.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Creating the /etc/fstab File">
+    <copy>
+      <source>&skeleton_dir;/etc/fstab</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter08/grub.xml
===================================================================
--- profiles/HLFS/trunk/chapter08/grub.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter08/grub.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <stage name="Making the LFS System Bootable">
+    <!-- Uncomment the following if you wish to allow grub to install itself automatically.-->
+    <!-- If uncommenting remove the space between the two dashes (- -) in order for the
+     command to work properly -->
+    <!--<execute command="grub - -batch">
+      <prefix>echo -e "root (&grub-root;)\nsetup (&grub-install-location;)\nquit" | </prefix>
+      <param>1>/dev/null</param>
+      <param>2>/dev/null</param>
+    </execute>-->
+    <copy>
+      <source>&skeleton_dir;/boot/grub/menu.lst</source>
+      <destination>/boot/grub</destination>
+    </copy>
+    <mkdir>
+      <name>/etc/grub</name>
+    </mkdir>
+    <link>
+      <option>force</option>
+      <target>/boot/grub/menu.lst</target>
+      <name>/etc/grub</name>
+    </link>
+    <search_replace>
+      <file>/boot/grub/menu.lst</file>
+      <find>[LFS-version]</find>
+      <replace>&LFS-version;</replace>
+    </search_replace>
+    <search_replace>
+      <file>/boot/grub/menu.lst</file>
+      <find>[linux-version]</find>
+      <replace>&linux-version;</replace>
+    </search_replace>
+    <search_replace>
+      <file>/boot/grub/menu.lst</file>
+      <find>[grub-root]</find>
+      <replace>&grub-root;</replace>
+    </search_replace>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/chapter08/kernel.xml
===================================================================
--- profiles/HLFS/trunk/chapter08/kernel.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter08/kernel.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs xmlns:xi="http://www.w3.org/2001/XInclude">
+  <package name="linux" version="&linux-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&linux-md5;</digest>
+        <archive>&packages_dir;/&linux-package;</archive>
+        <destination>&linux-src-location;</destination>
+      </unpack>
+      <ownership user="0" group="0">
+        <option>recursive</option>
+        <name>&linux-src-location;/&linux-directory;</name>
+      </ownership>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&linux-src-location;/&linux-directory;</base>
+      </stageinfo>
+      <make>
+        <param>mrproper</param>
+      </make>
+      <copy>
+        <source>&skeleton_dir;/linux-kernel-config</source>
+        <destination>.config</destination>
+      </copy>
+      <xi:include href="../config/keymap-ch8.xml" />
+      <make>
+        <prefix>yes "" |</prefix>
+        <param>oldconfig</param>
+      </make>
+      <make />
+      <make>
+        <param>modules_install</param>
+      </make>
+      <copy>
+        <source>arch/i386/boot/bzImage</source>
+        <destination>/boot/lfskernel-&linux-version;</destination>
+      </copy>
+      <copy>
+        <source>System.map</source>
+        <destination>/boot/System.map-&linux-version;</destination>
+      </copy>
+      <copy>
+        <source>.config</source>
+        <destination>/boot/config-lfskernel-&linux-version;</destination>
+      </copy>
+      <copy>
+        <source>&skeleton_dir;/etc/modprobe.conf</source>
+        <destination>/etc</destination>
+      </copy>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter09/libxml2.xml
===================================================================
--- profiles/HLFS/trunk/chapter09/libxml2.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter09/libxml2.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="libxml2" version="&libxml2-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&libxml2-md5;</digest>
+        <archive>&packages_dir;/&libxml2-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&libxml2-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&libxml2-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter09/nALFS.xml
===================================================================
--- profiles/HLFS/trunk/chapter09/nALFS.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter09/nALFS.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <package name="nALFS" version="&nALFS-version;">
+    <stage name="Unpacking.">
+      <unpack>
+        <digest>&nALFS-md5;</digest>
+        <archive>&packages_dir;/&nALFS-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing.">
+      <stageinfo>
+        <base>&build_dir;/&nALFS-directory;</base>
+      </stageinfo>
+      <configure>
+        <param>--prefix=/usr</param>
+      </configure>
+      <make />
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleaning up.">
+      <remove>&build_dir;/&nALFS-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Added: profiles/HLFS/trunk/chapter09/optional-prep.xml
===================================================================
--- profiles/HLFS/trunk/chapter09/optional-prep.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/chapter09/optional-prep.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+
+%general_entities;
+%package_entities;
+]>
+<alfs>
+  <stage name="Copying Sources">
+    <stageinfo>
+      <base>&orig_packages_dir;</base>
+    </stageinfo>
+    <copy>
+      <source>&libxml2-package;</source>
+      <source>&nALFS-package;</source>
+      <destination>&LFS;&packages_dir;</destination>
+    </copy>
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/checkit.sh
===================================================================
--- profiles/HLFS/trunk/checkit.sh	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/checkit.sh	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+xmllint --noent --nonet --noout --xinclude --postvalid LFS.xml

Added: profiles/HLFS/trunk/config/console.xml
===================================================================
--- profiles/HLFS/trunk/config/console.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/console.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Configuring the Linux Console">
+    <!--
+      The console script uses the /etc/sysconfig/console as a configuration file. You need to decide which keymap
+      and screen font you will use. The language-specific HOWTO can help you. In the future releases of
+      LFS-Bootscripts, there will be a pre-made /etc/sysconfig/console file with known good settings for several
+      countries, and you will just have to uncomment the relevant section. If still in doubt, look into /usr/share/kbd
+      for valid keymaps and screen fonts. Then read the loadkeys and setfont manual pages and figure out the correct
+      arguments for these programs. Once you decided, create the configuration file with the following commands
+    -->
+    <!--
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/sysconfig</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/console</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+    -->
+    <!--
+      In some keymaps, the Backspace and Delete keys send characters different from ones in the default keymap
+      built into the kernel. This confuses some applications, e.g. Emacs displays its help (instead of erasing the
+      character before the cursor) when you press Backspace. To check if your keymap is affected (this works only for
+      i386 keymaps)
+    -->
+    <!--
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/kbd</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/kbd/bs-sends-del</source>
+      <destination>/etc/kbd</destination>
+    </copy>
+    <textdump mode="append">
+      <file>/etc/sysconfig/console</file>
+      <content>
+      =KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
+      </content>
+    </textdump>
+    -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/config/general.ent
===================================================================
--- profiles/HLFS/trunk/config/general.ent	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/general.ent	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,128 @@
+<!--
+     This file contains various entities that must be customized
+     for the build to work on your machine.
+
+     For the build to be successfull, you should :
+     - run nALFS as root
+     - check that your umask is 022
+
+     -->
+
+<!-- Directory in which LFS system will be installed.
+     The build process try to mkdir -p it if it doen't exist.
+     If you want to build LFS in its own partition (which
+     is normally the case), you should create the directory
+     and mount the  partition before running nALFS.
+     -->
+<!ENTITY LFS "/mnt/lfs">
+
+<!-- Location of your LFS packages.
+     This is the directory in which all the packages downloaded
+     from ftp.linuxfromscratch.org (or their original servers)
+     are before running the script. The content of this directory
+     will be copied in a subdirectory of &LFS; at the beginning of
+     the build.
+     IMPORTANT : be carefull about the original packages dir; if you
+                 enter the wrong directory, nALFS will try to download
+                 all the packages in it !!!
+     -->
+<!ENTITY orig_packages_dir "/HLFS/packages/">
+
+<!-- Timezone file
+     This entity will be used as the target of the link
+     /etc/localtime
+     -->
+<!ENTITY localtime "/usr/share/zoneinfo/America/Denver">
+
+<!-- Keymap file.
+     This entity will be used as the target of the link
+     /usr/share/kbd/keymaps/defkeymap.map.gz
+     -->
+<!ENTITY keymap "i386/qwerty/us.map.gz">
+
+<!-- Temporary user name used for installing Chapter 5.
+     This is a user in the host distribution. It will not
+     be deleted at the end of the build.
+     If the user does not exist it will be created.
+     -->
+<!ENTITY lfs-user "lfs">
+
+<!-- Password of the temporary user name &lfs;
+     You should change this value and keep the present file
+     secure this value has been changed or, better,
+     create yourself the user in the host distribution,
+     and give it a password.
+     If the user exists already, its password will not be changed.
+     -->
+<!ENTITY lfs-password "lfs">
+
+<!-- Temporary user's home directory. -->
+<!ENTITY lfs-user-dir "/home/&lfs-user;">
+
+<!-- Root password.
+     This is the password of root in the new LFS distribution.
+     Of course, you should change it as soon as you log into
+     your new LFS.
+     -->
+<!ENTITY password "changeme">
+
+<!-- LFS book version -->
+<!ENTITY LFS-version "SVN-20050723">
+
+<!-- THE FOLLOWING THREE ENTITY DECLARATIONS SHOULDN'T BE MODIFIED
+     UNLESS YOU KNOW WHAT YOU ARE DOING
+-->
+
+<!-- Directory (inside LFS) where all packages will be copied. -->
+<!ENTITY packages_dir "/tools/packages-&LFS-version;">
+
+<!-- Directory (inside LFS) where all packages will be compiled. -->
+<!ENTITY build_dir "/tools/build">
+
+<!-- Directory (inside LFS) where all skeleton config files will be copied. -->
+<!ENTITY skeleton_dir "/tools/skeleton-&LFS-version;">
+
+<!-- gcc optimizations flags (overridden in packages known
+     to behave badly with optimizations)
+     see http://www.linuxfromscratch.org/hints/downloads/files/optimization.txt
+     for more info
+     IF YOU DON'T KNOW WHAT THIS IS FOR, DON'T CHANGE IT
+-->
+<!ENTITY gcc_optimizations "">
+
+<!-- parallel build level (make flag -j). Default is unset. For faster build
+     times, you might try setting this flag to 2-3 times the number of
+     processors in your machine. So, for example, a single processor machine,
+     you might set this entity to "-j3"
+-->
+<!ENTITY jlevel "-j6">
+
+<!-- gcc target triplet (used for adjusting the toolchain) -->
+<!ENTITY gcc_target "i686-pc-linux-gnu">
+
+<!-- grub settings (these need to be in grub's notation) -->
+<!ENTITY grub-root "hd0,0">
+<!ENTITY grub-install-location "hd0">
+
+<!-- dynamic linker in the gcc specs file that your system uses,
+        e.g.
+                x86 = ld-linux.so.2
+                powerpc = ld.so.1
+-->
+<!ENTITY glibc-loader "ld-linux.so.2">
+
+<!-- terminal type for your host system (found in the TERM
+     environment variable
+-->
+
+<!ENTITY TERM "linux">
+
+<!--  Groff expects the environment variable PAGE to contain the default
+        paper size.
+      For those in the United States, this would be 'letter'.
+      If you live elsewhere, it could also be 'A4'.
+      -->
+
+<!ENTITY paper_size "letter">
+
+<!ENTITY real-amp "&#38;">

Added: profiles/HLFS/trunk/config/keymap-ch6.xml
===================================================================
--- profiles/HLFS/trunk/config/keymap-ch6.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/keymap-ch6.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <!-- Uncomment the following section if you use a non-US keyboard
+ and set the keymap entity in the general.ent also contained in this
+ directory to the proper keymap file for your keyboard -->
+ <stage name="Set default console keyboard mapping">
+  <!--
+        <link>
+                <option>force</option>
+                <target>&keymap;</target>
+                <name>/usr/share/kbd/keymaps/defkeymap.map.gz</name>
+        </link>
+  -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/config/keymap-ch8.xml
===================================================================
--- profiles/HLFS/trunk/config/keymap-ch8.xml	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/keymap-ch8.xml	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[]>
+<alfs>
+  <!-- uncomment the following section if you wish to have your default keymap
+compiled into the kernel -->
+  <stage name="Include default keyboard mapping into kernel">
+  <!--
+        <execute command="loadkeys">
+                <param>-m</param>
+                <param>/usr/share/kbd/keymaps/defkeymap.map.gz</param>
+                <param> > drivers/char/defkeymap.c</param>
+        </execute>
+  -->
+  </stage>
+</alfs>

Added: profiles/HLFS/trunk/config/package.ent
===================================================================
--- profiles/HLFS/trunk/config/package.ent	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/package.ent	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,388 @@
+<!ENTITY autoconf-md5 "1ee40f7a676b3cfdc0e3f7cd81551b5f">
+<!ENTITY autoconf-version "2.59">
+<!ENTITY autoconf-package "autoconf-&autoconf-version;.tar.bz2">
+<!ENTITY autoconf-directory "autoconf-&autoconf-version;">
+
+<!ENTITY automake-md5 "c11b8100bb311492d8220378fd8bf9e0">
+<!ENTITY automake-version "1.9.6">
+<!ENTITY automake-package "automake-&automake-version;.tar.bz2">
+<!ENTITY automake-directory "automake-&automake-version;">
+
+<!ENTITY bash-md5 "f13fcb7a10dbb1e3d0050710fb198d83">
+<!ENTITY bash-version "3.0">
+<!ENTITY bash-package "bash-&bash-version;.tar.bz2">
+<!ENTITY bash-directory "bash-&bash-version;">
+
+<!ENTITY bash-fixes-patch "bash-&bash-version;-fixes-3.patch">
+<!ENTITY bash-wcontinued-patch "bash-&bash-version;-avoid_WCONTINUED-1.patch">
+
+<!ENTITY binutils-md5 "6a9d529efb285071dad10e1f3d2b2967">
+<!ENTITY binutils-version "2.16.1">
+<!ENTITY binutils-package "binutils-&binutils-version;.tar.bz2">
+<!ENTITY binutils-directory "binutils-&binutils-version;">
+
+<!ENTITY binutils-patch "binutils-&binutils-version;-pt_pax-1.patch">
+
+<!ENTITY bison-md5 "874cb7d2ca43df7aa575e728335cf19a">
+<!ENTITY bison-version "2.0">
+<!ENTITY bison-package "bison-&bison-version;.tar.bz2">
+<!ENTITY bison-directory "bison-&bison-version;">
+
+<!ENTITY blfs-bootscripts-md5 "ff0fd9620ce0c349280c7fd70ec28f08">
+<!ENTITY blfs-bootscripts-version "20050709">
+<!ENTITY blfs-bootscripts-package "blfs-bootscripts-&blfs-bootscripts-version;.tar.bz2">
+<!ENTITY blfs-bootscripts-directory "blfs-bootscripts-&blfs-bootscripts-version;">
+
+<!ENTITY blfs-bootscripts-patch "blfs-bootscripts-20050709-hlfs-1.patch">
+
+<!ENTITY bzip2-md5 "daa86e5a449a60d1017938bef1d4bb9f">
+<!ENTITY bzip2-version "1.0.3">
+<!ENTITY bzip2-package "bzip2-&bzip2-version;.tar.bz2">
+<!ENTITY bzip2-directory "bzip2-&bzip2-version;">
+
+<!ENTITY bzip2-patch "bzip2-&bzip2-version;-hardened_cflags-1.patch">
+
+<!ENTITY coreutils-md5 "172ee3c315af93d3385ddfbeb843c53f">
+<!ENTITY coreutils-version "5.2.1">
+<!ENTITY coreutils-package "coreutils-&coreutils-version;.tar.bz2">
+<!ENTITY coreutils-directory "coreutils-&coreutils-version;">
+
+<!ENTITY coreutils-dupes-patch "coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch">
+<!ENTITY coreutils-uname-patch "coreutils-&coreutils-version;-uname-3.patch">
+
+<!ENTITY dejagnu-md5 "bf259ac32622eda29ea157ef5751ed76">
+<!ENTITY dejagnu-version "1.4.4">
+<!ENTITY dejagnu-package "dejagnu-&dejagnu-version;.tar.bz2">
+<!ENTITY dejagnu-directory "dejagnu-&dejagnu-version;">
+
+<!ENTITY diffutils-md5 "27ce98d689599f41639ab5c383b17e32">
+<!ENTITY diffutils-version "2.8.1">
+<!ENTITY diffutils-package "diffutils-&diffutils-version;.tar.bz2">
+<!ENTITY diffutils-directory "diffutils-&diffutils-version;">
+
+<!ENTITY e2fsprogs-md5 "21de89f12c85528b5e04a63edef6422d">
+<!ENTITY e2fsprogs-version "1.38">
+<!ENTITY e2fsprogs-package "e2fsprogs-&e2fsprogs-version;.tar.bz2">
+<!ENTITY e2fsprogs-directory "e2fsprogs-&e2fsprogs-version;">
+
+<!ENTITY expect-md5 "e6aaab98967f6410099b40f2b3ddebb4">
+<!ENTITY expect-version "5.43.0">
+<!ENTITY expect-package "expect-&expect-version;.tar.bz2">
+<!ENTITY expect-directory "expect-5.43">
+
+<!ENTITY expect-spawn-patch "expect-&expect-version;-spawn-1.patch">
+
+<!ENTITY file-md5 "1bdd1b8af29f6f30eb6c80eb13165ef2">
+<!ENTITY file-version "4.14">
+<!ENTITY file-package "file-&file-version;.tar.bz2">
+<!ENTITY file-directory "file-&file-version;">
+
+<!ENTITY findutils-md5 "e455be17179976af5f292251e911f213">
+<!ENTITY findutils-version "4.2.23">
+<!ENTITY findutils-package "findutils-&findutils-version;.tar.bz2">
+<!ENTITY findutils-directory "findutils-&findutils-version;">
+
+<!ENTITY flex-md5 "363dcc4afc917dc51306eb9d3de0152f">
+<!ENTITY flex-version "2.5.31">
+<!ENTITY flex-package "flex-&flex-version;.tar.bz2">
+<!ENTITY flex-directory "flex-&flex-version;">
+
+<!ENTITY flex-debian-fixes-patch "flex-&flex-version;-debian_fixes-3.patch">
+<!ENTITY flex-cflags-fixes-patch "flex-&flex-version;-hardened_cflags-1.patch">
+
+<!ENTITY gawk-md5 "b8b532beaf02350e69d2d5dc98cb1e37">
+<!ENTITY gawk-version "3.1.4">
+<!ENTITY gawk-package "gawk-&gawk-version;.tar.bz2">
+<!ENTITY gawk-directory "gawk-&gawk-version;">
+
+<!ENTITY gcc-version "3.4.4">
+<!ENTITY gcc-cvs-tag "">
+<!ENTITY gcc-directory "gcc-&gcc-version;&gcc-cvs-tag;">
+
+<!ENTITY gcc-md5 "b594ff4ea4fbef4ba9220887de713dfe ">
+<!ENTITY gcc-package "gcc-&gcc-version;&gcc-cvs-tag;.tar.bz2">
+
+<!ENTITY gcc-core-md5 "d2cbfe8fc3205c1d7969b26377405778">
+<!ENTITY gcc-core-package "gcc-core-&gcc-version;&gcc-cvs-tag;.tar.bz2">
+
+<!ENTITY gcc-gpp-md5 "26cb84db92feb8e03bb7bf3bc264844f">
+<!ENTITY gcc-gpp-package "gcc-g++-&gcc-version;&gcc-cvs-tag;.tar.bz2">
+
+<!ENTITY gcc-testsuite-md5 "b4fff6ce0a038021b9e507917abb9a07">
+<!ENTITY gcc-testsuite-package "gcc-testsuite-&gcc-version;&gcc-cvs-tag;.tar.bz2">
+
+<!ENTITY gcc-hardened-cflags-patch "gcc-&gcc-version;-hardened_cflags-1.patch">
+<!ENTITY gcc-linkonce-patch "gcc-&gcc-version;-linkonce-1.patch">
+<!ENTITY gcc-no-fixincludes-patch "gcc-&gcc-version;-no_fixincludes-1.patch">
+<!ENTITY gcc-specs-patch "gcc-&gcc-version;-specs_x86-1.patch">
+<!ENTITY gcc-ssp-patch "gcc-&gcc-version;-ssp-1.patch">
+
+<!ENTITY gettext-md5 "0d1b95a392a326e55766ca01756132b5">
+<!ENTITY gettext-version "0.14.5">
+<!ENTITY gettext-package "gettext-&gettext-version;.tar.bz2">
+<!ENTITY gettext-directory "gettext-&gettext-version;">
+
+<!ENTITY glibc-md5 "93d9c51850e0513aa4846ac0ddcef639">
+<!ENTITY glibc-version "2.3.5">
+<!ENTITY glibc-cvs-tag "">
+<!ENTITY glibc-package "glibc-&glibc-version;&glibc-cvs-tag;.tar.bz2">
+<!ENTITY glibc-directory "glibc-&glibc-version;&glibc-cvs-tag;">
+
+<!ENTITY glibc-linuxthreads-md5 "77011b0898393c56b799bc011a0f37bf">
+<!ENTITY glibc-linuxthreads-package "glibc-linuxthreads-&glibc-version;&glibc-cvs-tag;.tar.bz2">
+
+<!ENTITY glibc-libidn-md5 "86ae1273e22af8766297ec21c0232743">
+<!ENTITY glibc-libidn-package "glibc-libidn-&glibc-version;.tar.bz2">
+
+<!ENTITY glibc-fix-testsuite-patch "glibc-&glibc-version;&glibc-cvs-tag;-fix_test-1.patch">
+<!ENTITY glibc-arc4random-patch "glibc-&glibc-version;&glibc-cvs-tag;-arc4random-1.patch">
+<!ENTITY glibc-dl_execstack-patch "glibc-&glibc-version;&glibc-cvs-tag;-dl_execstack_PaX-1.patch">
+<!ENTITY glibc-stack_protector-patch "glibc-&glibc-version;&glibc-cvs-tag;-fstack_protector-1.patch">
+<!ENTITY glibc-pax-patch "glibc-&glibc-version;&glibc-cvs-tag;-pt_pax-1.patch">
+<!ENTITY glibc-ssp-patch "glibc-&glibc-version;&glibc-cvs-tag;-ssp-1.patch">
+
+<!ENTITY grep-md5 "52202fe462770fa6be1bb667bd6cf30c">
+<!ENTITY grep-version "2.5.1a">
+<!ENTITY grep-package "grep-&grep-version;.tar.bz2">
+<!ENTITY grep-directory "grep-&grep-version;">
+
+<!ENTITY groff-md5 "88239a9aa668235ac82c34bcdfc4e83a">
+<!ENTITY groff-version "1.19.1">
+<!ENTITY groff-package "groff-&groff-version;.tar.bz2">
+<!ENTITY groff-directory "groff-&groff-version;">
+
+<!ENTITY gr-security-patch "grsecurity-2.1.6-2.6.11.12-200506141713.patch"> 
+<!--  (gunzip it to *where does it go) -->
+
+<!ENTITY grub-md5 "f26de8d3bc501741736f9731f6ec0814">
+<!ENTITY grub-version "0.97">
+<!ENTITY grub-package "grub-&grub-version;.tar.bz2">
+<!ENTITY grub-directory "grub-&grub-version;">
+
+<!ENTITY gzip-md5 "d303f3530ad9b70022ff6fd58e5250f8">
+<!ENTITY gzip-version "1.3.5">
+<!ENTITY gzip-package "gzip-&gzip-version;.tar.bz2">
+<!ENTITY gzip-directory "gzip-&gzip-version;">
+
+<!ENTITY gzip-security-fixes-patch "gzip-&gzip-version;-security_fixes-1.patch">
+
+<!ENTITY hotplug-md5 "58e6995f9df71ce59b0ec2787019e5fe">
+<!ENTITY hotplug-version "2004_09_23">
+<!ENTITY hotplug-package "hotplug-&hotplug-version;.tar.bz2">
+<!ENTITY hotplug-directory "hotplug-&hotplug-version;">
+
+<!ENTITY iana-etc-md5 "8a5a44020759895c7565b32996eab29b">
+<!ENTITY iana-etc-version "1.10">
+<!ENTITY iana-etc-package "iana-etc-&iana-etc-version;.tar.bz2">
+<!ENTITY iana-etc-directory "iana-etc-&iana-etc-version;">
+
+<!ENTITY inetutils-md5 "3ab421642bd6f5284a6ccf4811ad2c51">
+<!ENTITY inetutils-version "1.4.2">
+<!ENTITY inetutils-package "inetutils-&inetutils-version;.tar.bz2">
+<!ENTITY inetutils-directory "inetutils-&inetutils-version;">
+
+<!ENTITY inetutils-no-man-pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch">
+<!ENTITY inetutils-kernel-headers-patch "inetutils-&inetutils-version;-kernel_headers-1.patch">
+
+<!ENTITY iproute2-md5 "ddae14f8390dd2ccd4c354f5355463ef">
+<!ENTITY iproute2-version "2.6.11">
+<!ENTITY iproute2-cvs-ver "050314">
+<!ENTITY iproute2-package "iproute2-&iproute2-version;-&iproute2-cvs-ver;.tar.bz2">
+<!ENTITY iproute2-directory "iproute2-&iproute2-version;">
+
+<!ENTITY kbd-md5 "069d1175b4891343b107a8ac2b4a39f6">
+<!ENTITY kbd-version "1.12">
+<!ENTITY kbd-package "kbd-&kbd-version;.tar.bz2">
+<!ENTITY kbd-directory "kbd-&kbd-version;">
+
+<!ENTITY less-md5 "421405afdaae0ad7be15449564aa4f62">
+<!ENTITY less-version "382">
+<!ENTITY less-package "less-&less-version;.tar.bz2">
+<!ENTITY less-directory "less-&less-version;">
+
+<!ENTITY lfs-bootscripts-md5 "72313b82210735d7fd22083843eee90a">
+<!ENTITY lfs-bootscripts-version "3.2.1">
+<!ENTITY lfs-bootscripts-package "lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
+<!ENTITY lfs-bootscripts-directory "lfs-bootscripts-&lfs-bootscripts-version;">
+
+<!ENTITY libtool-md5 "703d55f1778a18f0b3840c2af323f0d8">
+<!ENTITY libtool-version "1.5.18">
+<!ENTITY libtool-package "libtool-&libtool-version;.tar.bz2">
+<!ENTITY libtool-directory "libtool-&libtool-version;">
+
+<!ENTITY libxml2-md5 "2d53bba9a4768ec57d8bf2bdadb75c87">
+<!ENTITY libxml2-version "2.6.17">
+<!ENTITY libxml2-package "libxml2-&libxml2-version;.tar.bz2">
+<!ENTITY libxml2-directory "libxml2-&libxml2-version;">
+
+<!ENTITY linux-md5 "7e3b6e630bb05c1a8c1ba46e010dbe44">
+<!ENTITY linux-version "2.6.11.12">
+<!ENTITY linux-package "linux-&linux-version;.tar.bz2">
+<!ENTITY linux-directory "linux-&linux-version;">
+<!ENTITY linux-src-location "/usr/src">
+
+<!ENTITY linux-frandom-patch "linux-2.6.11.12-pseudo_random-1.patch">
+<!ENTITY linux-grsec-patch "grsecurity-2.1.6-2.6.11.12-200506141713.patch">
+
+<!ENTITY linux-libc-headers-md5 "2d21d8e7ff641da74272b114c786464e">
+<!ENTITY linux-libc-headers-version "2.6.11.2">
+<!ENTITY linux-libc-headers-package "linux-libc-headers-&linux-libc-headers-version;.tar.bz2">
+<!ENTITY linux-libc-headers-directory "linux-libc-headers-&linux-libc-headers-version;">
+
+<!ENTITY linux-libc-headers-random-patch "linux-libc-headers-2.6.11.2-pseudo_random-1.patch">
+<!ENTITY linux-libc-headers-unistd-patch "linux-libc-headers-2.6.11.2-unistd_x86_PIC-1.patch">
+
+<!ENTITY m4-md5 "1f7d7eba70a0525c44c2edc3998925c7">
+<!ENTITY m4-version "1.4.3">
+<!ENTITY m4-package "m4-&m4-version;.tar.bz2">
+<!ENTITY m4-directory "m4-&m4-version;">
+
+<!ENTITY make-md5 "0bbd1df101bc0294d440471e50feca71">
+<!ENTITY make-version "3.80">
+<!ENTITY make-package "make-&make-version;.tar.bz2">
+<!ENTITY make-directory "make-&make-version;">
+
+<!ENTITY man-md5 "5d015c04fbb41b2107e9d6c37414829e">
+<!ENTITY man-version "1.6">
+<!ENTITY man-package "man-&man-version;.tar.bz2">
+<!ENTITY man-directory "man-&man-version;">
+
+<!ENTITY man-pages-md5 "c656bd1b6487707c8de0a5ea494c57dc">
+<!ENTITY man-pages-version "2.07">
+<!ENTITY man-pages-package "man-pages-&man-pages-version;.tar.bz2">
+<!ENTITY man-pages-directory "man-pages-&man-pages-version;">
+
+<!ENTITY mktemp-md5 "3359aa075083aeae3ed6ca67ec5d944b">
+<!ENTITY mktemp-version "1.5">
+<!ENTITY mktemp-package "mktemp-&mktemp-version;.tar.bz2">
+<!ENTITY mktemp-directory "mktemp-&mktemp-version;">
+
+<!ENTITY mktemp-tempfile-patch "mktemp-&mktemp-version;-add_tempfile-3.patch">
+
+<!ENTITY module-init-tools-md5 "8ddecbcf0e56aef8617f67a3906faf3e">
+<!ENTITY module-init-tools-version "3.1">
+<!ENTITY module-init-tools-package "module-init-tools-&module-init-tools-version;.tar.bz2">
+<!ENTITY module-init-tools-directory "module-init-tools-&module-init-tools-version;">
+
+<!ENTITY module-init-tools-nostatic-patch "module-init-tools-3.1-nostatic-1.patch">
+
+<!ENTITY nALFS-md5 "1e7bb2216cbddec8c97fc0a440216bf1">
+<!ENTITY nALFS-version "1.2.4">
+<!ENTITY nALFS-package "nALFS-&nALFS-version;.tar.bz2">
+<!ENTITY nALFS-directory "nALFS-&nALFS-version;">
+
+<!ENTITY ncurses-md5 "236968460fe1a1d0e293a9c5e6f10805">
+<!ENTITY ncurses-version "5.4">
+<!ENTITY ncurses-package "ncurses-&ncurses-version;.tar.bz2">
+<!ENTITY ncurses-directory "ncurses-&ncurses-version;">
+
+<!ENTITY patch-md5 "e9c883bb7df561b34a260ed50f31d77c">
+<!ENTITY patch-version "2.5.9">
+<!ENTITY patch-package "patch-&patch-version;.tar.bz2">
+<!ENTITY patch-directory "patch-&patch-version;">
+
+<!ENTITY paxctl-md5 "78528b31f5ab5af76273d0c6ff20e02c">
+<!ENTITY paxctl-version "0.2">
+<!ENTITY paxctl-package "paxctl-&paxctl-version;.tar.bz2">
+<!ENTITY paxctl-directory "paxctl-&paxctl-version;">
+
+<!ENTITY perl-md5 "9a175d6ccbb5d9b41ffac5073ff9cc3c">
+<!ENTITY perl-version "5.8.7">
+<!ENTITY perl-package "perl-&perl-version;.tar.bz2">
+<!ENTITY perl-directory "perl-&perl-version;">
+
+<!ENTITY perl-libc-1-patch "perl-&perl-version;-libc-1.patch">
+
+<!ENTITY procps-md5 "4a6faa1ca606546f16504f27a895c98f">
+<!ENTITY procps-version "3.2.5">
+<!ENTITY procps-package "procps-&procps-version;.tar.bz2">
+<!ENTITY procps-directory "procps-&procps-version;">
+
+<!ENTITY procps-cflags-patch "procps-3.2.5-hardened_cflags-1.patch">
+
+<!ENTITY psmisc-md5 "598bf9a7f995279b0e5e35b6a6d10420">
+<!ENTITY psmisc-version "21.6">
+<!ENTITY psmisc-package "psmisc-&psmisc-version;.tar.bz2">
+<!ENTITY psmisc-directory "psmisc-&psmisc-version;">
+
+<!ENTITY readline-md5 "d603cc9690069c69214a7c98268dce3b">
+<!ENTITY readline-version "5.0">
+<!ENTITY readline-package "readline-&readline-version;.tar.bz2">
+<!ENTITY readline-directory "readline-&readline-version;">
+
+<!ENTITY readline-fixes-patch "readline-&readline-version;-fixes-1.patch">
+
+<!ENTITY sed-md5 "356901f3b2a9ae87b3926074847800e9">
+<!ENTITY sed-version "4.1.4">
+<!ENTITY sed-package "sed-&sed-version;.tar.bz2">
+<!ENTITY sed-directory "sed-&sed-version;">
+
+<!ENTITY shadow-md5 "e60b7b16128b9e00576073389a0ff1e6">
+<!ENTITY shadow-version "4.0.11.1">
+<!ENTITY shadow-package "shadow-&shadow-version;.tar.bz2">
+<!ENTITY shadow-directory "shadow-&shadow-version;">
+
+<!ENTITY sysklogd-md5 "f587720988bc1670071f31d3694ca0fb">
+<!ENTITY sysklogd-version "1.4.1">
+<!ENTITY sysklogd-package "sysklogd-&sysklogd-version;.tar.bz2">
+<!ENTITY sysklogd-directory "sysklogd-&sysklogd-version;">
+
+<!ENTITY sysklogd-fixes-patch "sysklogd-&sysklogd-version;-fixes-1.patch">
+
+<!ENTITY sysvinit-md5 "5b1d05d637863b888d211d4fb19a9a21">
+<!ENTITY sysvinit-version "2.86">
+<!ENTITY sysvinit-package "sysvinit-&sysvinit-version;.tar.bz2">
+<!ENTITY sysvinit-directory "sysvinit-&sysvinit-version;">
+
+<!ENTITY tar-md5 "57da3c38f8e06589699548a34d5a5d07">
+<!ENTITY tar-version "1.15.1">
+<!ENTITY tar-package "tar-&tar-version;.tar.bz2">
+<!ENTITY tar-directory "tar-&tar-version;">
+
+<!ENTITY tar-sparse-fix-patch "tar-&tar-version;-sparse_fix-1.patch">
+
+<!ENTITY tcl-md5 "77a18900d703ae4a055d086f75f0c247">
+<!ENTITY tcl-version "8.4.11">
+<!ENTITY tcl-package "tcl&tcl-version;-src.tar.bz2">
+<!ENTITY tcl-directory "tcl&tcl-version;">
+
+<!ENTITY texinfo-md5 "6ba369bbfe4afaa56122e65b3ee3a68c">
+<!ENTITY texinfo-version "4.8">
+<!ENTITY texinfo-package "texinfo-&texinfo-version;.tar.bz2">
+<!ENTITY texinfo-directory "texinfo-&texinfo-version;">
+
+<!ENTITY udev-md5 "589a5fd80ca2c85874e81cc767e6fdeb">
+<!ENTITY udev-version "064">
+<!ENTITY udev-package "udev-&udev-version;.tar.bz2">
+<!ENTITY udev-directory "udev-&udev-version;">
+
+<!ENTITY udev-rules-version "3">
+<!ENTITY udev-rules-file "udev-config-&udev-rules-version;.rules">
+
+<!ENTITY util-linux-md5 "54320aa1abbce00c0dc030e2c3afe5d7">
+<!ENTITY util-linux-version "2.12q">
+<!ENTITY util-linux-package "util-linux-&util-linux-version;.tar.bz2">
+<!ENTITY util-linux-directory "util-linux-&util-linux-version;">
+
+<!ENTITY util-linux-cramfs-patch "util-linux-&util-linux-version;-cramfs-1.patch">
+<!ENTITY util-linux-cflags-patch "util-linux-&util-linux-version;-hardened_cflags-1.patch">
+<!ENTITY util-linux-nologin-patch "util-linux-&util-linux-version;-nologin-1.patch">
+<!ENTITY util-linux-pic-patch "util-linux-&util-linux-version;-PIC-1.patch">
+
+<!ENTITY vim-md5 "821fda8f14d674346b87e3ef9cb96389">
+<!ENTITY vim-version "6.3">
+<!ENTITY vim-package "vim-&vim-version;.tar.bz2">
+<!ENTITY vim-directory "vim63">
+
+<!ENTITY vim-lang-md5 "58dcbac0857f916a9c46c6731662fbd5">
+<!ENTITY vim-lang-package "vim-&vim-version;-lang.tar.bz2">
+
+<!ENTITY vim-security-patch "vim-&vim-version;-security_fix-1.patch">
+
+<!ENTITY zlib-md5 "dee233bf288ee795ac96a98cc2e369b6">
+<!ENTITY zlib-version "1.2.3">
+<!ENTITY zlib-package "zlib-&zlib-version;.tar.bz2">
+<!ENTITY zlib-directory "zlib-&zlib-version;">
+
+<!ENTITY zlib-security-fix-patch "zlib-&zlib-version;-security_fix-1.patch">
+

Added: profiles/HLFS/trunk/config/profile.ent
===================================================================
--- profiles/HLFS/trunk/config/profile.ent	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/config/profile.ent	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,2 @@
+<!ENTITY lfs-profile '/mnt/lfs/profile-test'>
+<!ENTITY skeleton 'skeleton'>

Added: profiles/HLFS/trunk/e2fs.sh
===================================================================
--- profiles/HLFS/trunk/e2fs.sh	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/e2fs.sh	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,2 @@
+#!/bin/sh
+find resize/ debugfs/ e2fsck/ misc/ -type f -name Makefile.in | xargs sed -e 's@\$(ALL_CFLAGS)@& -pie -fpie at g' -i

Added: profiles/HLFS/trunk/runit.sh
===================================================================
--- profiles/HLFS/trunk/runit.sh	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/runit.sh	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+if [ $(id -u) -ne 0 ]; then
+   echo "Attention: this profile should be run as root"
+   exit 3
+fi
+
+if [ ! -e config ]; then
+  echo "Attention: You must create a config directory (or link)"
+fi
+
+CURRENTDIR=`pwd`
+echo "<!ENTITY lfs-profile '${CURRENTDIR}'>" > config/profile.ent
+
+if [ -z "${1}" ]; then
+  SKELETON=skeleton
+else
+  SKELETON=${1}
+fi
+echo "<!ENTITY skeleton '${SKELETON}'>" >> config/profile.ent
+
+umask 022
+/usr/bin/nALFS -l -L nalfs.log LFS.xml

Added: profiles/HLFS/trunk/scripts/optional.packages.urls
===================================================================
--- profiles/HLFS/trunk/scripts/optional.packages.urls	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/scripts/optional.packages.urls	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,2 @@
+ftp://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.17.tar.bz2
+http://lfs.securewebservices.co.uk/alfs/downloads/stable/nALFS-1.2.4.tar.bz2

Added: profiles/HLFS/trunk/scripts/required.packages.urls
===================================================================
--- profiles/HLFS/trunk/scripts/required.packages.urls	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/scripts/required.packages.urls	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,85 @@
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/autoconf/autoconf-2.59.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/automake/automake-1.9.5.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/bash/bash-3.0.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/binutils/binutils-2.15.94.0.2.2.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/bison/bison-2.0.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/bzip2/bzip2-1.0.3.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/coreutils/coreutils-5.2.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/dejagnu/dejagnu-1.4.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/diffutils/diffutils-2.8.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/e2fsprogs/e2fsprogs-1.37.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/expect/expect-5.43.0.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/file/file-4.13.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/findutils/findutils-4.2.23.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/flex/flex-2.5.31.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gawk/gawk-3.1.4.tar.bz2
+ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.3/gcc-3.4.3.tar.bz2
+#ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gcc/gcc-core-3.4.3.tar.bz2
+#ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gcc/gcc-g++-3.4.3.tar.bz2
+#ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gcc/gcc-testsuite-3.4.3.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gettext/gettext-0.14.3.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/glibc/glibc-2.3.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/glibc/glibc-linuxthreads-2.3.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/grep/grep-2.5.1a.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/groff/groff-1.19.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/grub/grub-0.96.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/gzip/gzip-1.3.5.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/hotplug/hotplug-2004_09_23.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/iana-etc/iana-etc-1.04.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/inetutils/inetutils-1.4.2.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/iproute2/iproute2-2.6.11-050330.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/kbd/kbd-1.12.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/less/less-382.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/lfs-bootscripts/lfs-bootscripts-3.2.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/libtool/libtool-1.5.14.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/linux/linux-2.6.11.12.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/linux-libc-headers/linux-libc-headers-2.6.11.2.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/m4/m4-1.4.3.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/make/make-3.80.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/man/man-1.5p.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/man-pages/man-pages-2.01.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/mktemp/mktemp-1.5.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/module-init-tools/module-init-tools-3.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/ncurses/ncurses-5.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/patch/patch-2.5.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/perl/perl-5.8.6.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/procps/procps-3.2.5.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/psmisc/psmisc-21.6.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/readline/readline-5.0.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/sed/sed-4.1.4.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/shadow/shadow-4.0.9.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/sysklogd/sysklogd-1.4.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/sysvinit/sysvinit-2.86.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/tar/tar-1.15.1.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/tcl/tcl8.4.9-src.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/texinfo/texinfo-4.8.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/udev/udev-056.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/util-linux/util-linux-2.12q.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/vim/vim-6.3.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/vim/vim-6.3-lang.tar.bz2
+ftp://ftp.linuxfromscratch.org/pub/lfs/lfs-packages/conglomeration/zlib/zlib-1.2.2.tar.bz2
+
+http://downloads.linuxfromscratch.org/udev-config-3.rules
+
+http://www.linuxfromscratch.org/patches/lfs/6.1/bash-3.0-fixes-3.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/bash-3.0-avoid_WCONTINUED-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/coreutils-5.2.1-suppress_uptime_kill_su-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/coreutils-5.2.1-uname-2.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/expect-5.43.0-spawn-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/flex-2.5.31-debian_fixes-3.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/gcc-3.4.3-linkonce-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/gcc-3.4.3-specs-2.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/gcc-3.4.3-no_fixincludes-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/gzip-1.3.5-security_fixes-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/glibc-2.3.4-fix_test-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/inetutils-1.4.2-kernel_headers-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/inetutils-1.4.2-no_server_man_pages-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/iproute2-2.6.11_050330-remove_db-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/mktemp-1.5-add_tempfile-2.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/perl-5.8.6-libc-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/readline-5.0-fixes-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/sysklogd-1.4.1-fixes-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/tar-1.15.1-sparse_fix-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/util-linux-2.12q-cramfs-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/vim-6.3-security_fix-1.patch
+http://www.linuxfromscratch.org/patches/lfs/6.1/zlib-1.2.2-security_fix-1.patch

Added: profiles/HLFS/trunk/scripts/wget.lfs
===================================================================
--- profiles/HLFS/trunk/scripts/wget.lfs	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/scripts/wget.lfs	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -z "$1" -o -z "$2" ]; then
+	echo "Usage: $0 <destination_dir> <url file>"
+	exit 1
+fi
+
+wget -N -r -nd -P $1 -i $2 -o wget.lfs.log

Added: profiles/HLFS/trunk/skeleton/boot/grub/menu.lst
===================================================================
--- profiles/HLFS/trunk/skeleton/boot/grub/menu.lst	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/boot/grub/menu.lst	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,25 @@
+# Default to first menu entry 
+default 0
+
+# Allow 30 seconds before booting default 
+timeout=30 
+ 
+# Use prettier colors 
+color green/black light-green/black 
+ 
+# Default Entry for LFS 
+title LFS ([LFS-version] kernel [linux-version]) 
+root ([grub-root]) 
+kernel /boot/lfskernel-[linux-version] root=/dev/hda2
+ 
+# Redhat Linux 
+#title Redhat 
+#root (hd0,2) 
+#kernel /boot/kernel-2.4.20 root=/dev/hda3 
+#initrd /boot/initrd-2.4.20 
+# 
+# Windows 
+#title Windows 
+#rootnoverify (hd0,0) 
+#chainloader +1 
+#

Added: profiles/HLFS/trunk/skeleton/etc/fstab
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/fstab	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/fstab	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,12 @@
+# Begin /etc/fstab
+# filesystem 	mount-point 	fs-type options 	dump fsck-order
+/dev/hda2 	/ 		ext3 	defaults 	1 1
+/dev/hda3 	swap 		swap 	pri=1 		0 0
+proc 		/proc 		proc 	defaults 	0 0
+sysfs 		/sys 		sysfs 	defaults 	0 0
+devpts 		/dev/pts 	devpts 	gid=4,mode=620 	0 0
+shm 		/dev/shm 	tmpfs 	defaults 	0 0
+
+#usbfs        	/proc/bus/usb 	usbfs   devgid=14,devmode=0660 0 0
+
+# End /etc/fstab

Added: profiles/HLFS/trunk/skeleton/etc/group
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/group	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/group	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+root:x:0:
+bin:x:1:
+sys:x:2:
+kmem:x:3:
+tty:x:4:
+tape:x:5:
+daemon:x:6:
+floppy:x:7:
+disk:x:8:
+lp:x:9:
+dialout:x:10:
+audio:x:11:
+video:x:12:
+utmp:x:13:
+usb:x:14:

Added: profiles/HLFS/trunk/skeleton/etc/hosts
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/hosts	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/hosts	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,6 @@
+# Begin /etc/hosts (network card version) 
+
+127.0.0.1 localhost 
+172.16.1.22 yourhost.your.domain yourhost
+
+# End /etc/hosts (network card version)

Added: profiles/HLFS/trunk/skeleton/etc/inittab
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/inittab	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/inittab	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,26 @@
+# Begin /etc/inittab 
+ 
+id:3:initdefault:
+
+si::sysinit:/etc/rc.d/init.d/rc sysinit 
+ 
+l0:0:wait:/etc/rc.d/init.d/rc 0 
+l1:S1:wait:/etc/rc.d/init.d/rc 1 
+l2:2:wait:/etc/rc.d/init.d/rc 2 
+l3:3:wait:/etc/rc.d/init.d/rc 3 
+l4:4:wait:/etc/rc.d/init.d/rc 4 
+l5:5:wait:/etc/rc.d/init.d/rc 5 
+l6:6:wait:/etc/rc.d/init.d/rc 6 
+ 
+ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now 
+ 
+su:S016:once:/sbin/sulogin 
+ 
+1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600 
+2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600 
+3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600 
+4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600 
+5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600 
+6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600 
+ 
+# End /etc/inittab

Added: profiles/HLFS/trunk/skeleton/etc/inputrc
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/inputrc	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/inputrc	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,43 @@
+# Begin /etc/inputrc
+# Modified by Chris Lynn <roryo at roryo.dynup.net>
+
+# Allow the command prompt to wrap to the next line
+set horizontal-scroll-mode Off
+
+# Enable 8bit input
+set meta-flag On
+set input-meta On
+
+# Turns off 8th bit stripping
+set convert-meta Off
+
+# Keep the 8th bit for display
+set output-meta On
+
+# none, visible or audible
+set bell-style none
+
+# All of the following map the escape sequence of the
+# value contained inside the 1st argument to the
+# readline specific functions
+
+"\eOd": backward-word
+"\eOc": forward-word
+
+# for linux console
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+
+# for xterm
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
+# for Konsole
+"\e[H": beginning-of-line
+"\e[F": end-of-line
+
+# End /etc/inputrc

Added: profiles/HLFS/trunk/skeleton/etc/kbd/bs-sends-del
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/kbd/bs-sends-del	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/kbd/bs-sends-del	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,7 @@
+                keycode 14 =    Delete  Delete          Delete  Delete
+        alt     keycode 14 =    Meta_Delete
+altgr   alt     keycode 14 =    Meta_Delete
+                keycode 111 =   Remove
+altgr   control keycode 111 =   Boot
+control alt     keycode 111 =   Boot
+altgr   control alt keycode 111 = Boot

Added: profiles/HLFS/trunk/skeleton/etc/ld.so.conf
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/ld.so.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/ld.so.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,6 @@
+# Begin /etc/ld.so.conf 
+
+/usr/local/lib
+/opt/lib
+
+# End /etc/ld.so.conf

Added: profiles/HLFS/trunk/skeleton/etc/modprobe.conf
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/modprobe.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/modprobe.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+alias sis900 eth0

Added: profiles/HLFS/trunk/skeleton/etc/nsswitch.conf
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/nsswitch.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/nsswitch.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,15 @@
+# Begin /etc/nsswitch.conf
+
+passwd: files
+group: files
+shadow: files
+
+hosts: files dns
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+# End /etc/nsswitch.conf

Added: profiles/HLFS/trunk/skeleton/etc/passwd
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/passwd	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/passwd	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+root:x:0:0:root:/root:/bin/bash

Added: profiles/HLFS/trunk/skeleton/etc/profile
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/profile	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/profile	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,8 @@
+# Begin /etc/profile
+# Written for Linux From Scratch
+# by Alexander E. Patrakov 
+
+export LANG=en_US.iso88591
+export INPUTRC=/etc/inputrc 
+
+# End /etc/profile

Added: profiles/HLFS/trunk/skeleton/etc/resolv.conf
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/resolv.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/resolv.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,5 @@
+# Begin /etc/resolv.conf
+
+nameserver 127.0.0.1
+
+# End /etc/resolv.conf

Added: profiles/HLFS/trunk/skeleton/etc/sysconfig/clock
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/sysconfig/clock	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/sysconfig/clock	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,6 @@
+# Begin /etc/sysconfig/clock
+
+UTC=1
+
+# End /etc/sysconfig/clock
+

Added: profiles/HLFS/trunk/skeleton/etc/sysconfig/console
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/sysconfig/console	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/sysconfig/console	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,2 @@
+KEYMAP=
+FONT=

Added: profiles/HLFS/trunk/skeleton/etc/sysconfig/network
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/sysconfig/network	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/sysconfig/network	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+HOSTNAME=yourhost

Added: profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,7 @@
+ONBOOT=yes
+SERVICE=ipv4-static 
+IP=172.16.1.22
+GATEWAY=172.16.1.1
+PREFIX=24
+BROADCAST=172.16.1.255
+

Added: profiles/HLFS/trunk/skeleton/etc/syslog.conf
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/syslog.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/syslog.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,14 @@
+# Begin /etc/syslog.conf
+
+auth,authpriv.* -/var/log/auth.log
+*.*;auth,authpriv.none -/var/log/sys.log
+daemon.* -/var/log/daemon.log
+kern.* -/var/log/kern.log
+mail.* -/var/log/mail.log
+user.* -/var/log/user.log
+*.emerg *
+
+# log the bootscript output:
+local2.* -/var/log/boot.log
+
+# End /etc/syslog.conf

Added: profiles/HLFS/trunk/skeleton/etc/udev/rules.d/25-core.rules
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/udev/rules.d/25-core.rules	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/udev/rules.d/25-core.rules	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+

Added: profiles/HLFS/trunk/skeleton/etc/vimrc
===================================================================
--- profiles/HLFS/trunk/skeleton/etc/vimrc	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/etc/vimrc	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,11 @@
+" Begin /etc/vimrc
+
+set nocompatible
+set backspace=2
+syntax on
+
+if (&term == "iterm") || (&term == "putty")
+ set background=dark
+endif
+
+" End /etc/vimrc

Added: profiles/HLFS/trunk/skeleton/hardened-specs.sh
===================================================================
--- profiles/HLFS/trunk/skeleton/hardened-specs.sh	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/hardened-specs.sh	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,25 @@
+#!/bin/sh
+perl -pi -e 's@\*cc1:\n@$_%(cc1_ssp) @;' \
+    $(gcc --print-file specs) &&
+perl -pi -e 's@\*cc1plus:\n@$_%(cc1_ssp) @;' \
+    $(gcc --print-file specs) &&
+echo '*cc1_ssp: 
+%{!fno-stack-protector*: -fstack-protector-all}
+'    >> $(gcc --print-file specs)
+perl -pi -e 's@\*cc1:\n@$_%(cc1_pie) @;' \
+    $(gcc --print-file specs) &&
+perl -pi -e 's@\*cc1plus:\n@$_%(cc1_pie) @;' \
+    $(gcc --print-file specs) &&
+perl -pi -e 's@%{pie:-pie}@%(link_pie)@;' \
+    $(gcc --print-file specs) &&
+perl -pi -e 's at pie:@!no-pie|pie:@g;' $(gcc --print-file specs) &&
+perl -pi -e 's@\*cpp:\n@$_%(cpp_pie) @;' $(gcc --print-file specs) &&
+echo '*cpp_pie: 
+%{!static:%{!no-pie:%{!pie: -D__PIC__ -DPIC}}}
+' >> $(gcc --print-file specs) &&
+echo '*cc1_pie: 
+%{!static:%{!no-pie:%{!pie: -fPIC}}}
+' >> $(gcc --print-file specs) &&
+echo '*link_pie: 
+%{pie:-pie}%{!no-pie:%{!static:%{!Bstatic:%{!i:%{!r: %{!nonow: -z now} %{!norelro: -z relro} %{!shared:%{!Bshareable:%{!pie: -pie}}}}}}}}
+' >> $(gcc --print-file specs)

Added: profiles/HLFS/trunk/skeleton/home/lfs/dot_bash_profile
===================================================================
--- profiles/HLFS/trunk/skeleton/home/lfs/dot_bash_profile	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/home/lfs/dot_bash_profile	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1 @@
+exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash

Added: profiles/HLFS/trunk/skeleton/home/lfs/dot_bashrc
===================================================================
--- profiles/HLFS/trunk/skeleton/home/lfs/dot_bashrc	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/home/lfs/dot_bashrc	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,10 @@
+set +h
+umask 022
+LFS=[LFS]
+HLFS=[LFS]
+LC_ALL=POSIX
+PATH=/tools/bin:/bin:/usr/bin
+export LFS HLFS LC_ALL PATH
+target=$(uname -m)-tools-linux-gnu
+ldso=/tools/lib/ld-linux.so.2
+export target ldso
\ No newline at end of file

Added: profiles/HLFS/trunk/skeleton/root/reminder.txt
===================================================================
--- profiles/HLFS/trunk/skeleton/root/reminder.txt	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/root/reminder.txt	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,9 @@
+Remember to edit fstab and then make the kernel
+make menuconfig then [make CC="gcc -no-pie -fno-stack-protector-all"]
+make modules-install and
+install -m444 arch/i386/boot/bzImage /boot/hdb3-kernel-2.6.11.12
+install -m644 System.map /boot/hdb3-System.map-2.6.11.12
+install -m644 .config /boot/hdb3-config-2.6.11.12
+Side note if you have driver modules use [make CC="gcc -no-pie -fno-stack-protector-all"]
+as well ex. madwifi
+install grub as well

Added: profiles/HLFS/trunk/skeleton/usr/bin/lex
===================================================================
--- profiles/HLFS/trunk/skeleton/usr/bin/lex	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/skeleton/usr/bin/lex	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,6 @@
+#!/bin/sh
+#Begin /usr/bin/lex
+
+exec /usr/bin/flex -l "$@"
+
+#End /usr/bin/lex

Added: profiles/HLFS/trunk/tools/tidy.conf
===================================================================
--- profiles/HLFS/trunk/tools/tidy.conf	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/tools/tidy.conf	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,9 @@
+input-xml: true
+indent: true
+wrap: 0
+write-back: true
+add-xml-decl: true
+tidy-mark: false
+vertical-space: true
+output-encoding: latin1
+literal-attributes: true

Added: profiles/HLFS/trunk/tools/tidyxml.sh
===================================================================
--- profiles/HLFS/trunk/tools/tidyxml.sh	2005-09-06 23:06:16 UTC (rev 1986)
+++ profiles/HLFS/trunk/tools/tidyxml.sh	2005-09-08 20:32:01 UTC (rev 1987)
@@ -0,0 +1,4 @@
+cp $1 $1.bak
+tidy -config ../tools/tidy.conf $1
+sed -i 's/\&/\&/g' $1
+rm $1.bak




More information about the alfs-log mailing list