source: general/genlib/libssh2.xml

trunk
Last change on this file was b9874725, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.

Mostly Programming and Xorg sections and dependencies.

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 &lfs121_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;-security_fixes-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">libssh2 Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="cmake"/> (can be used instead of the
85 <command>configure</command> script),
86 <xref linkend="libgcrypt"/> (can be used instead of OpenSSL),
87 <xref linkend="openssh"/> (for some tests), and
88 <ulink url='https://www.docker.com'>Docker</ulink> (for some tests)
89 </para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of libssh2</title>
95
96 <para>
97 <!-- the Terrapin attack -->
98 First, fix a critical security vulnerability in libssh2:
99 </para>
100
101<screen><userinput remap="pre">patch -Np1 -i ../libssh2-&libssh2-version;-security_fixes-1.patch</userinput></screen>
102
103 <para>
104 If you want to test the package, exclude the tests requiring a static
105 library:
106 </para>
107
108<screen><userinput>sed -E '/^DOCKER_TEST/,/^SSHD_TEST/s/test_(auth_keyboard_info.* |hostkey |simple)/$(NOTHING)/' \
109 -i tests/Makefile.inc &amp;&amp;
110autoreconf -fi</userinput></screen>
111
112 <para>
113 Install <application>libssh2</application> by running the following
114 commands:
115 </para>
116
117<screen><userinput>./configure --prefix=/usr \
118 --disable-docker-tests \
119 --disable-static &amp;&amp;
120make</userinput></screen>
121
122 <para>
123 To test the results, issue: <command>make check</command>.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>make install</userinput></screen>
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <parameter>--disable-docker-tests</parameter>: Disable the tests
138 requiring Docker, which is beyond the scope of BLFS. Remove this
139 switch if you've installed Docker and you wish to run the test suite.
140 </para>
141
142 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
143 href="../../xincludes/static-libraries.xml"/>
144
145 </sect2>
146
147 <sect2 role="content">
148 <title>Contents</title>
149
150 <segmentedlist>
151 <segtitle>Installed Programs</segtitle>
152 <segtitle>Installed Library</segtitle>
153 <segtitle>Installed Directories</segtitle>
154
155 <seglistitem>
156 <seg>
157 None
158 </seg>
159 <seg>
160 libssh2.so
161 </seg>
162 <seg>
163 None
164 </seg>
165 </seglistitem>
166 </segmentedlist>
167
168 <variablelist>
169 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
170 <?dbfo list-presentation="list"?>
171 <?dbhtml list-presentation="table"?>
172
173 <varlistentry id="libssh2-lib">
174 <term><filename class="libraryfile">libssh2.so</filename></term>
175 <listitem>
176 <para>
177 contains functions to use the SSH2 protocol
178 </para>
179 <indexterm zone="libssh2 libssh2-lib">
180 <primary sortas="c-libssh2">libssh2.so</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184 </variablelist>
185 </sect2>
186
187</sect1>
Note: See TracBrowser for help on using the repository browser.