Index: README.CUSTOM
===================================================================
--- README.CUSTOM	(revision e22aa9615e252fc2a5a82ff159959eb7a57f8c91)
+++ README.CUSTOM	(revision 2257bd71b769e4f72428840c73d5b3c1ff16d3a1)
@@ -60,5 +60,5 @@
   To replace a package by an equivalent one, rename the replaced package script
 to reflect the new package name (for example, 102-man-db -> 102-man), edit the
-script to made the required commands changes, place the new tarball in the
+script to make the required commands changes, place the new tarball in the
 ${BUILD_DIR}/sources directory, and edit ${BUILD_DIR}/${SCRIPT_ROOT}/pkg_tarball_list
 file to replace the removed package tarball name by the new package tarball
@@ -99,11 +99,4 @@
 install system.
 
-  :::NOTICE:::
-  The following examples are for use with LFS and are not applicable to any
-of the CLFS-sysroot or CLFS-Embedded books. The directory examples_CLFS-E
-contains code extracted from Beyond CLFS-embedded. Any packages you chose to
-add should honour the DESTDIR=${CLFS} switch or equivalent.
-
-
   LAYOUT
   A new directory has been added to JHALFS tree which contains the
@@ -133,23 +126,40 @@
 
   2. Populate the variables with the necessary values.
-       Variable function is self explanatory except for the inclusion of the
-       build cmds. If the package you want to include is found in the BLFS
-       book then you only need to copy/paste the cmd strings between the xEOFx
-       pairs, otherwise you will need to define the build cmds yourself.
+       Variable function is self explanatory. PATCH variables must be
+       numbered, starting at PATCH1 (up to PATCH10). If the md5 checksum value
+       is known, it can be added after the URL as in (quotes needed):
+       PATCH1="http://patch-host/patch-path xxxxxxx..."
+
+  3. Build commands
+       If the package you want to include is found in the BLFS
+       book then you only need to copy/paste the commands between the xEOFx
+       text, otherwise you will need to define the commands yourself.
      NOTE::: This script you just created is not usable directly but contains
              all the information necessary for jhalfs to create a build script
 	     and an entry in the jhalfs Makefile.
 
-  3. As mentioned previously the build order is dictated by the 3 digit number
+  4. As mentioned previously the build order is dictated by the 3 digit number
      in the file name. If a package has dependencies it must be numerically
      larger than the dependency files.
-       i.e. The package mc has glib as a dependency and build order is
+       e.g. The package mc has glib as a dependency, so the build order is:
            950-glib
-	   951-mc
-
-  4. A config file for BLFS-bootscripts is already created as 999-blfs_bootscripts.
+           951-mc
+
+  5. A config file for BLFS-bootscripts is already created as 999-blfs_bootscripts.
      If a package requires a bootscript to be installed add the cmd to this
      file and NOT in the package script. The gpm script is included as an
-     example of multiple patch files and the need for a blfs bootscript.
+     example of patch file and the need for a blfs bootscript.
+
+
+  EXAMPLES
+
+    Other examples can be found in custom/examples. They are dated and
+    unmaintained, but can be useful for creating your own scripts.
+
+  :::NOTICE:::
+  The following examples are for use with LFS and are not applicable to any
+of the CLFS-sysroot or CLFS-Embedded books. The directory examples_CLFS-E
+contains code extracted from Beyond CLFS-embedded. Any packages you chose to
+add should honour the DESTDIR=${CLFS} switch or equivalent.
 
 
@@ -174,5 +184,4 @@
   # Patches are named PATCH[1..10]
   # This information is used to download the patch only
-  # If you do not have the MD5SUM the download will proceed with a warning.
 PATCH1="http://www.linuxfromscratch.org/patches/blfs/svn/glib-1.2.10-gcc34-1.patch 0077a1cce5e8a2231ac5a9b08c6263ba"
 
@@ -205,6 +214,4 @@
    unset $i
 done
-  # MD5SUM is not absolutely necessary but JHALFS whines and complains
-  # Add the MD5SUM if you can
 PATCH1=" http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-segfault-1.patch"
 PATCH2=" http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-silent-1.patch"
@@ -264,3 +271,2 @@
 xEOFx
 ) > tmp
-
Index: custom/examples/941-pcre
===================================================================
--- custom/examples/941-pcre	(revision e22aa9615e252fc2a5a82ff159959eb7a57f8c91)
+++ custom/examples/941-pcre	(revision 2257bd71b769e4f72428840c73d5b3c1ff16d3a1)
@@ -10,5 +10,5 @@
    unset $i
 done
-PATCH1="http://www.linuxfromscratch.org/patches/blfs/7.8/pcre-8.37-upstream_fixes-1.patch 718c4314fba52ed559c75ff7660cc391"
+PATCH1="https://www.linuxfromscratch.org/patches/downloads/pcre/pcre-8.37-upstream_fixes-1.patch 718c4314fba52ed559c75ff7660cc391"
 
 ( cat << "xEOFx"
Index: custom/examples/963-gpm
===================================================================
--- custom/examples/963-gpm	(revision e22aa9615e252fc2a5a82ff159959eb7a57f8c91)
+++ custom/examples/963-gpm	(revision 2257bd71b769e4f72428840c73d5b3c1ff16d3a1)
@@ -5,14 +5,16 @@
 PKG_VERSION="1.20.7"
 PKG_FILE="gpm-${PKG_VERSION}.tar.bz2"
-URL="http://www.nico.schottelius.org/software/gpm/archives/${PKG_FILE}"
+URL="https://anduin.linuxfromscratch.org/BLFS/gpm/${PKG_FILE}"
 MD5="bf84143905a6a903dbd4d4b911a2a2b8"
 for i in PATCH{1..10}; do
    unset $i
 done
+PATCH1="https://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.7-consolidated-1.patch"
 
 ( cat << "xEOFx"
 
-./autogen.sh                                &&
-./configure --prefix=/usr --sysconfdir=/etc &&
+patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch &&
+./autogen.sh                                     &&
+./configure --prefix=/usr --sysconfdir=/etc      &&
 make
 
@@ -22,12 +24,13 @@
              /usr/share/info/gpm.info                 &&
 
+rm -fv /usr/lib/libgpm.a                              &&
 ln -sfv libgpm.so.2.1.0 /usr/lib/libgpm.so            &&
 install -v -m644 conf/gpm-root.conf /etc              &&
 
-install -v -m755 -d /usr/share/doc/gpm-${PKG_FILE}/support &&
+install -v -m755 -d /usr/share/doc/gpm-1.20.7/support &&
 install -v -m644    doc/support/*                     \
-                    /usr/share/doc/gpm-${PKG_FILE}/support &&
+                    /usr/share/doc/gpm-1.20.7/support &&
 install -v -m644    doc/{FAQ,HACK_GPM,README*}        \
-                    /usr/share/doc/gpm-${PKG_FILE}
+                    /usr/share/doc/gpm-1.20.7
 
 # The normal cmd to install the boot script for gpm
Index: custom/template
===================================================================
--- custom/template	(revision e22aa9615e252fc2a5a82ff159959eb7a57f8c91)
+++ custom/template	(revision 2257bd71b769e4f72428840c73d5b3c1ff16d3a1)
@@ -14,7 +14,15 @@
 done
 PATCH1=""
+# Up to 10 patches can be added. The PATCH variable must be numbered
+# even if there is only one. If the patch md5 checksum is known, add
+# it after the name as in (quotes are required):
+# PATCHx="patch-url md5"
 
 ( cat << "xEOFx"
-
+# Your script here. Be aware that it is passed
+# verbatim, and that none of the above variables
+# will be defined when running the script. For example,
+# If you want to use ${PKG_VERSION}, you have to
+# redefine it here.
 xEOFx
 ) > tmp
