[539d7c54] | 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 " ">
|
---|
[35a47ae8] | 9 | <!ENTITY libssh2-md5sum "a01d543fd891ca48fe47726540d50b17">
|
---|
| 10 | <!ENTITY libssh2-size "1.1 MB">
|
---|
[80720f4a] | 11 | <!ENTITY libssh2-buildsize "13 MB (with tests)">
|
---|
[73353e7f] | 12 | <!ENTITY libssh2-time "0.2 SBU (with tests)">
|
---|
[539d7c54] | 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 |
|
---|
[03c0def] | 33 | &lfs113_checked;
|
---|
[539d7c54] | 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 |
|
---|
[1fa9c74] | 69 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[41f721e] | 70 | <itemizedlist spacing="compact">
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>
|
---|
| 73 | Required patch:
|
---|
[2cb4b95] | 74 | <ulink url="&patch-root;/libssh2-&libssh2-version;-upstream_fix-1.patch"/>
|
---|
[41f721e] | 75 | </para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[539d7c54] | 79 | <bridgehead renderas="sect3">libssh2 Dependencies</bridgehead>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[35a47ae8] | 83 | <xref linkend="cmake"/> (can be used instead of the
|
---|
| 84 | <command>configure</command> script),
|
---|
| 85 | <xref linkend="libgcrypt"/> (can be used instead of OpenSSL),
|
---|
| 86 | <xref linkend="openssh"/> (for some tests), and
|
---|
| 87 | <ulink url='https://www.docker.com'>Docker</ulink> (for some tests)
|
---|
[539d7c54] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <para condition="html" role="usernotes">
|
---|
| 91 | User Notes: <ulink url="&blfs-wiki;/libssh2"/>
|
---|
| 92 | </para>
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of libssh2</title>
|
---|
| 97 |
|
---|
[2cb4b95] | 98 | <para>
|
---|
[35a47ae8] | 99 | If you want to test the package, exclude the tests requiring a static
|
---|
| 100 | library:
|
---|
[2cb4b95] | 101 | </para>
|
---|
| 102 |
|
---|
[35a47ae8] | 103 | <screen><userinput>sed -E '/^DOCKER_TEST/,/^SSHD_TEST/s/test_(auth_keyboard_info.* |hostkey |simple)/$(NOTHING)/' \
|
---|
| 104 | -i tests/Makefile.inc &&
|
---|
| 105 | autoreconf -fi</userinput></screen>
|
---|
[2cb4b95] | 106 |
|
---|
[539d7c54] | 107 | <para>
|
---|
| 108 | Install <application>libssh2</application> by running the following
|
---|
| 109 | commands:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[35a47ae8] | 112 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 113 | --disable-docker-tests \
|
---|
| 114 | --disable-static &&
|
---|
[539d7c54] | 115 | make</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | <para>
|
---|
| 118 | To test the results, issue: <command>make check</command>.
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[35a47ae8] | 131 | <para>
|
---|
| 132 | <parameter>--disable-docker-tests</parameter>: Disable the tests
|
---|
| 133 | requiring Docker, which is beyond the scope of BLFS. Remove this
|
---|
| 134 | switch if you've installed Docker and you wish to run the test suite.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[539d7c54] | 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
| 146 | <segtitle>Installed Programs</segtitle>
|
---|
| 147 | <segtitle>Installed Library</segtitle>
|
---|
| 148 | <segtitle>Installed Directories</segtitle>
|
---|
| 149 |
|
---|
| 150 | <seglistitem>
|
---|
| 151 | <seg>
|
---|
| 152 | None
|
---|
| 153 | </seg>
|
---|
| 154 | <seg>
|
---|
| 155 | libssh2.so
|
---|
| 156 | </seg>
|
---|
| 157 | <seg>
|
---|
| 158 | None
|
---|
| 159 | </seg>
|
---|
| 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
| 162 |
|
---|
| 163 | <variablelist>
|
---|
| 164 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 165 | <?dbfo list-presentation="list"?>
|
---|
| 166 | <?dbhtml list-presentation="table"?>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libssh2-lib">
|
---|
| 169 | <term><filename class="libraryfile">libssh2.so</filename></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>
|
---|
[4c24eb0a] | 172 | contains functions to use the SSH2 protocol
|
---|
[539d7c54] | 173 | </para>
|
---|
| 174 | <indexterm zone="libssh2 libssh2-lib">
|
---|
| 175 | <primary sortas="c-libssh2">libssh2.so</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 | </variablelist>
|
---|
| 180 | </sect2>
|
---|
[4c24eb0a] | 181 |
|
---|
[539d7c54] | 182 | </sect1>
|
---|