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 libssh2-download-http "https://www.libssh2.org/download/libssh2-&libssh2-version;.tar.gz">
|
---|
8 | <!ENTITY libssh2-download-ftp " ">
|
---|
9 | <!ENTITY libssh2-md5sum "a01d543fd891ca48fe47726540d50b17">
|
---|
10 | <!ENTITY libssh2-size "1.1 MB">
|
---|
11 | <!ENTITY libssh2-buildsize "13 MB (with tests)">
|
---|
12 | <!ENTITY libssh2-time "0.2 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libssh2" xreflabel="libssh2-&libssh2-version;">
|
---|
16 | <?dbhtml filename="libssh2.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>libssh2-&libssh2-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="libssh2">
|
---|
22 | <primary sortas="a-libssh2">libssh2</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to libssh2</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>Libssh2</application> package is a client-side C library
|
---|
30 | implementing the SSH2 protocol.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | &lfs120_checked;
|
---|
34 |
|
---|
35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing="compact">
|
---|
37 | <listitem>
|
---|
38 | <para>
|
---|
39 | Download (HTTP): <ulink url="&libssh2-download-http;"/>
|
---|
40 | </para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (FTP): <ulink url="&libssh2-download-ftp;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download MD5 sum: &libssh2-md5sum;
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download size: &libssh2-size;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Estimated disk space required: &libssh2-buildsize;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated build time: &libssh2-time;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <!--
|
---|
70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
71 | <itemizedlist spacing="compact">
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Required patch:
|
---|
75 | <ulink url="&patch-root;/libssh2-&libssh2-version;-upstream_fix-1.patch"/>
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 | -->
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">libssh2 Dependencies</bridgehead>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para role="optional">
|
---|
85 | <xref linkend="cmake"/> (can be used instead of the
|
---|
86 | <command>configure</command> script),
|
---|
87 | <xref linkend="libgcrypt"/> (can be used instead of OpenSSL),
|
---|
88 | <xref linkend="openssh"/> (for some tests), and
|
---|
89 | <ulink url='https://www.docker.com'>Docker</ulink> (for some tests)
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="installation">
|
---|
95 | <title>Installation of libssh2</title>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | If you want to test the package, exclude the tests requiring a static
|
---|
99 | library:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen><userinput>sed -E '/^DOCKER_TEST/,/^SSHD_TEST/s/test_(auth_keyboard_info.* |hostkey |simple)/$(NOTHING)/' \
|
---|
103 | -i tests/Makefile.inc &&
|
---|
104 | autoreconf -fi</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Install <application>libssh2</application> by running the following
|
---|
108 | commands:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>./configure --prefix=/usr \
|
---|
112 | --disable-docker-tests \
|
---|
113 | --disable-static &&
|
---|
114 | make</userinput></screen>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | To test the results, issue: <command>make check</command>.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="commands">
|
---|
128 | <title>Command Explanations</title>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | <parameter>--disable-docker-tests</parameter>: Disable the tests
|
---|
132 | requiring Docker, which is beyond the scope of BLFS. Remove this
|
---|
133 | switch if you've installed Docker and you wish to run the test suite.
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
137 | href="../../xincludes/static-libraries.xml"/>
|
---|
138 |
|
---|
139 | </sect2>
|
---|
140 |
|
---|
141 | <sect2 role="content">
|
---|
142 | <title>Contents</title>
|
---|
143 |
|
---|
144 | <segmentedlist>
|
---|
145 | <segtitle>Installed Programs</segtitle>
|
---|
146 | <segtitle>Installed Library</segtitle>
|
---|
147 | <segtitle>Installed Directories</segtitle>
|
---|
148 |
|
---|
149 | <seglistitem>
|
---|
150 | <seg>
|
---|
151 | None
|
---|
152 | </seg>
|
---|
153 | <seg>
|
---|
154 | libssh2.so
|
---|
155 | </seg>
|
---|
156 | <seg>
|
---|
157 | None
|
---|
158 | </seg>
|
---|
159 | </seglistitem>
|
---|
160 | </segmentedlist>
|
---|
161 |
|
---|
162 | <variablelist>
|
---|
163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
164 | <?dbfo list-presentation="list"?>
|
---|
165 | <?dbhtml list-presentation="table"?>
|
---|
166 |
|
---|
167 | <varlistentry id="libssh2-lib">
|
---|
168 | <term><filename class="libraryfile">libssh2.so</filename></term>
|
---|
169 | <listitem>
|
---|
170 | <para>
|
---|
171 | contains functions to use the SSH2 protocol
|
---|
172 | </para>
|
---|
173 | <indexterm zone="libssh2 libssh2-lib">
|
---|
174 | <primary sortas="c-libssh2">libssh2.so</primary>
|
---|
175 | </indexterm>
|
---|
176 | </listitem>
|
---|
177 | </varlistentry>
|
---|
178 | </variablelist>
|
---|
179 | </sect2>
|
---|
180 |
|
---|
181 | </sect1>
|
---|