source: networking/netlibs/curl.xml@ 6cbd464

systemd-13485
Last change on this file since 6cbd464 was 6cbd464, checked in by Douglas R. Reno <renodr@…>, 8 years ago

(both) Update to cURL-7.49.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17389 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "de75665721e3adb0a1d7e03b90c3d7a2">
10 <!ENTITY curl-size "5.7 MB">
11 <!ENTITY curl-buildsize "57 MB (additional 9 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (additional 9.6 SBU for tests)">
13]>
14
15<sect1 id="curl" xreflabel="cURL-&curl-version;">
16 <?dbhtml filename="curl.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cURL-&curl-version;</title>
24
25 <indexterm zone="curl">
26 <primary sortas="a-cURL">cURL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cURL</title>
31
32 <para>
33 The <application>cURL</application> package contains an utility
34 and a library used for transferring files with URL syntax to any of
35 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
36 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
37 and upload files can be incorporated into other programs to support
38 functions like streaming media.
39 </para>
40
41 &lfs79_checked;&gcc6_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&curl-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&curl-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &curl-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &curl-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &curl-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &curl-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="cacerts"/> and
82 <xref linkend="openssl"/> or <xref linkend="gnutls"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="libidn"/>,
88 <xref linkend="mitkrb"/>,
89 <xref linkend="openldap"/>,
90 <xref linkend="samba"/>,
91 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
92 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
93 <ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
94 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
95 <ulink url="http://www.libssh2.org">libssh2</ulink>,
96 <ulink url="https://nghttp2.org/">nghttp2</ulink>,
97 <ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
98 PolarSSL)</ulink>, and
99 <ulink url="http://spnego.sourceforge.net/">
100 SPNEGO</ulink>
101 </para>
102
103 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
104 <para role="optional">
105 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
106 <xref linkend="valgrind"/>
107 </para>
108
109 <para condition="html" role="usernotes">User Notes:
110 <ulink url="&blfs-wiki;/curl"/>
111 </para>
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of cURL</title>
116
117 <para>
118 Install <application>cURL</application> by running the following
119 commands:
120 </para>
121
122<screen><userinput>./configure --prefix=/usr \
123 --disable-static \
124 --enable-threaded-resolver &amp;&amp;
125make</userinput></screen>
126
127<!-- <para>
128 Running the test suite is optional. About 2% of the tests fail. Increase
129 in test time by each failed test is about 10%. Tests SBU above was
130 obtained disabling failing tests, with:
131 </para>
132
133<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
134<literal>564
135700
136701
137703
138706
139707
140708
141709
142710
143711
144712</literal>
145EOF</userinput></screen>
146
147I had the following fail:
148 300 301 303 304 306 309 310 311 312 325
149 400 401 403 406 407 408 409 560 1112 2034
1502035 2037 2038 2041 2042
151
152 - Bruce 20151016
153
154Tests may be using capabilites removed from recent ssh due to
155security issues.
156
157
158 <para>
159 and running <command>make test</command>.
160 </para>-->
161
162 <para>
163 To run the test suite, issue: <command>make test</command>. Two tests,
164 1139 and 1140, may fail.<!-- Some
165 tests (up to 2%) may fail due to timing issues, kernel configuration,
166 or other issues.-->
167 </para>
168
169 <para>
170 Now, as the <systemitem class="username">root</systemitem>
171 user:
172 </para>
173
174<screen role="root"><userinput>make install &amp;&amp;
175
176cp -a docs docs-save &amp;&amp;
177rm -rf docs/examples/.deps &amp;&amp;
178
179find docs \( -name Makefile\* \
180 -o -name \*.1 \
181 -o -name \*.3 \) \
182 -exec rm {} \; &amp;&amp;
183install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
184cp -v -R docs/* /usr/share/doc/curl-&curl-version; &amp;&amp;
185
186rm -rf docs &amp;&amp;
187mv -i docs-save doc</userinput></screen>
188
189 <para>
190 Simple tests to the new installed <command>curl</command>:
191 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
192 and
193 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
194 Inspect the locally created trace files <filename>debugdump.txt</filename>
195 and <filename>d.txt</filename>, which contain version downloaded
196 files information, etc. One file has the time for each action logged.
197 </para>
198 </sect2>
199
200 <sect2 role="commands">
201 <title>Command Explanations</title>
202
203 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
204 href="../../xincludes/static-libraries.xml"/>
205
206 <para>
207 <parameter>--enable-threaded-resolver</parameter>: This switch enables
208 <application>cURL</application>'s builtin threaded DNS resolver.
209 </para>
210
211 <para>
212 <option>--with-gssapi</option>: This parameter adds
213 <application>Kerberos 5</application> support to
214 <filename class="libraryfile">libcurl</filename>.
215 </para>
216
217 <para>
218 <option>--without-ssl --with-gnutls</option>: Use to
219 build with <application>GnuTLS</application> support
220 instead of <application>OpenSSL</application> for SSL/TLS.
221 </para>
222
223 <para>
224 <command>find docs ... -exec rm {} \;</command>: This command removes
225 <filename>Makefiles</filename> and man files from the documentation
226 directory that would otherwise be installed by the commands that follow.
227 </para>
228
229 </sect2>
230
231 <sect2 role="content">
232 <title>Contents</title>
233
234 <segmentedlist>
235 <segtitle>Installed Programs</segtitle>
236 <segtitle>Installed Library</segtitle>
237 <segtitle>Installed Directories</segtitle>
238
239 <seglistitem>
240 <seg>
241 curl and curl-config
242 </seg>
243 <seg>
244 libcurl.so
245 </seg>
246 <seg>
247 /usr/include/curl and
248 /usr/share/doc/curl-&curl-version;
249 </seg>
250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="curl-prog">
259 <term><command>curl</command></term>
260 <listitem>
261 <para>
262 is a command line tool for transferring files with URL syntax.
263 </para>
264 <indexterm zone="curl curl-prog">
265 <primary sortas="b-curl">curl</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="curl-config">
271 <term><command>curl-config</command></term>
272 <listitem>
273 <para>
274 prints information about the last compile, like libraries
275 linked to and prefix setting.
276 </para>
277 <indexterm zone="curl curl-config">
278 <primary sortas="b-curl-config">curl-config</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="libcurl">
284 <term><filename class="libraryfile">libcurl.so</filename></term>
285 <listitem>
286 <para>
287 provides the API functions required by
288 <command>curl</command> and other programs.
289 </para>
290 <indexterm zone="curl libcurl">
291 <primary sortas="c-libcurl">libcurl.so</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 </variablelist>
297
298 </sect2>
299
300</sect1>
Note: See TracBrowser for help on using the repository browser.