[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, master, updated. 52595c6d9ab1c1e9fe1935583f59afe1ca3c9a68

git git at cross-lfs.org
Mon Sep 3 11:25:03 PDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, master has been updated
       via  52595c6d9ab1c1e9fe1935583f59afe1ca3c9a68 (commit)
      from  2d20c29d7b360dddf2ced78e7a8613ef2f856ed6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 52595c6d9ab1c1e9fe1935583f59afe1ca3c9a68
Author: William Harrington <kb0iic at gmail.com>
Date:   Mon Sep 3 13:24:57 2012 -0500

    Add Download Client page to The End section.

diff --git a/BOOK/general.ent b/BOOK/general.ent
index dc13c87..5b65ac9 100644
--- a/BOOK/general.ent
+++ b/BOOK/general.ent
@@ -2,7 +2,7 @@
 
 <!ENTITY month "09"> <!-- Use two digits -->
 <!ENTITY month_name "August">
-<!ENTITY day "01"> <!-- Use two digits -->
+<!ENTITY day "03"> <!-- Use two digits -->
 <!ENTITY year "2012"> <!-- Use four digits -->
 
 <!ENTITY releasedate "&month_name; &day;, &year;">
diff --git a/BOOK/introduction/common/changelog.xml b/BOOK/introduction/common/changelog.xml
index cd18950..73bb4a6 100644
--- a/BOOK/introduction/common/changelog.xml
+++ b/BOOK/introduction/common/changelog.xml
@@ -35,7 +35,16 @@
       </itemizedlist>
     </listitem>
 -->
-     <listitem>
+    <listitem>
+      <para>September 03, 2012</para>
+      <itemizedlist>
+        <listitem>
+          <para>[William Harrington] - Add a new Download Client page to The end section.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>August 30, 2012</para>
       <itemizedlist>
         <listitem>
diff --git a/BOOK/the-end/chapter.xml b/BOOK/the-end/chapter.xml
index ff21a1d..f911c55 100644
--- a/BOOK/the-end/chapter.xml
+++ b/BOOK/the-end/chapter.xml
@@ -12,6 +12,7 @@
   <title>The End</title>
 
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="theend.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="downloadclient.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="reboot.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="whatnow.xml"/>
 
diff --git a/BOOK/the-end/downloadclient.xml b/BOOK/the-end/downloadclient.xml
new file mode 100644
index 0000000..bd91577
--- /dev/null
+++ b/BOOK/the-end/downloadclient.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-finish-downloadclient">
+  <?dbhtml filename="downloadclient.html"?>
+
+  <title>Download Client</title>
+
+  <para>The final system build does not install an FTP or HTTP client for downloading files.</para>
+
+  <itemizedlist>
+    <para>Some suggested clients include:</para>
+    <listitem>
+      <para>Curl <ulink url="&cblfs-root;index.php/Curl"/></para>
+    </listitem>
+    <listitem>
+      <para>Inetutils <ulink url="&cblfs-root;index.php/Inetutils"/></para>
+    </listitem>
+    <listitem>
+      <para>LFTP <ulink url="http://lftp.yar.ru/"/></para>
+    </listitem>
+    <listitem>
+      <para>Links <ulink url="&cblfs-root;index.php/Links"/></para>
+    </listitem>
+    <listitem>
+      <para>Lynx <ulink url="&cblfs-root;index.php/Lynx"/></para>
+    </listitem>
+    <listitem>
+      <para>NcFTP Client <ulink url="http://www.ncftp.com/ncftp/"/></para>
+    </listitem>
+    <listitem>
+      <para>Wget <ulink url="&cblfs-root;index.php/Wget"/></para>
+    </listitem>
+    <listitem>
+      <para>BASH - A user can use net redirections (if not disabled when building bash in the final system) to download wget or another program.</para>
+<screen><userinput>cat > download.sh << "EOF"
+#!/bin/bash
+
+WGET_VERSION='1.14'
+WGET_HOSTNAME='ftp.gnu.org'
+exec {HTTP_FD}<>/dev/tcp/${WGET_HOSTNAME}/80
+echo -ne "GET /gnu/wget/wget-${WGET_VERSION}.tar.xz HTTP/1.1\r\nHost: "\
+    ${WGET_HOSTNAME}'\r\nUser-Agent: '\
+    'bash/'${BASH_VERSION}'\r\n\r\n'  >&${HTTP_FD}
+sed -e '1,/^.$/d' <&${HTTP_FD} >wget-${WGET_VERSION}.tar.xz
+EOF</userinput></screen>
+    </listitem>
+    <listitem>
+      <para>GAWK</para>
+<screen><userinput>cat > gawkdl.sh << "EOF"
+#!/bin/bash
+
+gawk 'BEGIN {
+  NetService = "/inet/tcp/0/mirror.anl.gov/80"
+  print "GET /pub/gnu/wget/wget-1.14.tar.xz" |& NetService
+  while ((NetService |& getline) > 0)
+    print $0
+  close(NetService)
+}' > binary
+
+gawk '{q=p;p=$0}NR>1{print q}END{ORS = ""; print p}' binary > wget-1.14.tar.xz 
+
+rm binary
+EOF</userinput></screen>
+    </listitem>
+    <listitem>
+      <para>PERL with HTTP::Tiny (Included with final system PERL install).</para>
+<screen><userinput>cat > download.pl << "EOF"
+#!/usr/bin/perl
+
+use HTTP::Tiny;
+my $http = HTTP::Tiny->new;
+my $response;
+
+$response = $http->mirror('http://ftp.gnu.org/gnu/wget/wget-1.14.tar.xz', 'wget-1.14.tar.xz');
+die "Failed!\n" unless $response->{success};
+print "Unchanged!\n" if $response->{status} eq '304';      
+EOF</userinput></screen>
+      <para>Or use this:</para>
+<screen><userinput>perl -MHTTP::Tiny -E 'say HTTP::Tiny->new->get(shift)->{content}' "http://ftp.gnu.org/gnu/wget/wget-1.14.tar.xz" > binary
+perl -e 'local $/; $_ = <>; s/\n$//; print' binary > wget-1.14.tar.xz
+rm binary</userinput></screen>
+    </listitem>
+    <listitem>
+  <para>PERL with LWP: Run <command>cpan</command> and manually configure the client. Run <command>install LWP</command> while in the CPAN shell.</para>
+    <para>Refer to <ulink url="http://www.bioinfo-user.org.uk/dokuwiki/doku.php/projects/wgetpl"/> for wgetpl.</para>
+    </listitem>
+  </itemizedlist>
+
+</sect1>

-----------------------------------------------------------------------

Summary of changes:
 BOOK/general.ent                       |    2 +-
 BOOK/introduction/common/changelog.xml |   11 ++++-
 BOOK/the-end/chapter.xml               |    1 +
 BOOK/the-end/downloadclient.xml        |   94 ++++++++++++++++++++++++++++++++
 4 files changed, 106 insertions(+), 2 deletions(-)
 create mode 100644 BOOK/the-end/downloadclient.xml


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list