cvs commit: ALFS/profiles/BELFS/scripts wget.lfs wget.lfs.urls

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Thu Apr 8 18:28:57 PDT 2004


kpfleming    04/04/08 19:28:57

  Added:       profiles/BELFS ALFS.dtd BELFS.xml README runit system.ent
               profiles/BELFS/chapter05 addinguser.xml bash.xml
                        binutils-pass1.xml binutils-pass2.xml bzip2.xml
                        coreutils.xml creatingtoolsdir.xml dejagnu.xml
                        diffutils.xml expect.xml findutils.xml gawk.xml
                        gcc-pass1.xml gcc-pass2.xml gettext.xml glibc.xml
                        grep.xml gzip.xml kernel-headers.xml
                        lockingglibc.xml make.xml ncurses.xml patch.xml
                        perl.xml sed.xml settingenvironment.xml strip.xml
                        tar.xml tcl.xml texinfo.xml util-linux.xml
               profiles/BELFS/chapter06 adjustingtoolchain.xml autoconf.xml
                        automake.xml bash.xml binutils.xml bison.xml
                        bzip2.xml changingowner.xml configure.xml
                        coreutils.xml createfiles.xml creatingdirs.xml
                        diffutils.xml e2fsprogs.xml ed.xml file.xml
                        findutils.xml flex.xml gawk.xml gcc-2953.xml
                        gcc.xml gettext.xml glibc.xml grep.xml groff.xml
                        grub.xml gzip.xml iana-etc.xml inetutils.xml
                        kbd.xml kernel.xml less.xml libtool.xml m4.xml
                        make.xml makedev.xml man-pages.xml man.xml
                        mktemp.xml modutils.xml ncurses.xml net-tools.xml
                        patch.xml perl.xml proc.xml procinfo.xml procps.xml
                        psmisc.xml pwdgroup.xml sed.xml shadow.xml
                        strip.xml sysklogd.xml sysvinit.xml tar.xml
                        texinfo.xml util-linux.xml vim.xml zlib.xml
               profiles/BELFS/chapter07 bootscripts.xml hostname.xml
                        hosts.xml network.xml setclock.xml
               profiles/BELFS/config_separate fstab.xml general.ent
                        grub.xml kernel.xml keymap.xml package.ent
               profiles/BELFS/scripts wget.lfs wget.lfs.urls
  Log:
  create a profile for BE-LFS (for usage until the situation settles out)
  
  Revision  Changes    Path
  1.1                  ALFS/profiles/BELFS/ALFS.dtd
  
  Index: ALFS.dtd
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!--
         ALFS :    Document Type Definition
         Version : 3.1
         Author:   V. Dzuba
         Updates:  Kevin P. Fleming
         Date:     March 5, 2004
  
         The current version of the DTD is available at:
               http://www.linuxfromscratch.org/alfs/downloads/stable
  
         The current version of its documentation is available at:
               http://www.linuxfromscratch.org/alfs/view/dtd
  
         This DTD is published under both BSD and GNU licenses.
  -->
  
  <!ENTITY lt     "&#60;"> 
  <!ENTITY gt     ">"> 
  <!ENTITY amp    "&#38;"> 
  <!ENTITY apos   "'"> 
  <!ENTITY quot   """> 
  
  <!ENTITY % ops "configure | copy | download | execute | link | make | mkdir | move | ownership | package | patch | permissions | remove | search_replace | stage | textdump | unpack">
  
  <!ELEMENT alfs           ((%ops; | include)+)>
  <!ATTLIST alfs
            base           CDATA #IMPLIED
            version        CDATA #FIXED "3.1"
  	  xml:base	 CDATA #IMPLIED
  	  xmlns:xi	 CDATA #IMPLIED>
  
  <!ELEMENT archive        (#PCDATA)>
  
  <!ELEMENT base           (#PCDATA)>
  
  <!ELEMENT configure      ((param | prefix)*)>
  <!ATTLIST configure
            base           CDATA #IMPLIED
            command        CDATA #IMPLIED>
  
  <!ELEMENT content        (#PCDATA)>
  
  <!ELEMENT copy           (option*, source+, destination)>
  <!ATTLIST copy
            base           CDATA #IMPLIED>
  
  <!ELEMENT description    (para | list)*>
  
  <!ELEMENT destination    (#PCDATA)>
  
  <!ELEMENT digest         (#PCDATA)>
  <!ATTLIST digest         
            type           CDATA     "md5">
  
  <!ELEMENT download       (file, url*, destination, digest?)>
  
  <!ELEMENT environment    (variable+)>
  <!ATTLIST environment
            mode           ((append | prepend)?)>
  
  <!ELEMENT execute        ((param | prefix)*)>
  <!ATTLIST execute
            base           CDATA #IMPLIED
            command        CDATA #REQUIRED>
  
  <!ELEMENT file           (#PCDATA)>
  
  <!ELEMENT find           (#PCDATA)>
  
  <!ELEMENT item           (#PCDATA)>
  
  <!ELEMENT include        EMPTY>
  <!ATTLIST include
            href           CDATA #REQUIRED>
  
  <!ELEMENT link           (option?, target+, name)>
  <!ATTLIST link
            base           CDATA #IMPLIED
            type           CDATA #IMPLIED>
  
  <!ELEMENT list           (item | list)+>
  <!ATTLIST list
            type           (bullet | number) "bullet">
  
  <!ELEMENT make           ((param | prefix)*)>
  <!ATTLIST make
            base           CDATA #IMPLIED>
  
  <!ELEMENT mkdir          (option?, name+, permissions?)>
  <!ATTLIST mkdir
            base           CDATA #IMPLIED>
            
  <!ELEMENT move           (option?, source+, destination)>
  <!ATTLIST move
            base           CDATA #IMPLIED>
  
  <!ELEMENT name           (#PCDATA)>
  
  <!ELEMENT option         (#PCDATA)>
  
  <!ELEMENT ownership      (option?, name+)>
  <!ATTLIST ownership
            base           CDATA #IMPLIED
            user           CDATA #IMPLIED
            group          CDATA #IMPLIED>
            
  <!ELEMENT package        (packageinfo?, stage+)>
  <!ATTLIST package
            name           CDATA #REQUIRED
            version        CDATA #REQUIRED>
  
  <!ELEMENT packageinfo    (description?, requires*, utilizes*)>
  
  <!ELEMENT para           (#PCDATA)>
  
  <!ELEMENT param          (#PCDATA)>
  
  <!ELEMENT patch          ((param | prefix)+)>
  <!ATTLIST patch
            base           CDATA #IMPLIED>
  
  <!ELEMENT permissions    (option?, name*)>
  <!ATTLIST permissions
            base           CDATA #IMPLIED
            mode           CDATA #REQUIRED>
  
  <!ELEMENT prefix         (#PCDATA)>
  
  <!ELEMENT reference      (#PCDATA)>
  
  <!ELEMENT remove         (#PCDATA)>
  
  <!ELEMENT replace        (#PCDATA)>
  
  <!ELEMENT requires       (name, version*)>
  
  <!ELEMENT root           (#PCDATA)>
  
  <!ELEMENT search_replace (file, find, replace)>
  <!ATTLIST search_replace
            base           CDATA #IMPLIED>
  
  <!ELEMENT source         (#PCDATA)>
  
  <!ELEMENT stage          (stageinfo?, (alfs | %ops;)*)>
  <!ATTLIST stage
            name           CDATA #IMPLIED>
  
  <!ELEMENT stageinfo      (root?, user?, environment?, base?)>
  
  <!ELEMENT target         (#PCDATA)>
  
  <!ELEMENT textdump       (file, content)>
  <!ATTLIST textdump
            base           CDATA #IMPLIED
            mode           CDATA #IMPLIED>
  
  <!ELEMENT unpack         (digest?, reference*, archive, destination)>
  
  <!ELEMENT url            (#PCDATA)>
  
  <!ELEMENT user           (#PCDATA)>
  
  <!ELEMENT utilizes       (name, version*)>
  
  <!ELEMENT variable       (#PCDATA)>
  <!ATTLIST variable
            name           CDATA #REQUIRED
            mode           CDATA #IMPLIED>
  
  <!ELEMENT version        (#PCDATA)>
  <!ATTLIST version
            condition      (eq | ne | gt | ge | lt | le) #REQUIRED>
  
  
  
  1.1                  ALFS/profiles/BELFS/BELFS.xml
  
  Index: BELFS.xml
  ===================================================================
  <!--
  
  	LFS profile, version CVS
  	=================================
  	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
  
  	Note : read the file README before running this profile
  
  -->
  
  
  <!DOCTYPE alfs SYSTEM "ALFS.dtd" [
  
  <!ENTITY % general_entities SYSTEM "config/general.ent">
  <!ENTITY % package_entities SYSTEM "config/package.ent">
  <!ENTITY % system_entities SYSTEM "system.ent">
  
  %general_entities;
  %package_entities;
  %system_entities;
  
  ]>
  
  
  <alfs version="3.1">
  
  <stage name="Chapter 5 - Constructing a temporary system">
  	&c5-creatingtoolsdir;
  	&c5-addinguser;
  	&c5-settingenvironment;
  
  	<stage name="Installing packages in /tools as &lfs-user;.">
  		<stageinfo>
  			<user>&lfs-user;</user>
  			<environment>
  				<variable name="LFS">&LFS;</variable>
  				<variable name="LC_ALL">POSIX</variable>
  				<variable name="PATH" mode="prepend">/tools/bin:</variable>
  				<variable name="CFLAGS">&gcc_optimizations;</variable>
  				<variable name="CXXFLAGS">&gcc_optimizations;</variable>
  				<variable name="CC"></variable>
  				<variable name="CXX"></variable>
  				<variable name="CPP"></variable>
  				<variable name="LD_LIBRARY_PATH"></variable>
  				<variable name="LD_PRELOAD"></variable>
  			</environment>
  		</stageinfo>
  
  		&c5-binutils-pass1;
  		&c5-gcc-pass1;
  		&c5-kernel-headers;
  		&c5-glibc;
  		&c5-lockingglibc;
  		&c5-tcl;
  		&c5-expect;
  		&c5-dejagnu;
  		&c5-gcc-pass2;
  		&c5-binutils-pass2;
  		&c5-gawk;
  		&c5-coreutils;
  		&c5-bzip2;
  		&c5-gzip;
  		&c5-diffutils;
  		&c5-findutils;
  		&c5-make;
  		&c5-grep;
  		&c5-sed;
  		&c5-gettext;
  		&c5-ncurses;
  		&c5-patch;
  		&c5-tar;
  		&c5-texinfo;
  		&c5-bash;
  		&c5-perl;
  		&c5-util-linux;
  		&c5-strip;
  	</stage>
  </stage>
  
  <stage name="Chapter 6 - Installing basic system software">
  	<stage name="Creating directories and mounting the proc and devpts file systems">
  		&c6-proc;
  	</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="PATH">/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin</variable>
  				<variable name="CFLAGS">&gcc_optimizations;</variable>
  				<variable name="CXXFLAGS">&gcc_optimizations;</variable>
  			</environment>
  		</stageinfo>
  
  		&c6-changingowner;
  		&c6-creatingdirs;
  		&c6-createfiles;
  		&c6-pwdgroup;
  		&c6-makedev;
  		&c6-kernel;
  		&c6-man-pages;
  		&c6-glibc;
  		&c6-adjustingtoolchain;
  		&c6-binutils;
  		&c6-gcc;
  		&c6-coreutils;
  		&c6-zlib;
  		&c6-mktemp;
  		&c6-iana-etc;		
  		&c6-findutils;
  		&c6-gawk;
  		&c6-ncurses;
  		&c6-vim;
  		&c6-m4;
  		&c6-bison;
  		&c6-less;
  		&c6-groff;
  		&c6-sed;
  		&c6-flex;
  		&c6-gettext;
  		&c6-net-tools;
  		&c6-inetutils;
  		&c6-perl;
  		&c6-texinfo;
  		&c6-autoconf;
  		&c6-automake;
  		&c6-bash;
  		&c6-file;
  		&c6-libtool;
  		&c6-bzip2;
  		&c6-diffutils;
  		&c6-ed;
  		&c6-kbd;
  		&c6-e2fsprogs;
  		&c6-grep;
  		&c6-grub;
  		&c6-gzip;
  		&c6-man;
  		&c6-make;
  		&c6-modutils;
  		&c6-patch;
  		&c6-procinfo;
  		&c6-procps;
  		&c6-psmisc;
  		&c6-shadow;
  		&c6-sysklogd;
  		&c6-sysvinit;
  		&c6-tar;
  		&c6-util-linux;
  		&c6-gcc-2953;
  		&c6-strip;
  	</stage>
  </stage>
  
  <stage name="Chapter 7 - Setting up system boot scripts">
  	<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>
  
  	&c7-bootscripts;
  	&c7-setclock;
  	&c7-hostname;
  	&c7-hosts;
  	&c7-network;
  </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>
  
  	&c8-fstab;
  	&c8-kernel;
  	&c8-grub;
  </stage>
  
  <stage name="Chapter 9 - The End">
          <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>
  
  	<remove>/tools</remove>
  
  	<textdump>
  		<file>/etc/lfs-release</file>
  		<content>=&LFS-version;</content>
  	</textdump>
  </stage>
  
  <remove>/tools</remove>
  
  </alfs>
  
  
  
  1.1                  ALFS/profiles/BELFS/README
  
  Index: README
  ===================================================================
  ==============================================
          BELFS PROFILE
  ==============================================
  
  This profile must be used with nALFS 1.1.8 or later.
  
  To allow an easier customization of the configuration files,
  there is now a configuration directory for the different
  configurations the profile could be used to generate.
  
  To use the profile you should :-
  
  1) copy the config_separate directory to a new config directory with
     whatever name you like, then create a symlink called "config" to that
     directory
  
    	cp -r config_separate config.my.system
          ln -s config.my.system config
  	
  2) customize the files in the new configuration directory
     - the file general.ent contains a bunch of entity declarations
     - the file fstab.xml contains the command to generate the fstab file
     - the file kernel.xml contains the profile for building the kernel
     - the file grub.xml contains the commands for configuring the grub 
       bootloader although the steps to do this are commented out by 
       default
     - the file keymap.xml is used to set up the default keymap
  
  3) execute sh ./runit as root. Please note that if you have installed 
     nALFS into a location other than /usr/local/bin you will need to edit
     runit to point to your copy of nALFS.
  
  
  
  1.1                  ALFS/profiles/BELFS/runit
  
  Index: runit
  ===================================================================
  #!/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
  
  umask 022
  /usr/local/bin/nALFS -l -L nalfs.log BELFS.xml
  
  
  
  1.1                  ALFS/profiles/BELFS/system.ent
  
  Index: system.ent
  ===================================================================
  <!-- Chapter 5 -->
  <!ENTITY c5-addinguser         SYSTEM "chapter05/addinguser.xml">
  <!ENTITY c5-bash               SYSTEM "chapter05/bash.xml">
  <!ENTITY c5-binutils-pass1     SYSTEM "chapter05/binutils-pass1.xml">
  <!ENTITY c5-binutils-pass2     SYSTEM "chapter05/binutils-pass2.xml">
  <!ENTITY c5-bzip2              SYSTEM "chapter05/bzip2.xml">
  <!ENTITY c5-coreutils          SYSTEM "chapter05/coreutils.xml">
  <!ENTITY c5-creatingtoolsdir   SYSTEM "chapter05/creatingtoolsdir.xml">
  <!ENTITY c5-dejagnu            SYSTEM "chapter05/dejagnu.xml">
  <!ENTITY c5-diffutils          SYSTEM "chapter05/diffutils.xml">
  <!ENTITY c5-expect             SYSTEM "chapter05/expect.xml">
  <!ENTITY c5-findutils          SYSTEM "chapter05/findutils.xml">
  <!ENTITY c5-gawk               SYSTEM "chapter05/gawk.xml">
  <!ENTITY c5-gcc-pass1          SYSTEM "chapter05/gcc-pass1.xml">
  <!ENTITY c5-gcc-pass2          SYSTEM "chapter05/gcc-pass2.xml">
  <!ENTITY c5-gettext            SYSTEM "chapter05/gettext.xml">
  <!ENTITY c5-glibc              SYSTEM "chapter05/glibc.xml">
  <!ENTITY c5-grep               SYSTEM "chapter05/grep.xml">
  <!ENTITY c5-gzip               SYSTEM "chapter05/gzip.xml">
  <!ENTITY c5-kernel-headers     SYSTEM "chapter05/kernel-headers.xml">
  <!ENTITY c5-lockingglibc       SYSTEM "chapter05/lockingglibc.xml">
  <!ENTITY c5-make               SYSTEM "chapter05/make.xml">
  <!ENTITY c5-ncurses            SYSTEM "chapter05/ncurses.xml">
  <!ENTITY c5-patch              SYSTEM "chapter05/patch.xml">
  <!ENTITY c5-perl               SYSTEM "chapter05/perl.xml">
  <!ENTITY c5-sed                SYSTEM "chapter05/sed.xml">
  <!ENTITY c5-settingenvironment SYSTEM "chapter05/settingenvironment.xml">
  <!ENTITY c5-strip 	       SYSTEM "chapter05/strip.xml">
  <!ENTITY c5-tar                SYSTEM "chapter05/tar.xml">
  <!ENTITY c5-tcl                SYSTEM "chapter05/tcl.xml">
  <!ENTITY c5-texinfo            SYSTEM "chapter05/texinfo.xml">
  <!ENTITY c5-util-linux         SYSTEM "chapter05/util-linux.xml">
  
  <!-- Chapter 6 -->
  <!ENTITY c6-adjustingtoolchain SYSTEM "chapter06/adjustingtoolchain.xml">
  <!ENTITY c6-autoconf SYSTEM           "chapter06/autoconf.xml">
  <!ENTITY c6-automake SYSTEM           "chapter06/automake.xml">
  <!ENTITY c6-bash SYSTEM               "chapter06/bash.xml">
  <!ENTITY c6-binutils SYSTEM           "chapter06/binutils.xml">
  <!ENTITY c6-bison SYSTEM              "chapter06/bison.xml">
  <!ENTITY c6-bzip2 SYSTEM              "chapter06/bzip2.xml">
  <!ENTITY c6-changingowner SYSTEM      "chapter06/changingowner.xml">
  <!ENTITY c6-configure SYSTEM          "chapter06/configure.xml">
  <!ENTITY c6-coreutils SYSTEM          "chapter06/coreutils.xml">
  <!ENTITY c6-createfiles SYSTEM        "chapter06/createfiles.xml">
  <!ENTITY c6-creatingdirs SYSTEM       "chapter06/creatingdirs.xml">
  <!ENTITY c6-diffutils SYSTEM          "chapter06/diffutils.xml">
  <!ENTITY c6-e2fsprogs SYSTEM          "chapter06/e2fsprogs.xml">
  <!ENTITY c6-ed SYSTEM                 "chapter06/ed.xml">
  <!ENTITY c6-file SYSTEM               "chapter06/file.xml">
  <!ENTITY c6-findutils SYSTEM          "chapter06/findutils.xml">
  <!ENTITY c6-flex SYSTEM               "chapter06/flex.xml">
  <!ENTITY c6-gawk SYSTEM               "chapter06/gawk.xml">
  <!ENTITY c6-gcc-2953 SYSTEM           "chapter06/gcc-2953.xml">
  <!ENTITY c6-gcc SYSTEM                "chapter06/gcc.xml">
  <!ENTITY c6-gettext SYSTEM            "chapter06/gettext.xml">
  <!ENTITY c6-glibc SYSTEM              "chapter06/glibc.xml">
  <!ENTITY c6-grep SYSTEM               "chapter06/grep.xml">
  <!ENTITY c6-groff SYSTEM              "chapter06/groff.xml">
  <!ENTITY c6-grub SYSTEM               "chapter06/grub.xml">
  <!ENTITY c6-gzip SYSTEM               "chapter06/gzip.xml">
  <!ENTITY c6-iana-etc SYSTEM           "chapter06/iana-etc.xml">
  <!ENTITY c6-inetutils SYSTEM          "chapter06/inetutils.xml">
  <!ENTITY c6-kbd SYSTEM                "chapter06/kbd.xml">
  <!ENTITY c6-kernel SYSTEM             "chapter06/kernel.xml">
  <!ENTITY c6-keymap SYSTEM	      "config/keymap.xml">
  <!ENTITY c6-less SYSTEM               "chapter06/less.xml">
  <!ENTITY c6-libtool SYSTEM            "chapter06/libtool.xml">
  <!ENTITY c6-m4 SYSTEM                 "chapter06/m4.xml">
  <!ENTITY c6-makedev SYSTEM            "chapter06/makedev.xml">
  <!ENTITY c6-make SYSTEM               "chapter06/make.xml">
  <!ENTITY c6-man-pages SYSTEM          "chapter06/man-pages.xml">
  <!ENTITY c6-man SYSTEM                "chapter06/man.xml">
  <!ENTITY c6-mktemp SYSTEM             "chapter06/mktemp.xml">
  <!ENTITY c6-modutils SYSTEM           "chapter06/modutils.xml">
  <!ENTITY c6-ncurses SYSTEM            "chapter06/ncurses.xml">
  <!ENTITY c6-net-tools SYSTEM          "chapter06/net-tools.xml">
  <!ENTITY c6-patch SYSTEM              "chapter06/patch.xml">
  <!ENTITY c6-perl SYSTEM               "chapter06/perl.xml">
  <!ENTITY c6-procinfo SYSTEM           "chapter06/procinfo.xml">
  <!ENTITY c6-procps SYSTEM             "chapter06/procps.xml">
  <!ENTITY c6-proc SYSTEM               "chapter06/proc.xml">
  <!ENTITY c6-psmisc SYSTEM             "chapter06/psmisc.xml">
  <!ENTITY c6-pwdgroup SYSTEM           "chapter06/pwdgroup.xml">
  <!ENTITY c6-sed SYSTEM                "chapter06/sed.xml">
  <!ENTITY c6-shadow SYSTEM             "chapter06/shadow.xml">
  <!ENTITY c6-strip SYSTEM	      "chapter06/strip.xml">
  <!ENTITY c6-sysklogd SYSTEM           "chapter06/sysklogd.xml">
  <!ENTITY c6-sysvinit SYSTEM           "chapter06/sysvinit.xml">
  <!ENTITY c6-tar SYSTEM                "chapter06/tar.xml">
  <!ENTITY c6-texinfo SYSTEM            "chapter06/texinfo.xml">
  <!ENTITY c6-util-linux SYSTEM         "chapter06/util-linux.xml">
  <!ENTITY c6-vim SYSTEM                "chapter06/vim.xml">
  <!ENTITY c6-zlib SYSTEM               "chapter06/zlib.xml">
  
  <!-- Chapter 7 -->
  <!ENTITY c7-bootscripts SYSTEM        "chapter07/bootscripts.xml">
  <!ENTITY c7-setclock SYSTEM 	      "chapter07/setclock.xml">
  <!ENTITY c7-hostname SYSTEM           "chapter07/hostname.xml">
  <!ENTITY c7-hosts SYSTEM              "chapter07/hosts.xml">
  <!ENTITY c7-network SYSTEM            "chapter07/network.xml">
  
  <!-- Chapter 8 -->
  <!ENTITY c8-fstab SYSTEM              "config/fstab.xml">
  <!ENTITY c8-kernel SYSTEM             "config/kernel.xml">
  <!ENTITY c8-grub SYSTEM               "config/grub.xml">
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/addinguser.xml
  
  Index: addinguser.xml
  ===================================================================
  <stage name="Adding lfs user">
  	<execute command="id -u &lfs-user; &> /dev/null || useradd -s /bin/bash -m -k /dev/null &lfs-user;" />
  
  	<execute command="echo &lfs-user;:&lfs-password; | chpasswd" />
  
  	<ownership user="&lfs-user;">
  		<option>recursive</option>
  		<name>&LFS;/tools</name>
  	</ownership>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/bash.xml
  
  Index: bash.xml
  ===================================================================
  <package name="bash" version="&bash-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&bash-md5;</digest>
  			<archive>&packages_dir;/&bash-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&bash-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&bash-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&bash-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<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="Clean-up.">
  		<remove>&build_dir;/&bash-directory;</remove>
  		<remove>&build_dir;/&bash-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/binutils-pass1.xml
  
  Index: binutils-pass1.xml
  ===================================================================
  <package name="binutils-pass1" version="&binutils-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<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>
  		</configure>
  
  		<make>
  			<param>configure-host</param>
  		</make>
  
  		<make>
  			<param>LDFLAGS="-all-static"</param>
  		</make>
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<make>
  			<param>-C ld</param>
  			<param>clean</param>
  		</make>
  
  		<make>
  			<param>-C ld</param>
  			<param>LDFLAGS="-all-static"</param>
  			<param>LIB_PATH=/tools/lib</param>
  		</make>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/binutils-pass2.xml
  
  Index: binutils-pass2.xml
  ===================================================================
  <package name="binutils-pass2" version="&binutils-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<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>--enable-shared</param>
  			<param>--with-lib-path=/tools/lib</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>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>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/bzip2.xml
  
  Index: bzip2.xml
  ===================================================================
  <package name="bzip2" version="&bzip2-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&bzip2-md5;</digest>
  			<archive>&packages_dir;/&bzip2-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&bzip2-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>PREFIX=/tools</param>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&bzip2-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/coreutils.xml
  
  Index: coreutils.xml
  ===================================================================
  <package name="coreutils" version="&coreutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&coreutils-md5;</digest>
  			<archive>&packages_dir;/&coreutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&coreutils-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<prefix>DEFAULT_POSIX2_VERSION=199209</prefix>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>RUN_EXPENSIVE_TESTS=yes</param>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&coreutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/creatingtoolsdir.xml
  
  Index: creatingtoolsdir.xml
  ===================================================================
  <stage name="Creating 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>
  	</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>
  	
  	-->
  	
  	<copy>
  		<source>&orig_packages_dir;/*</source>
  		<destination>&LFS;&packages_dir;</destination>
  	</copy>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/dejagnu.xml
  
  Index: dejagnu.xml
  ===================================================================
  <package name="dejagnu" version="&dejagnu-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&dejagnu-md5;</digest>
  			<archive>&packages_dir;/&dejagnu-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&dejagnu-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&dejagnu-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/diffutils.xml
  
  Index: diffutils.xml
  ===================================================================
  <package name="diffutils" version="&diffutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&diffutils-md5;</digest>
  			<archive>&packages_dir;/&diffutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&diffutils-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&diffutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/expect.xml
  
  Index: expect.xml
  ===================================================================
  <package name="expect" version="&expect-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&expect-md5;</digest>
  			<archive>&packages_dir;/&expect-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&expect-spawn-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&expect-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&expect-spawn-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/tools</param>
  			<param>--with-tcl=/tools/lib</param>
  			<param>--with-x=no</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>test</param>
  		</make>
  -->
  
  		<make>
  			<param>SCRIPTS=""</param>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&tcl-directory;</remove>
  		<remove>&build_dir;/&expect-directory;</remove>
  		<remove>&build_dir;/&expect-spawn-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/findutils.xml
  
  Index: findutils.xml
  ===================================================================
  <package name="findutils" version="&findutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&findutils-md5;</digest>
  			<archive>&packages_dir;/&findutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&findutils-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&findutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/gawk.xml
  
  Index: gawk.xml
  ===================================================================
  <package name="gawk" version="&gawk-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gawk-md5;</digest>
  			<archive>&packages_dir;/&gawk-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gawk-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gawk-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/gcc-pass1.xml
  
  Index: gcc-pass1.xml
  ===================================================================
  <package name="gcc-pass1" version="&gcc-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gcc-core-md5;</digest>
  			<archive>&packages_dir;/&gcc-core-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<mkdir base="&build_dir;">
  			<option>parents</option>
  			<name>gcc-build</name>
  		</mkdir>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<environment>
  				<variable name="CFLAGS" />
  				<variable name="CXXFLAGS" />
  			</environment>
  			<base>&build_dir;/gcc-build</base>
  		</stageinfo>
  
  		<configure command="../&gcc-directory;/configure">
  			<param>--prefix=/tools</param>
  			<param>--with-local-prefix=/tools</param>
  			<param>--disable-nls</param>
  			<param>--enable-shared</param>
  			<param>--enable-languages=c</param>
  		</configure>
  
  		<make>
  			<param>BOOT_LDFLAGS="-static"</param>
  			<param>bootstrap</param>
  		</make>
  
  		<make>
  			<param>install</param>
  		</make>
  
                  <link>
  			<option>force</option>
  			<target>gcc</target>
  			<name>/tools/bin/cc</name>
  		</link>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/gcc-build</remove>
  		<remove>&build_dir;/&gcc-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/gcc-pass2.xml
  
  Index: gcc-pass2.xml
  ===================================================================
  <package name="gcc-pass2" version="&gcc-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gcc-core-md5;</digest>
  			<archive>&packages_dir;/&gcc-core-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<unpack>
  			<digest>&gcc-gpp-md5;</digest>
  			<archive>&packages_dir;/&gcc-gpp-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<unpack>
  			<digest>&gcc-testsuite-md5;</digest>
  			<archive>&packages_dir;/&gcc-testsuite-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&gcc-no-fixincludes-patch;</source>
  			<source>&packages_dir;/&gcc-specs-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  
  		<mkdir base="&build_dir;">
  			<option>parents</option>
  			<name>gcc-build</name>
  		</mkdir>
  	</stage>
  
  	<stage name="Installing a package.">
  		<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 ../&gcc-no-fixincludes-patch;</param>
  		</patch>
  
  		<patch base="&build_dir;/&gcc-directory;">
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&gcc-specs-patch;</param>
  		</patch>
  
  		<configure command="../&gcc-directory;/configure">
  			<param>--prefix=/tools</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>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>-k check</param>
  		</make>
  
  		<execute command="../&gcc-directory;/contrib/test_summary" />
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gcc-directory;</remove>
  		<remove>&build_dir;/gcc-build</remove>
  		<remove>&build_dir;/&gcc-no-fixincludes-patch;</remove>
  		<remove>&build_dir;/&gcc-specs-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/gettext.xml
  
  Index: gettext.xml
  ===================================================================
  <package name="gettext" version="&gettext-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gettext-md5;</digest>
  			<archive>&packages_dir;/&gettext-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gettext-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gettext-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/glibc.xml
  
  Index: glibc.xml
  ===================================================================
  <package name="glibc" version="&glibc-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<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>--disable-profile</param>
  			<param>--enable-add-ons=linuxthreads</param>
  			<param>--with-headers=/tools/include</param>
  			<param>--with-binutils=/tools/bin</param>
  			<param>--without-gd</param>
  			<param>--without-cvs</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<mkdir>
  			<name>/tools/etc</name>
  		</mkdir>
  
  		<execute command="touch">
  			<param>/tools/etc/ld.so.conf</param>
  		</execute>
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<mkdir>
  			<option>parents</option>
  			<name>/tools/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 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="Clean-up.">
  		<remove>&build_dir;/&glibc-directory;</remove>
  		<remove>&build_dir;/glibc-build</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/grep.xml
  
  Index: grep.xml
  ===================================================================
  <package name="grep" version="&grep-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&grep-md5;</digest>
  			<archive>&packages_dir;/&grep-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&grep-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  			<param>--disable-perl-regexp</param>
  			<param>--with-included-regex</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&grep-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/gzip.xml
  
  Index: gzip.xml
  ===================================================================
  <package name="gzip" version="&gzip-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gzip-md5;</digest>
  			<archive>&packages_dir;/&gzip-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gzip-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gzip-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/kernel-headers.xml
  
  Index: kernel-headers.xml
  ===================================================================
  <package name="kernel-headers" version="&linux-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&linux-md5;</digest>
  			<archive>&packages_dir;/&linux-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&linux-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>mrproper</param>
  		</make>
  
  		<make>
  			<param>include/linux/version.h</param>
  		</make>
  
  		<make>
  			<param>symlinks</param>
  		</make>
  
  		<mkdir>
  			<option>parents</option>
  			<name>/tools/include/asm</name>
  		</mkdir>
  
  		<copy>
  			<source>include/asm/*</source>
  			<destination>/tools/include/asm</destination>
  		</copy>
  
  		<copy>
  			<option>recursive</option>
  			<source>include/asm-generic</source>
  			<destination>/tools/include</destination>
  		</copy>
  
  		<copy>
  			<option>recursive</option>
  			<source>include/linux</source>
  			<destination>/tools/include</destination>
  		</copy>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/lockingglibc.xml
  
  Index: lockingglibc.xml
  ===================================================================
  <stage name="Locking glibc.">
  	<stage name="Adjusting the linker.">
  		<stageinfo>
  			<base>&build_dir;/binutils-build</base>
  		</stageinfo>
  
  		<make>
  			<param>-C ld</param>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<remove>&build_dir;/&binutils-directory;</remove>
  	<remove>&build_dir;/binutils-build</remove>
  
  	<search_replace>
  		<file>/tools/lib/gcc-lib/&gcc_target;/&gcc-version;/specs</file>
  		<find> /lib/&glibc-loader;</find>
  		<replace> /tools/lib/&glibc-loader;</replace>
  	</search_replace>
  
  	<remove>/tools/lib/gcc-lib/*/*/include/{pthread.h,bits/sigthread.h}</remove>
  
  <!-- Test basic functions of toolchain with:
  	echo 'main(){}' > dummy.c; gcc dummy.c; readelf -l a.out | grep ': /tools';
  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>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/make.xml
  
  Index: make.xml
  ===================================================================
  <package name="make" version="&make-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&make-md5;</digest>
  			<archive>&packages_dir;/&make-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&make-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&make-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/ncurses.xml
  
  Index: ncurses.xml
  ===================================================================
  <package name="ncurses" version="&ncurses-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&ncurses-md5;</digest>
  			<archive>&packages_dir;/&ncurses-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&ncurses-directory;</base>
  		</stageinfo>
  
                  <configure>
  			<param>--prefix=/tools</param>
  			<param>--with-shared</param>
  			<param>--without-debug</param>
  			<param>--without-ada</param>
  			<param>--enable-overwrite</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&ncurses-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/patch.xml
  
  Index: patch.xml
  ===================================================================
  <package name="patch" version="&patch-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&patch-md5;</digest>
  			<archive>&packages_dir;/&patch-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&patch-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<prefix>CPPFLAGS=-D_GNU_SOURCE</prefix>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&patch-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/perl.xml
  
  Index: perl.xml
  ===================================================================
  <package name="perl" version="&perl-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&perl-md5;</digest>
  			<archive>&packages_dir;/&perl-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&perl-libc-1-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&perl-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&perl-libc-1-patch;</param>
  		</patch>
  
  		<textdump>
  			<file>/tools/bin/arch</file>
  			<content>
  				=uname -m
  			</content>
  		</textdump>
  
  		<permissions mode="755">
  			<name>/tools/bin/arch</name>
  		</permissions>
  
  		<configure command="./configure.gnu">
  			<param>--prefix=/tools</param>
  			<param>-Dstatic_ext='IO Fcntl POSIX'</param>
  		</configure>
  
  		<make>
  			<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="Clean-up.">
  		<remove>&build_dir;/&perl-directory;</remove>
  		<remove>&build_dir;/&perl-libc-1-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/sed.xml
  
  Index: sed.xml
  ===================================================================
  <package name="sed" version="&sed-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&sed-md5;</digest>
  			<archive>&packages_dir;/&sed-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&sed-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&sed-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/settingenvironment.xml
  
  Index: settingenvironment.xml
  ===================================================================
  <stage name="Setting up the environment.">
  	<stageinfo>
  		<user>&lfs-user;</user>
  	</stageinfo>
  
  	<textdump>
  		<file>&lfs-user-dir;/.bash_profile</file>
  		<content>
  			=exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
  		</content>
  	</textdump>
  
  	<textdump>
  		<file>&lfs-user-dir;/.bashrc</file>
  		<content>
  			=set +h
  			=umask 022
  			=LFS=&LFS;
  			=LC_ALL=POSIX
  			=PATH=/tools/bin:/bin:/usr/bin
  			=export LFS LC_ALL PATH
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/strip.xml
  
  Index: strip.xml
  ===================================================================
  <!-- 
  	
   ************************ 
   * OPTIONAL BUT USEFULL *
   ************************
  
   * remove the space in between the - -strip command 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>
  
  -->
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/tar.xml
  
  Index: tar.xml
  ===================================================================
  <package name="tar" version="&tar-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&tar-md5;</digest>
  			<archive>&packages_dir;/&tar-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&tar-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&tar-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/tcl.xml
  
  Index: tcl.xml
  ===================================================================
  <package name="tcl" version="&tcl-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&tcl-md5;</digest>
  			<archive>&packages_dir;/&tcl-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&tcl-directory;/unix</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<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>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/texinfo.xml
  
  Index: texinfo.xml
  ===================================================================
  <package name="texinfo" version="&texinfo-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&texinfo-md5;</digest>
  			<archive>&packages_dir;/&texinfo-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&texinfo-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/tools</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&texinfo-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter05/util-linux.xml
  
  Index: util-linux.xml
  ===================================================================
  <package name="util-linux" version="&util-linux-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&util-linux-md5;</digest>
  			<archive>&packages_dir;/&util-linux-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&util-linux-directory;</base>
  		</stageinfo>
  
  		<search_replace>
  			<file>configure</file>
  			<find>/usr/include</find>
  			<replace>/tools/include</replace>
  		</search_replace>
  
  		<configure />
  
  		<make>
  			<param>-C lib</param>
  		</make>
  
  		<make>
  			<param>-C mount</param>
  			<param>mount</param>
  			<param>umount</param>
  		</make>
  
  		<make>
  			<param>-C text-utils</param>
  			<param>more</param>
  		</make>
  
  		<make>
  			<param>-C sys-utils</param>
  			<param>arch</param>
  		</make>
  
  		<copy>
  			<source>mount/{,u}mount</source>
  			<source>text-utils/more</source>
  			<source>sys-utils/arch</source>
  			<destination>/tools/bin</destination>
  		</copy>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&util-linux-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/adjustingtoolchain.xml
  
  Index: adjustingtoolchain.xml
  ===================================================================
  <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 GCC specs file.">
  		<search_replace>
  			<file>/tools/lib/gcc-lib/&gcc_target;/&gcc-version;/specs</file>
  			<find> /tools/lib/&glibc-loader;</find>
  			<replace> /lib/&glibc-loader;</replace>
  		</search_replace>
  	</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>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/autoconf.xml
  
  Index: autoconf.xml
  ===================================================================
  <package name="autoconf" version="&autoconf-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&autoconf-md5;</digest>
  			<archive>&packages_dir;/&autoconf-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&autoconf-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&autoconf-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/automake.xml
  
  Index: automake.xml
  ===================================================================
  <package name="automake" version="&automake-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&automake-md5;</digest>
  			<archive>&packages_dir;/&automake-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&automake-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&automake-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/bash.xml
  
  Index: bash.xml
  ===================================================================
  <package name="bash" version="&bash-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&bash-md5;</digest>
  			<archive>&packages_dir;/&bash-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&bash-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&bash-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&bash-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--bindir=/bin</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>tests</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&bash-directory;</remove>
  		<remove>&build_dir;/&bash-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/binutils.xml
  
  Index: binutils.xml
  ===================================================================
  <package name="binutils" version="&binutils-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<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.
  -->
  
  		<configure command="../&binutils-directory;/configure">
  			<param>--prefix=/usr</param>
  			<param>--enable-shared</param>
  		</configure>
  
  		<make>
  			<param>tooldir=/usr</param>
  		</make>
  
  		<make>
  			<param>check</param>
  		</make>
  
  		<make>
  			<param>tooldir=/usr</param>
  			<param>install</param>
  		</make>
  
  		<copy>
  			<source>../&binutils-directory;/include/libiberty.h</source>
  			<destination>/usr/include</destination>
  		</copy>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&binutils-directory;</remove>
  		<remove>&build_dir;/binutils-build</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/bison.xml
  
  Index: bison.xml
  ===================================================================
  <package name="bison" version="&bison-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&bison-md5;</digest>
  			<archive>&packages_dir;/&bison-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&bison-attribute-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&bison-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&bison-attribute-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&bison-directory;</remove>
  		<remove>&build_dir;/&bison-attribute-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/bzip2.xml
  
  Index: bzip2.xml
  ===================================================================
  <package name="bzip2" version="&bzip2-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&bzip2-md5;</digest>
  			<archive>&packages_dir;/&bzip2-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&bzip2-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>-f Makefile-libbz2_so</param>
  		</make>
  
  		<make>
  			<param>clean</param>
  		</make>
  
  		<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>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&bzip2-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/changingowner.xml
  
  Index: changingowner.xml
  ===================================================================
  <stage name="Changing ownership of tools directory">
  	<ownership user="0" group="0">
  		<option>recursive</option>
  		<name>/tools</name>
  	</ownership>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/configure.xml
  
  Index: configure.xml
  ===================================================================
  <stage name="Configuring system components">
  
  	&c6-keymap;
  
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/coreutils.xml
  
  Index: coreutils.xml
  ===================================================================
  <package name="coreutils" version="&coreutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&coreutils-md5;</digest>
  			<archive>&packages_dir;/&coreutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&coreutils-uname-patch;</source>
  			<source>&packages_dir;/&coreutils-hostname-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&coreutils-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&coreutils-uname-patch;</param>
  		</patch>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&coreutils-hostname-patch;</param>
  		</patch>
  
  		<configure>
  			<prefix>DEFAULT_POSIX2_VERSION=199209</prefix>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install-root</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>check-root</param>
  		</make>
  
  		<execute command="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>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>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>su</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>
  
  		<remove>/usr/bin/kill</remove>
  
  		<link>
  			<option>force</option>
  			<target>test</target>
  			<name>/bin/[</name>
  		</link>
  
  		<link>
  			<option>force</option>
  			<target>../../bin/install</target>
  			<name>/usr/bin</name>
  		</link>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&coreutils-directory;</remove>
  		<remove>&build_dir;/&coreutils-uname-patch;</remove>
  		<remove>&build_dir;/&coreutils-hostname-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/createfiles.xml
  
  Index: createfiles.xml
  ===================================================================
  <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.1</target>
  		<name>/usr/lib</name>
  	</link>
  
  	<link>
  		<option>force</option>
  		<target>bash</target>
  		<name>/bin/sh</name>
  	</link>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/creatingdirs.xml
  
  Index: creatingdirs.xml
  ===================================================================
  <stage name="Creating directory tree">
  	<mkdir base="/">
  		<option>parents</option>
  	
  		<name>bin</name>
  		<name>boot</name>
  		<name>dev/pts</name>
  		<name>dev/shm</name>
  		<name>etc/opt</name>
  		<name>home</name>
  		<name>lib</name>
  		<name>mnt</name>
  		<name>proc</name>
  		<name>root</name>
  		<name>sbin</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>
  	</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>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/diffutils.xml
  
  Index: diffutils.xml
  ===================================================================
  <package name="diffutils" version="&diffutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&diffutils-md5;</digest>
  			<archive>&packages_dir;/&diffutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&diffutils-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&diffutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/e2fsprogs.xml
  
  Index: e2fsprogs.xml
  ===================================================================
  <package name="e2fsprogs" version="&e2fsprogs-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<stageinfo>
  			<base>&build_dir;/e2fsprogs-build</base>
  		</stageinfo>
  
  		<configure command="../&e2fsprogs-directory;/configure">
  			<param>--prefix=/usr</param>
  			<param>--with-root-prefix=""</param>
  			<param>--enable-elf-shlibs</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<make>
  			<param>install-libs</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&e2fsprogs-directory;</remove>
  		<remove>&build_dir;/e2fsprogs-build</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/ed.xml
  
  Index: ed.xml
  ===================================================================
  <package name="ed" version="&ed-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&ed-md5;</digest>
  			<archive>&packages_dir;/&ed-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&ed-mkstemp-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&ed-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&ed-mkstemp-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--exec-prefix=""</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&ed-directory;</remove>
  		<remove>&build_dir;/&ed-mkstemp-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/file.xml
  
  Index: file.xml
  ===================================================================
  <package name="file" version="&file-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&file-md5;</digest>
  			<archive>&packages_dir;/&file-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&file-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&file-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/findutils.xml
  
  Index: findutils.xml
  ===================================================================
  <package name="findutils" version="&findutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&findutils-md5;</digest>
  			<archive>&packages_dir;/&findutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&findutils-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--libexecdir=/usr/lib/locate</param>
  			<param>--localstatedir=/var/lib/misc</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&findutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/flex.xml
  
  Index: flex.xml
  ===================================================================
  <package name="flex" version="&flex-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&flex-md5;</digest>
  			<archive>&packages_dir;/&flex-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&flex-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>bigcheck</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<link>
  			<option>force</option>
  			<target>libfl.a</target>
  			<name>/usr/lib/libl.a</name>
  		</link>
  
  		<textdump>
  			<file>/usr/bin/lex</file>
  			<content>
  				=#!/bin/sh
  				=# Begin /usr/bin/lex
  				=
  				=exec /usr/bin/flex -l "$@"
  				=
  				=# End /usr/bin/lex
  			</content>
  		</textdump>
  
  		<permissions mode="755">
  			<name>/usr/bin/lex</name>
  		</permissions>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&flex-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/gawk.xml
  
  Index: gawk.xml
  ===================================================================
  <package name="gawk" version="&gawk-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gawk-md5;</digest>
  			<archive>&packages_dir;/&gawk-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gawk-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--libexecdir=/usr/lib</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gawk-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/gcc-2953.xml
  
  Index: gcc-2953.xml
  ===================================================================
  <package name="gcc-2953" version="&gcc-2953-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gcc-2953-md5;</digest>
  			<archive>&packages_dir;/&gcc-2953-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&gcc-2953-patch;</source>
  			<source>&packages_dir;/&gcc-2953-patch-no-fixinc;</source>
  			<source>&packages_dir;/&gcc-2953-returntype-fix-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  
  		<mkdir>
  			<name>&build_dir;/gcc-2-build</name>
  		</mkdir>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<environment>
  				<variable name="CFLAGS" />
  				<variable name="CXXFLAGS" />
  			</environment>
  			<base>&build_dir;/gcc-2-build</base>
  		</stageinfo>
  
  		<patch base="&build_dir;/&gcc-2953-directory;">
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&gcc-2953-patch;</param>
  		</patch>
  
  		<patch base="&build_dir;/&gcc-2953-directory;">
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&gcc-2953-patch-no-fixinc;</param>
  		</patch>
  
  		<patch base="&build_dir;/&gcc-2953-directory;">
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&gcc-2953-returntype-fix-patch;</param>
  		</patch>
  
  		<textdump base="&build_dir;/&gcc-2953-directory;">
  			<file>gcc/cstamp-h.in</file>
  			<content>=timestamp</content>
  		</textdump>
  
  		<configure command="../&gcc-2953-directory;/configure">
  			<param>--prefix=/opt/gcc-2.95.3</param>
  			<param>--enable-shared</param>
  			<param>--enable-languages=c</param>
  			<param>--enable-threads=posix</param>
  		</configure>
  
  		<make>
  			<param>bootstrap</param>
  		</make>
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gcc-2953-directory;</remove>
  		<remove>&build_dir;/&gcc-2953-patch;</remove>
  		<remove>&build_dir;/&gcc-2953-returntype-fix-patch;</remove>
  		<remove>&build_dir;/&gcc-2953-patch-no-fixinc;</remove>
  		<remove>&build_dir;/gcc-2-build</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/gcc.xml
  
  Index: gcc.xml
  ===================================================================
  <package name="gcc" version="&gcc-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gcc-core-md5;</digest>
  			<archive>&packages_dir;/&gcc-core-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<unpack>
  			<digest>&gcc-gpp-md5;</digest>
  			<archive>&packages_dir;/&gcc-gpp-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<unpack>
  			<digest>&gcc-testsuite-md5;</digest>
  			<archive>&packages_dir;/&gcc-testsuite-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&gcc-no-fixincludes-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  
  		<mkdir base="&build_dir;">
  			<option>parents</option>
  			<name>gcc-build</name>
  		</mkdir>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<environment>
  				<variable name="CFLAGS" />
  				<variable name="CXXFLAGS" />
  			</environment>
  			<base>&build_dir;/gcc-build</base>
  		</stageinfo>
  
  		<patch base="&build_dir;/&gcc-directory;">
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&gcc-no-fixincludes-patch;</param>
  		</patch>
  
  		<search_replace base="&build_dir;/&gcc-directory;">
  			<file>libiberty/Makefile.in</file>
  			<find>install_to_$(INSTALL_DEST) </find>
  			<replace> </replace>
  		</search_replace>
  
  		<configure command="../&gcc-directory;/configure">
  			<param>--prefix=/usr</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>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>-k check</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>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gcc-directory;</remove>
  		<remove>&build_dir;/gcc-build</remove>
  		<remove>&build_dir;/&gcc-no-fixincludes-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/gettext.xml
  
  Index: gettext.xml
  ===================================================================
  <package name="gettext" version="&gettext-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gettext-md5;</digest>
  			<archive>&packages_dir;/&gettext-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gettext-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gettext-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/glibc.xml
  
  Index: glibc.xml
  ===================================================================
  <package name="glibc" version="&glibc-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<stageinfo>
  			<environment>
  				<variable name="CFLAGS" />
  				<variable name="CXXFLAGS" />
  			</environment>
  			<base>&build_dir;/glibc-build</base>
  		</stageinfo>
  
  		<configure command="../&glibc-directory;/configure">
  			<param>--prefix=/usr</param>
  			<param>--disable-profile</param>
  			<param>--enable-add-ons=linuxthreads</param>
  			<param>--libexecdir=/usr/lib</param>
  			<param>--with-headers=/usr/include</param>
  			<param>--without-cvs</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>check</param>
  		</make>
  
  		<execute command="touch">
  			<param>/etc/ld.so.conf</param>
  		</execute>
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<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 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 a package.">
  		<textdump>
  			<file>/etc/nsswitch.conf</file>
  			<content>
  				=# Begin /etc/nsswitch.conf
  				=
  				=passwd: files
  				=group: files
  				=shadow: files
  				=
  				=publickey: files
  				=
  				=hosts: files dns
  				=networks: files
  				=
  				=protocols: db files
  				=services: db files
  				=ethers: db files
  				=rpc: db files
  				=
  				=netgroup: db files
  				=
  				=# End /etc/nsswitch.conf
  			</content>
  		</textdump>
  
  		<remove>/etc/localtime</remove>
  		<copy>
  			<option>force</option>
  			<source>&localtime;</source>
  			<destination>/etc/localtime</destination>
  		</copy>
  
  		<textdump>
  			<file>/etc/ld.so.config</file>
  			<content>
  				=# Begin /etc/ld.so.config
  				=
  				=/usr/local/lib
  				=/opt/lib
  				=
  				=# End /etc/ld.so.config
  			</content>
  		</textdump>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&glibc-directory;</remove>
  		<remove>&build_dir;/glibc-build</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/grep.xml
  
  Index: grep.xml
  ===================================================================
  <package name="grep" version="&grep-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&grep-md5;</digest>
  			<archive>&packages_dir;/&grep-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&grep-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--bindir=/bin</param>
  			<param>--with-included-regex</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&grep-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/groff.xml
  
  Index: groff.xml
  ===================================================================
  <package name="groff" version="&groff-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&groff-md5;</digest>
  			<archive>&packages_dir;/&groff-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&groff-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<prefix>PAGE=letter</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="Clean-up.">
  		<remove>&build_dir;/&groff-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/grub.xml
  
  Index: grub.xml
  ===================================================================
  <package name="grub" version="&grub-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&grub-md5;</digest>
  			<archive>&packages_dir;/&grub-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<environment>
  				<variable name="CFLAGS" />
  				<variable name="CXXFLAGS" />
  			</environment>
  			<base>&build_dir;/&grub-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<mkdir>
  			<name>/boot/grub</name>
  		</mkdir>
  
  		<copy base="/usr/share/grub/i386-pc">
  			<source>stage1</source>
  			<source>stage2</source>
  			<source>e2fs_stage1_5</source>
  			<destination>/boot/grub</destination>
  		</copy>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&grub-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/gzip.xml
  
  Index: gzip.xml
  ===================================================================
  <package name="gzip" version="&gzip-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&gzip-md5;</digest>
  			<archive>&packages_dir;/&gzip-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&gzip-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<search_replace>
  			<file>gzexe.in</file>
  			<find>"BINDIR"</find>
  			<replace>/bin</replace>
  		</search_replace>
  
  		<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>gunzip</target>
  			<name>/bin/uncompress</name>
  		</link>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&gzip-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/iana-etc.xml
  
  Index: iana-etc.xml
  ===================================================================
  <package name="iana-etc" version="&iana-etc-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&iana-etc-md5;</digest>
  			<archive>&packages_dir;/&iana-etc-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&iana-etc-directory;</base>
  		</stageinfo>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&iana-etc-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/inetutils.xml
  
  Index: inetutils.xml
  ===================================================================
  <package name="inetutils" version="&inetutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&inetutils-md5;</digest>
  			<archive>&packages_dir;/&inetutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&inetutils-no-man-pages-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&inetutils-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&inetutils-no-man-pages-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--disable-syslogd</param>
  			<param>--libexecdir=/usr/sbin</param>
  			<param>--disable-logger</param>
  			<param>--sysconfdir=/etc</param>
  			<param>--localstatedir=/var</param>
  			<param>--disable-whois</param>
  			<param>--disable-servers</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<move>
  			<source>/usr/bin/ping</source>
  			<destination>/bin</destination>
  		</move>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&inetutils-directory;</remove>
  		<remove>&build_dir;/&inetutils-no-man-pages-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/kbd.xml
  
  Index: kbd.xml
  ===================================================================
  <package name="kbd" version="&kbd-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&kbd-md5;</digest>
  			<archive>&packages_dir;/&kbd-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&kbd-more-programs-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&kbd-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&kbd-more-programs-patch;</param>
  		</patch>
  
  		<configure />
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  		
  		&c6-keymap;
  
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&kbd-directory;</remove>
  		<remove>&build_dir;/&kbd-more-programs-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/kernel.xml
  
  Index: kernel.xml
  ===================================================================
  <package name="linux-headers" version="&linux-version;">
  	<stage name="Installing kernel headers.">
  		<copy>
  			<option>archive</option>
  			<source>/tools/include/asm</source>
  			<source>/tools/include/asm-generic</source>
  			<source>/tools/include/linux</source>
  			<destination>/usr/include</destination>
  		</copy>
  		
  		<execute command="touch /usr/include/linux/autoconf.h" />
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/less.xml
  
  Index: less.xml
  ===================================================================
  <package name="less" version="&less-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&less-md5;</digest>
  			<archive>&packages_dir;/&less-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&less-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--bindir=/bin</param>
  			<param>--sysconfdir=/etc</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&less-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/libtool.xml
  
  Index: libtool.xml
  ===================================================================
  <package name="libtool" version="&libtool-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&libtool-md5;</digest>
  			<archive>&packages_dir;/&libtool-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&libtool-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&libtool-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/m4.xml
  
  Index: m4.xml
  ===================================================================
  <package name="m4" version="&m4-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&m4-md5;</digest>
  			<archive>&packages_dir;/&m4-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&m4-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&m4-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/make.xml
  
  Index: make.xml
  ===================================================================
  <package name="make" version="&make-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&make-md5;</digest>
  			<archive>&packages_dir;/&make-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&make-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&make-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/makedev.xml
  
  Index: makedev.xml
  ===================================================================
  <package name="make_devices" version="&make_devices-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&make_devices-md5;</digest>
  			<archive>&packages_dir;/&make_devices-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<copy base="&build_dir;">
  			<source>&make_devices-file;</source>
  			<destination>/dev/make_devices</destination>
  		</copy>
  
  		<permissions base="/dev" mode="754">
  			<name>/dev/make_devices</name>
  		</permissions>
  
  		<execute base="/dev" command="./make_devices" />
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&make_devices-file;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/man-pages.xml
  
  Index: man-pages.xml
  ===================================================================
  <package name="man-pages" version="&man-pages-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&man-pages-md5;</digest>
  			<archive>&packages_dir;/&man-pages-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&man-pages-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&man-pages-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/man.xml
  
  Index: man.xml
  ===================================================================
  <package name="man" version="&man-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&man-md5;</digest>
  			<archive>&packages_dir;/&man-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&man-80cols-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&man-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&man-80cols-patch;</param>
  		</patch>
  
  		<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&#x09;/usr/man</find>
  			<replace>#MANPATH /usr/man</replace>
  		</search_replace>
  
  		<configure>
  			<param>-default</param>
  			<param>-confdir=/etc</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&man-directory;</remove>
  		<remove>&build_dir;/&man-80cols-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/mktemp.xml
  
  Index: mktemp.xml
  ===================================================================
  <package name="mktemp" version="&mktemp-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&mktemp-md5;</digest>
  			<archive>&packages_dir;/&mktemp-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&mktemp-tempfile-patch;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&mktemp-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&mktemp-tempfile-patch;</param>
  		</patch>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--with-libc</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&mktemp-directory;</remove>
  		<remove>&build_dir;/&mktemp-tempfile-patch;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/modutils.xml
  
  Index: modutils.xml
  ===================================================================
  <package name="modutils" version="&modutils-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&modutils-md5;</digest>
  			<archive>&packages_dir;/&modutils-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&modutils-directory;</base>
  		</stageinfo>
  
  		<configure />
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&modutils-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/ncurses.xml
  
  Index: ncurses.xml
  ===================================================================
  <package name="ncurses" version="&ncurses-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&ncurses-md5;</digest>
  			<archive>&packages_dir;/&ncurses-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&ncurses-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--with-shared</param>
  			<param>--without-debug</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<permissions mode="755">
  			<name>/usr/lib/*.&ncurses-version;</name>
  		</permissions>
  
  		<permissions mode="644">
  			<name>/usr/lib/libncurses++.a</name>
  		</permissions>
  
  		<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="Clean-up.">
  		<remove>&build_dir;/&ncurses-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/net-tools.xml
  
  Index: net-tools.xml
  ===================================================================
  <package name="net-tools" version="&net-tools-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&net-tools-md5;</digest>
  			<archive>&packages_dir;/&net-tools-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  		<copy>
  			<source>&packages_dir;/&net-tools-miitool-gcc33;</source>
  			<destination>&build_dir;</destination>
  		</copy>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&net-tools-directory;</base>
  		</stageinfo>
  
  		<patch>
  			<param>-N</param>
  			<param>-p1</param>
  			<param>-i ../&net-tools-miitool-gcc33;</param>
  		</patch>
  
  		<execute command="yes">
  			<param>""</param>
  			<param>| make</param>
  			<param>config</param>
  		</execute>
  
  		<make />
  
  		<make>
  			<param>update</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&net-tools-directory;</remove>
  		<remove>&build_dir;/&net-tools-miitool-gcc33;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/patch.xml
  
  Index: patch.xml
  ===================================================================
  <package name="patch" version="&patch-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&patch-md5;</digest>
  			<archive>&packages_dir;/&patch-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&patch-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<prefix>CPPFLAGS=-D_GNU_SOURCE</prefix>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&patch-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/perl.xml
  
  Index: perl.xml
  ===================================================================
  <package name="perl" version="&perl-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&perl-md5;</digest>
  			<archive>&packages_dir;/&perl-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&perl-directory;</base>
  		</stageinfo>
  
  		<configure command="./configure.gnu">
  			<param>--prefix=/usr</param>
  			<param>-Dpager="/bin/less -isR"</param>
  		</configure>
  
  		<make />
  
  <!--
  		<textdump>
  			<file>/etc/hosts</file>
  			<content>=127.0.0.1 $(hostname) localhost</content>
  		</textdump>
  
  		<make>
  			<param>test</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&perl-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/proc.xml
  
  Index: proc.xml
  ===================================================================
  <stage name="Creating directories and mounting file systems">
  
  	<mkdir base="&LFS;">
  		<option>parents</option>
  		<name>proc</name>
  		<name>dev/pts</name>
  	</mkdir>
  
  	<execute command="mount">
  		<param>proc</param>
  		<param>&LFS;/proc</param>
  		<param>-t proc</param>
  	</execute>
  
  	<execute command="mount">
  		<param>devpts</param>
  		<param>&LFS;/dev/pts</param>
  		<param>-t devpts</param>
  	</execute>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/procinfo.xml
  
  Index: procinfo.xml
  ===================================================================
  <package name="procinfo" version="&procinfo-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&procinfo-md5;</digest>
  			<archive>&packages_dir;/&procinfo-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&procinfo-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>LDLIBS=-lncurses</param>
  		</make>
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&procinfo-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/procps.xml
  
  Index: procps.xml
  ===================================================================
  <package name="procps" version="&procps-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&procps-md5;</digest>
  			<archive>&packages_dir;/&procps-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&procps-directory;</base>
  		</stageinfo>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<remove>/lib/libproc.so</remove>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&procps-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/psmisc.xml
  
  Index: psmisc.xml
  ===================================================================
  <package name="psmisc" version="&psmisc-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&psmisc-md5;</digest>
  			<archive>&packages_dir;/&psmisc-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&psmisc-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--exec-prefix=/</param>
  		</configure>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<move>
  			<source>/bin/pstree*</source>
  			<destination>/usr/bin</destination>
  		</move>
  
  		<link>
  			<option>force</option>
  			<target>pstree</target>
  			<name>/usr/bin/pstree.x11</name>
  		</link>
  
  		<link>
  			<option>force</option>
  			<target>killall</target>
  			<name>/bin/pidof</name>
  		</link>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&psmisc-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/pwdgroup.xml
  
  Index: pwdgroup.xml
  ===================================================================
  <stage name="Creating the passwd, group and log files.">
  	<textdump base="/etc">
  		<file>passwd</file>
  		<content>=root:x:0:0:root:/root:/bin/bash</content>
  	</textdump>
  
  	<textdump base="/etc">
  		<file>group</file>
  		<content>
  			=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:
  		</content>
  	</textdump>
  
  	<execute command="touch">
  		<param>/var/run/utmp</param>
  		<param>/var/log/{btmp,lastlog,wtmp}</param>
  	</execute>
  		
  	<permissions base="/var" mode="644">
  		<name>run/utmp</name>
  		<name>log/btmp</name>
  		<name>log/lastlog</name>
  		<name>log/wtmp</name>
  	</permissions>
  
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/sed.xml
  
  Index: sed.xml
  ===================================================================
  <package name="sed" version="&sed-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&sed-md5;</digest>
  			<archive>&packages_dir;/&sed-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&sed-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--bindir=/bin</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&sed-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/shadow.xml
  
  Index: shadow.xml
  ===================================================================
  <package name="shadow" version="&shadow-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&shadow-md5;</digest>
  			<archive>&packages_dir;/&shadow-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&shadow-directory;</base>
  		</stageinfo>
  
  		<execute command="touch">
  			<param>/usr/bin/passwd</param>
  		</execute>
  
  		<configure>
  			<param>--libdir=/usr/lib</param>
  			<param>--enable-shared</param>
  		</configure>
  
  		<textdump mode="append">
  			<file>config.h</file>
  			<content>
  				=#define HAVE_SETLOCALE 1
  			</content>
  		</textdump>
  		
  		<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>/bin/sg</source>
  			<destination>/usr/bin</destination>
  		</move>
  
  		<move>
  			<source>/bin/vigr</source>
  			<destination>/usr/sbin</destination>
  		</move>
  
  		<move base="/usr/lib">
  			<source>libshadow.so.0*</source>
  			<source>libmisc.so.0*</source>
  			<destination>/lib</destination>
  		</move>
  
  		<link>
  			<option>force</option>
  			<target>../../lib/libshadow.so.0</target>
  			<name>/usr/lib/libshadow.so</name>
  		</link>
  
  		<link>
  			<option>force</option>
  			<target>../../lib/libmisc.so.0</target>
  			<name>/usr/lib/libmisc.so</name>
  		</link>
  		
  		<mkdir>
  			<name>/etc/default</name>
  		</mkdir>
  
  		<remove>/bin/groups</remove>
  	</stage>
  
  	<stage name="Configuring a package.">
  		<execute command="pwconv" />
  		<execute command="grpconv" />
  	</stage>
  
  	<execute command="echo">
  		<param>root:&password;</param>
  		<param>| chpasswd</param>
  	</execute>
  
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&shadow-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/strip.xml
  
  Index: strip.xml
  ===================================================================
  <!-- 
  	
   ************************ 
   * OPTIONAL BUT USEFULL *
   ************************
  
   * 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,sbin,lib}</param>
  		<param>-type f</param>
  		<param>-exec /tools/bin/strip - -strip-debug '{}' ';'</param>	
  	</execute>
  </stage> -->
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/sysklogd.xml
  
  Index: sysklogd.xml
  ===================================================================
  <package name="sysklogd" version="&sysklogd-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&sysklogd-md5;</digest>
  			<archive>&packages_dir;/&sysklogd-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&sysklogd-directory;</base>
  		</stageinfo>
  
  		<make />
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<textdump>
  			<file>/etc/syslog.conf</file>
  			<content>
  				=# 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 *
  				=
  				=# End /etc/syslog.conf
  			</content>
  		</textdump>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&sysklogd-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/sysvinit.xml
  
  Index: sysvinit.xml
  ===================================================================
  <package name="sysvinit" version="&sysvinit-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&sysvinit-md5;</digest>
  			<archive>&packages_dir;/&sysvinit-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&sysvinit-directory;</base>
  		</stageinfo>
  
  		<search_replace>
  			<file>src/init.c</file>
  			<find>Sending processes</find>
  			<replace>Sending processes started by init</replace>
  		</search_replace>
  
  		<make>
  			<param>-C src</param>
  		</make>
  
  		<make>
  			<param>-C src</param>
  			<param>install</param>
  		</make>
  
  		<textdump>
  			<file>/etc/inittab</file>
  			<content>
  				=# 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 tty1 9600
  				=2:2345:respawn:/sbin/agetty tty2 9600
  				=3:2345:respawn:/sbin/agetty tty3 9600
  				=4:2345:respawn:/sbin/agetty tty4 9600
  				=5:2345:respawn:/sbin/agetty tty5 9600
  				=6:2345:respawn:/sbin/agetty tty6 9600
  				=
  				=# End /etc/inittab
  			</content>
  		</textdump>
  
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&sysvinit-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/tar.xml
  
  Index: tar.xml
  ===================================================================
  <package name="tar" version="&tar-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&tar-md5;</digest>
  			<archive>&packages_dir;/&tar-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&tar-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--bindir=/bin</param>
  			<param>--libexecdir=/usr/sbin</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&tar-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/texinfo.xml
  
  Index: texinfo.xml
  ===================================================================
  <package name="texinfo" version="&texinfo-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&texinfo-md5;</digest>
  			<archive>&packages_dir;/&texinfo-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&texinfo-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<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="Clean-up.">
  		<remove>&build_dir;/&texinfo-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/util-linux.xml
  
  Index: util-linux.xml
  ===================================================================
  <package name="util-linux" version="&util-linux-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&util-linux-md5;</digest>
  			<archive>&packages_dir;/&util-linux-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<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>
  
  		<configure />
  
  		<make>
  			<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>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&util-linux-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/vim.xml
  
  Index: vim.xml
  ===================================================================
  <package name="vim" version="&vim-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&vim-md5;</digest>
  			<archive>&packages_dir;/&vim-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<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>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>test</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<link>
  			<option>force</option>
  			<target>vim</target>
  			<name>/usr/bin/vi</name>
  		</link>
  
  		<textdump>
  			<file>/etc/vimrc</file>
  			<content>
  				=" Begin /etc/vimrc
  				=
  				=set nocompatible
  				=set backspace=2
  				=syntax on
  				=
  				=" End /etc/vimrc
  			</content>
  		</textdump>
  
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&vim-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter06/zlib.xml
  
  Index: zlib.xml
  ===================================================================
  <package name="zlib" version="&zlib-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&zlib-md5;</digest>
  			<archive>&packages_dir;/&zlib-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&zlib-directory;</base>
  		</stageinfo>
  
  		<configure>
  			<param>--prefix=/usr</param>
  			<param>--shared</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<make>
  			<param>clean</param>
  		</make>
  
  		<configure>
  			<param>--prefix=/usr</param>
  		</configure>
  
  		<make />
  
  <!--
  		<make>
  			<param>check</param>
  		</make>
  -->
  
  		<make>
  			<param>install</param>
  		</make>
  
  		<permissions mode="644">
  			<name>/usr/lib/libz.a</name>
  		</permissions>
  
  		<move>
  			<source>/usr/lib/libz.so.*</source>
  			<destination>/lib</destination>
  		</move>
  
  		<link>
  			<option>force</option>
  			<target>../../lib/libz.so.1</target>
  			<name>/usr/lib/libz.so</name>
  		</link>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&zlib-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter07/bootscripts.xml
  
  Index: bootscripts.xml
  ===================================================================
  <package name="bootscripts" version="&lfs-bootscripts-version;">
  	<stage name="Unpacking a package.">
  		<unpack>
  			<digest>&lfs-bootscripts-md5;</digest>
  			<archive>&packages_dir;/&lfs-bootscripts-package;</archive>
  			<destination>&build_dir;</destination>
  		</unpack>
  	</stage>
  
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&build_dir;/&lfs-bootscripts-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>install</param>
  		</make>
  	</stage>
  
  	<stage name="Clean-up.">
  		<remove>&build_dir;/&lfs-bootscripts-directory;</remove>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter07/hostname.xml
  
  Index: hostname.xml
  ===================================================================
  <stage name="Configuring the localnet script">
  	<textdump>
  		<file>/etc/sysconfig/network</file>
  		<content>=HOSTNAME=&hostname;</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter07/hosts.xml
  
  Index: hosts.xml
  ===================================================================
  <stage name="Creating the /etc/hosts file">
  	<textdump>
  		<file>/etc/hosts</file>
  		<content>
  			=# Begin /etc/hosts (network card version)
  			=
  			=127.0.0.1 localhost
  			=&IP; &hostname;.&domain; &hostname;
  			=
  			=# End /etc/hosts (network card version)
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter07/network.xml
  
  Index: network.xml
  ===================================================================
  <stage name="Configuring the network script">
  	<textdump mode="append">
  		<file>/etc/sysconfig/network</file>
  		<content>
  			=GATEWAY=&gateway;
  			=GATEWAY_IF=&gateway_if;
  		</content>
  	</textdump>
  
  	<textdump mode="append">
  		<file>/etc/sysconfig/network-devices/ifconfig.eth0</file>
  		<content>
  			=ONBOOT=&on_boot;
  			=IP=&IP;
  			=NETMASK=&netmask;
  			=BROADCAST=&broadcast;
  		</content>
  	</textdump>
  
  	<textdump>
  		<file>/etc/resolv.conf</file>
  		<content>
  			=# Begin /etc/resolv.conf
  			=
  			=nameserver &nameserver-ip;
  			=
  			=# End /etc/resolv.conf
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/chapter07/setclock.xml
  
  Index: setclock.xml
  ===================================================================
  <stage name="Configuring the setclock script">
  	<textdump>
  		<file>/etc/sysconfig/clock</file>
  		<content>
  			=# Begin /etc/sysconfig/clock
  			=
  			=UTC=&UTC;
  			=
  			=# End /etc/sysconfig/clock
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/fstab.xml
  
  Index: fstab.xml
  ===================================================================
  <stage name="Creating the /etc/fstab file">
  	<textdump>
  		<file>/etc/fstab</file>
  		<content>
  			=# Begin /etc/fstab
  			=
  			=# filesystem     mount-point     fs-type   options        dump fsck-order
  			=&lfs_partition;  /               &fs_type; defaults       1    1
  			=&swap_partition; swap            swap      pri=1          0    0
  			=proc             /proc           proc      defaults       0    0
  			=devpts           /dev/pts        devpts    gid=4,mode=620 0    0
  			=shm              /dev/shm        tmpfs     defaults       0    0
  			=# End /etc/fstab
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/general.ent
  
  Index: general.ent
  ===================================================================
  <!--
       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 "/home/dwheeler/LFS-5.0/packages">
  
  <!-- Partition of your new LFS system.
       This entity is used only to initialize the new fstab file.
       No attempt is done to access this partition during
       the build, except if it has been mounted on &LFS;
       -->
  <!ENTITY lfs_partition "/dev/hdb10">
  
  
  <!-- Type of your LFS partition.
       This entity is used only to initialize the new fstab file.
       -->
  <!ENTITY fs_type "ext3">
  
  
  <!-- Swap partition.
       This entity is used only to initialize the new fstab file
       -->
  <!ENTITY swap_partition "/dev/hdb1">
  
  
  <!-- Name of your machine.
       This entity is used to create the files /etc/hosts
       and /etc/sysconfig/network
       -->
  <!ENTITY hostname "wheeler3">
  
  <!-- Domain of your machine. 
       This entity is used to create the files /etc/hosts
       -->
  <!ENTITY domain "middle-earth">
  
  <!-- Some networking entities.
       These entities are used when creating the files
       /etc/sysconfig/network and 
       /etc/sysconfig/network-devices/ifconfig.eth0
       -->
  <!ENTITY gateway    "172.16.1.1">
  <!ENTITY gateway_if "eth0">
  <!ENTITY on_boot    "yes">
  <!ENTITY IP         "172.16.1.22">
  <!ENTITY netmask    "255.255.255.0">
  <!ENTITY broadcast  "172.16.1.255">
  
  <!-- In the entity below replace 127.0.0.1 with the IP address of the DNS server most appropriate for
  your setup. This will often be provided by your ISP or it may even be a router on your local
  network.-->
  <!ENTITY nameserver-ip "127.0.0.1">
  
  <!-- Set here the name of the module of your network card -->
  <!ENTITY network-card-module "sis900">
  <!ENTITY network-interface   "eth0">
  
  <!-- 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">
  
  <!-- value of UTC variable 
       This entity will be used to set the value of the variable UTC
       in the file /etc/sysconfig/clock
       -->
  <!ENTITY UTC "1">
  
  
  <!-- 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 "lf1nstl">
  
  
  <!-- 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 "r00tme">
  
  
  <!-- LFS book version -->
  <!ENTITY LFS-version "CVS-2004-03-28">
  
  
  <!-- THE FOLLOWING TWO ENTITIES DECLARATIONS SHOULDN'T BE MOFIFIED
       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">
  
  <!-- 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 "">
  
  <!-- gcc target triplet (used for adjusting the toolchain) -->
  <!ENTITY gcc_target "i686-pc-linux-gnu">
  
  <!-- Linux .config file to use
  	This file should be in a state that running `make oldconfig` will run straight through, as
  	that's what the profile in chapter 8 does with this entity.
      -->
  <!ENTITY kernel-config "&packages_dir;/linux-config">
  
  <!-- grub settings (these need to be in grub's notation) 
  	NOTE:  The grub configuration profile is completely commented out.  You should edit
  	chapter08/grub.xml for your individual system if you want to automate this.
  	-->
  <!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">
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/grub.xml
  
  Index: grub.xml
  ===================================================================
  <stage name="Making the LFS system bootable">
  	<!--
  	The following shell command sets up grub.  The batch param on the first line
  	has to have the space between the dashes removed for this to work.	
  
  	/sbin/grub - -batch <<EOF 1>/dev/null 2>/dev/null
  	root (&grub-root;)
  	setup (&grub-install-location;)
  	quit EOF
  	-->
  
  	<!-- Sample grub configuration-->
  	<!--
  	<textdump>
  		<file>/boot/grub/menu.lst</file>
  		<content>
  			=# 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 - -no-mem-option /boot/lfskernel-&linux-version; root=&lfs_partition;
  			=
  			=# 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
  			=#
  		</content>
  	</textdump>
  	-->
  </stage>
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/kernel.xml
  
  Index: kernel.xml
  ===================================================================
  <package name="linux" version="&linux-version;">
  	<stage name="Unpacking a package.">
  		<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 a package.">
  		<stageinfo>
  			<base>&linux-src-location;/&linux-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>mrproper</param>
  		</make>
  
  		<copy>
  			<source>&kernel-config;</source>
  			<destination>.config</destination>
  		</copy>
  
  		<make>
  			<param>oldconfig</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>dep</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>bzImage</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>modules</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>modules_install</param>
  		</make>
  
  		<make>
  			<param>mandocs</param>
  		</make>
  
  		<copy>
  			<option>archive</option>
  			<source>Documentation/man</source>
  			<destination>/usr/share/man/man9</destination>
  		</copy>
  
  		<copy>
  			<source>arch/i386/boot/bzImage</source>
  			<destination>/boot/lfskernel-&linux-version;</destination>
  		</copy>
  
  		<copy>
  			<source>System.map</source>
  			<destination>/boot/System-&linux-version;.map</destination>
  		</copy>
  
  		<copy>
  			<source>.config</source>
  			<destination>/boot/config-lfskernel-&linux-version;</destination>
  		</copy>
  
  		<textdump>
  			<file>/etc/modules.conf</file>
  			<content>=alias &network-interface; &network-card-module;</content>
  		</textdump>
  	</stage>
  </package>
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/keymap.xml
  
  Index: keymap.xml
  ===================================================================
  <!-- 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 -->
  
  <!--
  	<link>
  		<option>force</option>
  		<target>&keymap;</target>
  		<name>/usr/share/kbd/keymaps/defkeymap.map.gz</name>
  	</link>
  -->
  
  <!-- uncomment the following section if you wish to have your default keymap
  compiled into the kernel -->
  
  <!--
  	<execute command="loadkeys">
  		<param>-m</param>
  		<param>/usr/share/kbd/keymaps/defkeymap.map.gz</param>
  		<param> > &linux-src-location;/&linux-directory;/drivers/char/defkeymap.c</param>
  	</execute>
  -->
  
  
  
  
  1.1                  ALFS/profiles/BELFS/config_separate/package.ent
  
  Index: package.ent
  ===================================================================
  <!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 "5e8a685a304c0def671decdfe453a631">
  <!ENTITY automake-version "1.8.3">
  <!ENTITY automake-package "automake-&automake-version;.tar.bz2">
  <!ENTITY automake-directory "automake-&automake-version;">
  
  <!ENTITY bash-md5 "5238251b4926d778dfe162f6ce729733">
  <!ENTITY bash-version "2.05b">
  <!ENTITY bash-package "bash-&bash-version;.tar.gz">
  <!ENTITY bash-directory "bash-&bash-version;">
  
  <!ENTITY bash-patch-md5 "27a9e4ca5bace5f4953accbab956241b">
  <!ENTITY bash-patch "bash-&bash-version;-2.patch">
  
  <!ENTITY binutils-md5 "2da8def15d28af3ec6af0982709ae90a">
  <!ENTITY binutils-version "2.14">
  <!ENTITY binutils-package "binutils-&binutils-version;.tar.bz2">
  <!ENTITY binutils-directory "binutils-&binutils-version;">
  
  <!ENTITY bison-md5 "b7f8027b249ebd4dd0cc948943a71af0">
  <!ENTITY bison-version "1.875">
  <!ENTITY bison-package "bison-&bison-version;.tar.bz2">
  <!ENTITY bison-directory "bison-&bison-version;">
  
  <!ENTITY bison-attribute-patch-md5 "7504d4e95d97b664dc9910615317a39c">
  <!ENTITY bison-attribute-patch "bison-&bison-version;-attribute.patch">
  
  <!ENTITY bzip2-md5 "ee76864958d568677f03db8afad92beb">
  <!ENTITY bzip2-version "1.0.2">
  <!ENTITY bzip2-package "bzip2-&bzip2-version;.tar.gz">
  <!ENTITY bzip2-directory "bzip2-&bzip2-version;">
  
  <!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-hostname-patch-md5 "b8291682b44eedc59643648a93bb449f">
  <!ENTITY coreutils-hostname-patch "coreutils-&coreutils-version;-hostname-1.patch">
  
  <!ENTITY coreutils-uname-patch-md5 "da72f7adae07bf9dfd97b63bdf38ea30">
  <!ENTITY coreutils-uname-patch "coreutils-&coreutils-version;-uname-1.patch">
  
  <!ENTITY dejagnu-md5 "053f18fd5d00873de365413cab17a666">
  <!ENTITY dejagnu-version "1.4.4">
  <!ENTITY dejagnu-package "dejagnu-&dejagnu-version;.tar.gz">
  <!ENTITY dejagnu-directory "dejagnu-&dejagnu-version;">
  
  <!ENTITY diffutils-md5 "71f9c5ae19b60608f6c7f162da86a428">
  <!ENTITY diffutils-version "2.8.1">
  <!ENTITY diffutils-package "diffutils-&diffutils-version;.tar.gz">
  <!ENTITY diffutils-directory "diffutils-&diffutils-version;">
  
  <!ENTITY e2fsprogs-md5 "8d25ffd60d405ef32d341704a2323807">
  <!ENTITY e2fsprogs-version "1.35">
  <!ENTITY e2fsprogs-package "e2fsprogs-&e2fsprogs-version;.tar.gz">
  <!ENTITY e2fsprogs-directory "e2fsprogs-&e2fsprogs-version;">
  
  <!ENTITY ed-md5 "ddd57463774cae9b50e70cd51221281b">
  <!ENTITY ed-version "0.2">
  <!ENTITY ed-package "ed-&ed-version;.tar.gz">
  <!ENTITY ed-directory "ed-&ed-version;">
  
  <!ENTITY ed-mkstemp-patch-md5 "e7e2248f9baa76de3db8210298e0d79e">
  <!ENTITY ed-mkstemp-patch "ed-&ed-version;-mkstemp.patch">
  
  <!ENTITY expect-md5 "6ae1b87c9af993a69b901b6e52962c18">
  <!ENTITY expect-version "5.40.0">
  <!ENTITY expect-package "expect.tar.gz">
  <!ENTITY expect-directory "expect-5.40">
  
  <!ENTITY expect-spawn-patch-md5 "ef6d0d0221c571fb420afb7033b3bbba">
  <!ENTITY expect-spawn-patch "expect-&expect-version;-spawn.patch">
  
  <!ENTITY file-md5 "749010a666a2bbc2e452145fbb8e0626">
  <!ENTITY file-version "4.08">
  <!ENTITY file-package "file-&file-version;.tar.bz2">
  <!ENTITY file-directory "file-&file-version;">
  
  <!ENTITY findutils-md5 "e90ce7222daadeb8616b8db461e17cbc">
  <!ENTITY findutils-version "4.1.20">
  <!ENTITY findutils-package "findutils-&findutils-version;.tar.gz">
  <!ENTITY findutils-directory "findutils-&findutils-version;">
  
  <!ENTITY flex-md5 "bd8753d0b22e1f4ec87a553a73021adf">
  <!ENTITY flex-version "2.5.4a">
  <!ENTITY flex-package "flex-&flex-version;.tar.gz">
  <!ENTITY flex-directory "flex-2.5.4">
  
  <!ENTITY gawk-md5 "a116eec17e7ba085febb74c7758823bd">
  <!ENTITY gawk-version "3.1.3">
  <!ENTITY gawk-package "gawk-&gawk-version;.tar.bz2">
  <!ENTITY gawk-directory "gawk-&gawk-version;">
  
  <!ENTITY gcc-2953-md5 "f3ad4f32c2296fad758ed051b5ac8e28">
  <!ENTITY gcc-2953-version "2.95.3">
  <!ENTITY gcc-2953-package "gcc-&gcc-2953-version;.tar.gz">
  <!ENTITY gcc-2953-directory "gcc-&gcc-2953-version;">
  
  <!ENTITY gcc-2953-patch-md5 "011dd058ba5cc5f52ae3f31b7fd41c99">
  <!ENTITY gcc-2953-patch "gcc-&gcc-2953-version;-2.patch">
  
  <!ENTITY gcc-2953-patch-no-fixinc-md5 "6f476862002518b809d16caaf5b2e276">
  <!ENTITY gcc-2953-patch-no-fixinc "gcc-&gcc-2953-version;-no-fixinc.patch">
  
  <!ENTITY gcc-2953-returntype-fix-patch-md5 "f74207075f47b9b6adc875537aa98f3d">
  <!ENTITY gcc-2953-returntype-fix-patch "gcc-&gcc-2953-version;-returntype-fix.patch">
  
  <!ENTITY gcc-version "3.3.2">
  <!ENTITY gcc-directory "gcc-&gcc-version;">
  
  <!ENTITY gcc-core-md5 "42d1314aaa11a40e4c7c9fcb0f49259a">
  <!ENTITY gcc-core-package "gcc-core-&gcc-version;.tar.bz2">
  
  <!ENTITY gcc-gpp-md5 "b9ae980739e7f9299addc0a3576777e7">
  <!ENTITY gcc-gpp-package "gcc-g++-&gcc-version;.tar.bz2">
    
  <!ENTITY gcc-testsuite-md5 "d0d0b003be65c6b79c7655c5fd64b18f">
  <!ENTITY gcc-testsuite-package "gcc-testsuite-&gcc-version;.tar.bz2">
  
  <!ENTITY gcc-no-fixincludes-patch-md5 "5f764c74b3e9c36252fe4f9a14598ee4">
  <!ENTITY gcc-no-fixincludes-patch "gcc-&gcc-version;-no_fixincludes-1.patch">
  
  <!ENTITY gcc-specs-patch-md5 "74cb9822f21774ae1c9a8ef1fa133f49">
  <!ENTITY gcc-specs-patch "gcc-&gcc-version;-specs-1.patch">
  
  <!ENTITY gettext-md5 "78f4b862510beb2e5d43223dd610e77d">
  <!ENTITY gettext-version "0.14.1">
  <!ENTITY gettext-package "gettext-&gettext-version;.tar.gz">
  <!ENTITY gettext-directory "gettext-&gettext-version;">
  
  <!ENTITY glibc-md5 "795895e3992dad76093b96cb8a78e0a0">
  <!ENTITY glibc-version "2.3.3">
  <!ENTITY glibc-cvs-version "20031202">
  <!ENTITY glibc-package "glibc-&glibc-version;-&glibc-cvs-version;.tar.bz2">
  <!ENTITY glibc-directory "glibc-&glibc-version;-&glibc-cvs-version;">
  
  <!ENTITY grep-md5 "ddd99e2d5d4f4611357e31e97f080cf2">
  <!ENTITY grep-version "2.5.1">
  <!ENTITY grep-package "grep-&grep-version;.tar.bz2">
  <!ENTITY grep-directory "grep-&grep-version;">
  
  <!ENTITY groff-md5 "c7a9e2944446f711eeade35a4d35f3df">
  <!ENTITY groff-version "1.19">
  <!ENTITY groff-package "groff-&groff-version;.tar.bz2">
  <!ENTITY groff-directory "groff-&groff-version;">
  
  <!ENTITY grub-md5 "299672a99cf59656e653d8ffd7851b56">
  <!ENTITY grub-version "0.94">
  <!ENTITY grub-package "grub-&grub-version;.tar.gz">
  <!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 iana-etc-md5 "5fe38814596587ef3e18b74d045370fe">
  <!ENTITY iana-etc-version "1.00">
  <!ENTITY iana-etc-package "iana-etc-&iana-etc-version;.tar.bz2">
  <!ENTITY iana-etc-directory "iana-etc-&iana-etc-version;">
  
  <!ENTITY inetutils-md5 "df0909a586ddac2b7a0d62795eea4206">
  <!ENTITY inetutils-version "1.4.2">
  <!ENTITY inetutils-package "inetutils-&inetutils-version;.tar.gz">
  <!ENTITY inetutils-directory "inetutils-&inetutils-version;">
  
  <!ENTITY inetutils-no-man-pages-patch-md5 "eb477f532bc6d26e7025fcfc4452511d">
  <!ENTITY inetutils-no-man-pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch">
  
  <!ENTITY kbd-md5 "7892c7010512a9bc6697a295c921da25">
  <!ENTITY kbd-version "1.12">
  <!ENTITY kbd-package "kbd-&kbd-version;.tar.gz">
  <!ENTITY kbd-directory "kbd-&kbd-version;">
  
  <!ENTITY kbd-more-programs-patch-md5 "dc70180a6bc0afa2b741cd38e3cc2e18">
  <!ENTITY kbd-more-programs-patch "kbd-&kbd-version;-more-programs-1.patch">
  
  <!ENTITY less-md5 "103fe4aef6297b93f0f73f38cc3b1bd7">
  <!ENTITY less-version "382">
  <!ENTITY less-package "less-&less-version;.tar.gz">
  <!ENTITY less-directory "less-&less-version;">
  
  <!ENTITY lfs-bootscripts-md5 "bd57889a62d6752a4ef1068fde57c36e">
  <!ENTITY lfs-bootscripts-version "2.0.2">
  <!ENTITY lfs-bootscripts-package "lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
  <!ENTITY lfs-bootscripts-directory "lfs-bootscripts-&lfs-bootscripts-version;">
  
  <!ENTITY libtool-md5 "db66ba05502f533ad0cfd84dc0e03bd5">
  <!ENTITY libtool-version "1.5.2">
  <!ENTITY libtool-package "libtool-&libtool-version;.tar.gz">
  <!ENTITY libtool-directory "libtool-&libtool-version;">
  
  <!ENTITY linux-md5 "5fc8e9f43fa44ac29ddf9a9980af57d8">
  <!ENTITY linux-version "2.4.25">
  <!ENTITY linux-package "linux-&linux-version;.tar.bz2">
  <!ENTITY linux-directory "linux-&linux-version;">
  <!ENTITY linux-src-location "/usr/src">
  
  <!ENTITY m4-md5 "9eb2dd07740b2d2f3c7adb3e8d299bda">
  <!ENTITY m4-version "1.4">
  <!ENTITY m4-package "m4-&m4-version;.tar.gz">
  <!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 make_devices-md5 "2863fbe7f5953efb5a0d0a840e1e9d21">
  <!ENTITY make_devices-version "1.2">
  <!ENTITY make_devices-package "make_devices-&make_devices-version;.bz2">
  <!ENTITY make_devices-file "make_devices-&make_devices-version;">
   
  <!ENTITY man-md5 "41e6397e359b8555d6a734c9c3840b49">
  <!ENTITY man-version "1.5m2">
  <!ENTITY man-package "man-&man-version;.tar.bz2">
  <!ENTITY man-directory "man-&man-version;">
  
  <!ENTITY man-80cols-patch-md5 "4cee1076e1205f4093e611a87f6ba7b2">
  <!ENTITY man-80cols-patch "man-&man-version;-80cols.patch">
  
  <!ENTITY man-pages-md5 "dd510bb621064873219cc692e3ba808d">
  <!ENTITY man-pages-version "1.66">
  <!ENTITY man-pages-package "man-pages-&man-pages-version;.tar.bz2">
  <!ENTITY man-pages-directory "man-pages-&man-pages-version;">
  
  <!ENTITY mktemp-md5 "9a35c59502a228c6ce2be025fc6e3ff2">
  <!ENTITY mktemp-version "1.5">
  <!ENTITY mktemp-package "mktemp-&mktemp-version;.tar.gz">
  <!ENTITY mktemp-directory "mktemp-&mktemp-version;">
  
  <!ENTITY mktemp-tempfile-patch-md5 "1b65466c0238120110dc1d906ad66de4">
  <!ENTITY mktemp-tempfile-patch "mktemp-&mktemp-version;-add-tempfile.patch">
  
  <!ENTITY modutils-md5 "bac989c74ed10f3bf86177fc5b4b89b6">
  <!ENTITY modutils-version "2.4.27">
  <!ENTITY modutils-package "modutils-&modutils-version;.tar.bz2">
  <!ENTITY modutils-directory "modutils-&modutils-version;">
  
  <!ENTITY ncurses-md5 "069c8880072060373290a4fefff43520">
  <!ENTITY ncurses-version "5.4">
  <!ENTITY ncurses-package "ncurses-&ncurses-version;.tar.gz">
  <!ENTITY ncurses-directory "ncurses-&ncurses-version;">
  
  <!ENTITY net-tools-md5 "888774accab40217dde927e21979c165">
  <!ENTITY net-tools-version "1.60">
  <!ENTITY net-tools-package "net-tools-&net-tools-version;.tar.bz2">
  <!ENTITY net-tools-directory "net-tools-&net-tools-version;">
  
  <!ENTITY net-tools-miitool-gcc33-md5 "fc629313c10ebd75abd2750aafbaa0be">
  <!ENTITY net-tools-miitool-gcc33 "net-tools-&net-tools-version;-miitool-gcc33-1.patch">
  
  <!ENTITY patch-md5 "ee5ae84d115f051d87fcaaef3b4ae782">
  <!ENTITY patch-version "2.5.4">
  <!ENTITY patch-package "patch-&patch-version;.tar.gz">
  <!ENTITY patch-directory "patch-&patch-version;">
  
  <!ENTITY perl-md5 "6d2b389f8c6424b7af303f417947714f">
  <!ENTITY perl-version "5.8.3">
  <!ENTITY perl-package "perl-&perl-version;.tar.gz">
  <!ENTITY perl-directory "perl-&perl-version;">
  
  <!ENTITY perl-libc-1-patch-md5 "f033161efa8b4b174ec6667e4e739efa">
  <!ENTITY perl-libc-1-patch "perl-&perl-version;-libc-1.patch">
  
  <!ENTITY procinfo-md5 "27658d0a69040aca05a65b9888599d50">
  <!ENTITY procinfo-version "18">
  <!ENTITY procinfo-package "procinfo-&procinfo-version;.tar.gz">
  <!ENTITY procinfo-directory "procinfo-&procinfo-version;">
  
  <!ENTITY procps-md5 "2672014ec05deb20680713a7b750cb16">
  <!ENTITY procps-version "3.2.1">
  <!ENTITY procps-package "procps-&procps-version;.tar.gz">
  <!ENTITY procps-directory "procps-&procps-version;">
  
  <!ENTITY psmisc-md5 "8449269fdc8ae5d7d494df745e1180d3">
  <!ENTITY psmisc-version "21.4">
  <!ENTITY psmisc-package "psmisc-&psmisc-version;.tar.gz">
  <!ENTITY psmisc-directory "psmisc-&psmisc-version;">
  
  <!ENTITY sed-md5 "d8fb554bc6577aaedd39b94b3cb3df70">
  <!ENTITY sed-version "4.0.9">
  <!ENTITY sed-package "sed-&sed-version;.tar.gz">
  <!ENTITY sed-directory "sed-&sed-version;">
  
  <!ENTITY shadow-md5 "3a3d17d3d7c630b602baf66ae7434c61">
  <!ENTITY shadow-version "4.0.4.1">
  <!ENTITY shadow-package "shadow-&shadow-version;.tar.bz2">
  <!ENTITY shadow-directory "shadow-&shadow-version;">
  
  <!ENTITY sysklogd-md5 "d214aa40beabf7bdb0c9b3c64432c774">
  <!ENTITY sysklogd-version "1.4.1">
  <!ENTITY sysklogd-package "sysklogd-&sysklogd-version;.tar.gz">
  <!ENTITY sysklogd-directory "sysklogd-&sysklogd-version;">
  
  <!ENTITY sysvinit-md5 "8a2d8f1ed5a2909da04132fefa44905e">
  <!ENTITY sysvinit-version "2.85">
  <!ENTITY sysvinit-package "sysvinit-&sysvinit-version;.tar.gz">
  <!ENTITY sysvinit-directory "sysvinit-&sysvinit-version;">
  
  <!ENTITY tar-md5 "6ef8c906e81eee441f8335652670ac4a">
  <!ENTITY tar-version "1.13.25">
  <!ENTITY tar-package "tar-&tar-version;.tar.gz">
  <!ENTITY tar-directory "tar-&tar-version;">
  
  <!ENTITY tcl-md5 "9009a92dc648775fb8a9b0789b995756">
  <!ENTITY tcl-version "8.4.6">
  <!ENTITY tcl-package "tcl&tcl-version;-src.tar.gz">
  <!ENTITY tcl-directory "tcl&tcl-version;">
  
  <!ENTITY texinfo-md5 "d6a771de9e05efd8c1c9152f8b8686d6">
  <!ENTITY texinfo-version "4.6">
  <!ENTITY texinfo-package "texinfo-&texinfo-version;.tar.bz2">
  <!ENTITY texinfo-directory "texinfo-&texinfo-version;">
  
  <!ENTITY util-linux-md5 "5fa39c3d8761b48732be137a06853c64">
  <!ENTITY util-linux-version "2.12a">
  <!ENTITY util-linux-package "util-linux-&util-linux-version;.tar.gz">
  <!ENTITY util-linux-directory "util-linux-&util-linux-version;">
  
  <!ENTITY vim-md5 "c49d360bbd069d00e2a57804f2a123d9">
  <!ENTITY vim-version "6.2">
  <!ENTITY vim-package "vim-&vim-version;.tar.bz2">
  <!ENTITY vim-directory "vim62">
  
  <!ENTITY zlib-md5 "8106069990476a3c5187301465bd7a60">
  <!ENTITY zlib-version "1.2.1">
  <!ENTITY zlib-package "zlib-&zlib-version;.tar.bz2">
  <!ENTITY zlib-directory "zlib-&zlib-version;">
  
  
  
  1.1                  ALFS/profiles/BELFS/scripts/wget.lfs
  
  Index: wget.lfs
  ===================================================================
  #!/bin/sh
  
  if [ -z "$1" ]; then
  	echo "Usage: $0 <destination_dir>"
  	exit 1
  fi
  
  wget -b -P $1 -i wget.lfs.urls -o wget.lfs.log
  
  
  
  1.1                  ALFS/profiles/BELFS/scripts/wget.lfs.urls
  
  Index: wget.lfs.urls
  ===================================================================
  ftp://alpha.gnu.org/pub/gnu/grub/grub-0.94.tar.gz
  ftp://cpan.pair.com/pub/CPAN/src/perl-5.8.3.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/automake/automake-1.8.3.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/bash/bash-2.05b.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/binutils/binutils-2.14.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/bison/bison-1.875.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/coreutils/coreutils-5.2.1.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/dejagnu/dejagnu-1.4.4.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/diffutils/diffutils-2.8.1.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/ed/ed-0.2.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gawk/gawk-3.1.3.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gcc/gcc-2.95.3.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gcc/gcc-3.3.2/gcc-core-3.3.2.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gcc/gcc-3.3.2/gcc-g++-3.3.2.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gcc/gcc-3.3.2/gcc-testsuite-3.3.2.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/gettext/gettext-0.14.1.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/inetutils/inetutils-1.4.2.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/less/less-382.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/libtool/libtool-1.5.2.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/make/make-3.80.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/ncurses/ncurses-5.4.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/non-gnu/flex/flex-2.5.4a.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/texinfo/texinfo-4.6.tar.bz2
  ftp://cudlug.cudenver.edu/pub/mirrors/ftp.gnu.org/gnu/sed/sed-4.0.9.tar.gz
  ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz
  ftp://ftp.cistron.nl/pub/people/svm/procinfo-18.tar.gz
  ftp://ftp.kernel.org/pub/linux/docs/manpages/man-pages-1.66.tar.bz2
  ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.4/modutils-2.4.27.tar.bz2
  ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.25.tar.bz2
  ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.4.1.tar.bz2
  ftp://ftp.seindal.dk/gnu/m4-1.4.tar.gz
  ftp://ftp.vim.org/pub/vim/unix/vim-6.2.tar.bz2
  ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/utils/kbd/kbd-1.12.tar.gz
  ftp://mirror.averse.net/pub/lfs-packages/glibc-2.3.3-20031202.tar.bz2
  ftp://sources.redhat.com/pub/bzip2/v102/bzip2-1.0.2.tar.gz
  
  http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/file/4.08/file-4.08.tar.bz2
  http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/grep/2.5.1/grep-2.5.1.tar.bz2
  http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/groff/1.19/groff-1.19.tar.bz2
  http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/gzip,dev/1.3.5/gzip-1.3.5.tar.bz2
  http://downloads.linuxfromscratch.org/lfs-bootscripts-2.0.2.tar.bz2
  http://downloads.linuxfromscratch.org/~alex/make_devices-1.2.bz2
  http://easynews.dl.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-1.35.tar.gz
  http://easynews.dl.sourceforge.net/sourceforge/psmisc/psmisc-21.4.tar.gz
  http://freshmeat.net/redir/expect/2476/url_tgz/expect.tar.gz
  http://freshmeat.net/redir/findutils/15023/url_tgz/findutils-4.1.20.tar.gz
  http://freshmeat.net/redir/iana-etc/47080/url_bz2/iana-etc-1.00.tar.bz2
  http://freshmeat.net/redir/man/6177/url_bz2/man-1.5m2.tar.bz2
  http://freshmeat.net/redir/mktemp/20624/url_tgz/mktemp-1.5.tar.gz
  http://freshmeat.net/redir/util-linux/11029/url_tgz/util-linux-2.12a.tar.gz
  http://public.planetmirror.com/pub/gnu-alpha/tar/tar-1.13.25.tar.gz
  http://procps.sf.net/procps-3.2.1.tar.gz
  http://umn.dl.sourceforge.net/sourceforge/tcl/tcl8.4.6-src.tar.gz
  http://www.gzip.org/zlib/zlib-1.2.1.tar.bz2
  http://www.ibiblio.org/pub/Linux/system/daemons/sysklogd-1.4.1.tar.gz
  http://www.linuxfromscratch.org/patches/lfs/cvs/bash-2.05b-2.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/bison-1.875-attribute.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/coreutils-5.2.1-hostname-1.patch
  http://www.linuxfromscratch.org/patches/downloads/coreutils/coreutils-5.2.1-uname-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/ed-0.2-mkstemp.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/expect-5.40.0-spawn.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/gcc-2.95.3-2.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/gcc-2.95.3-no-fixinc.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/gcc-2.95.3-returntype-fix.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/gcc-3.3.2-no_fixincludes-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/gcc-3.3.2-specs-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/inetutils-1.4.2-no_server_man_pages-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/kbd-1.12-more-programs-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/man-1.5m2-80cols.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/mktemp-1.5-add-tempfile.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/net-tools-1.60-miitool-gcc33-1.patch
  http://www.linuxfromscratch.org/patches/lfs/cvs/perl-5.8.3-libc-1.patch
  http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-1.60.tar.bz2
  
  
  



More information about the alfs-log mailing list