[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[600f3e1] | 7 | <!ENTITY ncftp-download-http "https://www.ncftp.com/downloads/ncftp/ncftp-&ncftp-version;-src.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY ncftp-download-ftp " ">
|
---|
[e137dc2] | 9 | <!ENTITY ncftp-md5sum "bbcb048d2412f4d62bc798818e703680">
|
---|
| 10 | <!ENTITY ncftp-size "416 KB">
|
---|
| 11 | <!ENTITY ncftp-buildsize "6.9 MB">
|
---|
[6f8ecea] | 12 | <!ENTITY ncftp-time "0.2 SBU">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[377584f] | 15 | <sect1 id="ncftp" xreflabel="NcFTP-&ncftp-version;">
|
---|
[ef3ec45] | 16 | <?dbhtml filename="ncftp.html"?>
|
---|
[bab92281] | 17 |
|
---|
| 18 |
|
---|
[377584f] | 19 | <title>NcFTP-&ncftp-version;</title>
|
---|
[bab92281] | 20 |
|
---|
[ef3ec45] | 21 | <indexterm zone="ncftp">
|
---|
| 22 | <primary sortas="a-NcFTP">NcFTP</primary>
|
---|
| 23 | </indexterm>
|
---|
[bab92281] | 24 |
|
---|
[ef3ec45] | 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to NcFTP</title>
|
---|
| 27 |
|
---|
[b51fe6e] | 28 | <para>
|
---|
| 29 | The <application>NcFTP</application> package contains
|
---|
| 30 | a powerful and flexible interface to the Internet standard File Transfer
|
---|
| 31 | Protocol. It is intended to replace or supplement the stock
|
---|
| 32 | <command>ftp</command> program.
|
---|
| 33 | </para>
|
---|
[bab92281] | 34 |
|
---|
[fc09938] | 35 | &lfs122_checked;
|
---|
[00555b0f] | 36 |
|
---|
[ef3ec45] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[b51fe6e] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&ncftp-download-http;"/>
|
---|
| 42 | </para>
|
---|
[ef3ec45] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[b51fe6e] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&ncftp-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[ef3ec45] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b51fe6e] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &ncftp-md5sum;
|
---|
| 52 | </para>
|
---|
[ef3ec45] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[b51fe6e] | 55 | <para>
|
---|
| 56 | Download size: &ncftp-size;
|
---|
| 57 | </para>
|
---|
[ef3ec45] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[b51fe6e] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &ncftp-buildsize;
|
---|
| 62 | </para>
|
---|
[ef3ec45] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[b51fe6e] | 65 | <para>
|
---|
| 66 | Estimated build time: &ncftp-time;
|
---|
| 67 | </para>
|
---|
[2174baa] | 68 | </listitem>
|
---|
[ef3ec45] | 69 | </itemizedlist>
|
---|
[e137dc2] | 70 | <!--
|
---|
[c1e25d1] | 71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 72 | <itemizedlist spacing="compact">
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Required patch:
|
---|
| 76 | <ulink url="&patch-root;/ncftp-&ncftp-version;-configure_fixes-1.patch"/>
|
---|
| 77 | </para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[e54d2e5] | 81 | <bridgehead renderas="sect3">NcFTP Dependencies</bridgehead>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
| 85 | <xref linkend="llvm"/> (with Clang, used by default if installed)
|
---|
| 86 | </para>
|
---|
[e137dc2] | 87 | -->
|
---|
[ef3ec45] | 88 | </sect2>
|
---|
[bab92281] | 89 |
|
---|
[ef3ec45] | 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of NcFTP</title>
|
---|
| 92 |
|
---|
[b51fe6e] | 93 | <para>
|
---|
| 94 | There are two ways to build <application>NcFTP</application>. The first
|
---|
| 95 | (and optimal) way builds most of the functionality as a shared library
|
---|
| 96 | and then builds and installs the program linked against this library.
|
---|
| 97 | The second method simply links all of the functionality into the binary
|
---|
| 98 | statically. This doesn't make the dynamic library available for linking
|
---|
| 99 | by other applications. You need to choose which method best suits you.
|
---|
| 100 | Note that the second method does <emphasis>not</emphasis> create an
|
---|
| 101 | entirely statically linked binary; only the <filename
|
---|
| 102 | class="libraryfile">libncftp</filename> parts are statically linked in,
|
---|
| 103 | in this case. Be aware that building and using the shared library is
|
---|
| 104 | covered by the Clarified Artistic License; however, developing
|
---|
| 105 | applications that utilize the shared library is subject to a different
|
---|
| 106 | license.
|
---|
| 107 | </para>
|
---|
[668c07b] | 108 |
|
---|
[c1e25d1] | 109 | <para>
|
---|
[51772cc] | 110 | First, fix an issue with the configure script introduced by gcc-14:
|
---|
[c1e25d1] | 111 | </para>
|
---|
| 112 |
|
---|
[51772cc] | 113 | <screen><userinput remap="pre">sed -i 's/def HAVE_STDLIB_H/ 1/;s/extern select/extern int select/' configure</userinput></screen>
|
---|
| 114 |
|
---|
[b51fe6e] | 115 | <para>
|
---|
| 116 | To install <application>NcFTP</application> using the
|
---|
| 117 | first (and optimal) method, run the following commands:
|
---|
| 118 | </para>
|
---|
[ef3ec45] | 119 |
|
---|
[e137dc2] | 120 | <screen><userinput>CC=/usr/bin/gcc \
|
---|
| 121 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[6f8ecea] | 122 | make -C libncftp shared &&
|
---|
| 123 | make</userinput></screen>
|
---|
[108485b3] | 124 |
|
---|
[b51fe6e] | 125 | <para>
|
---|
| 126 | This package does not come with a test suite.
|
---|
| 127 | </para>
|
---|
[108485b3] | 128 |
|
---|
[b51fe6e] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[108485b3] | 132 |
|
---|
[6f8ecea] | 133 | <screen role='root'><userinput>make -C libncftp soinstall &&
|
---|
| 134 | make install</userinput></screen>
|
---|
[d47e7ea9] | 135 |
|
---|
[b51fe6e] | 136 | <para>
|
---|
| 137 | To install <application>NcFTP</application> using the
|
---|
| 138 | second method (with the <filename class="libraryfile">libncftp</filename>
|
---|
| 139 | functionality linked in statically) run the following commands:
|
---|
| 140 | </para>
|
---|
[d47e7ea9] | 141 |
|
---|
[f67554b0] | 142 | <screen role="nodump"><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[108485b3] | 143 | make</userinput></screen>
|
---|
| 144 |
|
---|
[b51fe6e] | 145 | <para>
|
---|
| 146 | This package does not come with a test suite.
|
---|
| 147 | </para>
|
---|
[6f8ecea] | 148 |
|
---|
[b51fe6e] | 149 | <para>
|
---|
| 150 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 151 | </para>
|
---|
[108485b3] | 152 |
|
---|
[f67554b0] | 153 | <screen role="nodump"><userinput>make install</userinput></screen>
|
---|
[bab92281] | 154 |
|
---|
[ef3ec45] | 155 | </sect2>
|
---|
[bab92281] | 156 |
|
---|
[ef3ec45] | 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
[e137dc2] | 160 | <para>
|
---|
| 161 | <envar>CC=/usr/bin/gcc</envar>. This environment variable ensures
|
---|
| 162 | that <command>gcc</command> is used if <xref linkend="llvm"/> is
|
---|
| 163 | installed. The build procedure is broken if <command>gcc</command>
|
---|
| 164 | is not used.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
[b51fe6e] | 167 | <para>
|
---|
| 168 | <command>make -C ... && make -C ...</command>:
|
---|
| 169 | These commands make and install the dynamic library <filename
|
---|
| 170 | class="libraryfile">libncftp</filename> which is then used to link
|
---|
| 171 | against when compiling the main program.
|
---|
| 172 | </para>
|
---|
[bab92281] | 173 |
|
---|
[ef3ec45] | 174 | </sect2>
|
---|
[bab92281] | 175 |
|
---|
[10ef2773] | 176 | <!--
|
---|
[ef3ec45] | 177 | <sect2 role="configuration">
|
---|
| 178 | <title>Configuring NcFTP</title>
|
---|
[bab92281] | 179 |
|
---|
[ef3ec45] | 180 | <sect3 id="ncftp-config">
|
---|
| 181 | <title>Config Files</title>
|
---|
[bab92281] | 182 |
|
---|
[b51fe6e] | 183 | <para>
|
---|
| 184 | <filename>/etc/ncftp.*</filename> and
|
---|
| 185 | <filename>~/.ncftp/*</filename>; especially
|
---|
| 186 | <filename>/etc/ncftp.prefs_v3</filename> and
|
---|
| 187 | <filename>~/.ncftp/prefs_v3</filename>
|
---|
| 188 | </para>
|
---|
[bab92281] | 189 |
|
---|
[ef3ec45] | 190 | <indexterm zone="ncftp ncftp-config">
|
---|
| 191 | <primary sortas="e-AA.ncftp/*">~/.ncftp/*</primary>
|
---|
| 192 | </indexterm>
|
---|
[bab92281] | 193 |
|
---|
[6f8ecea] | 194 | <indexterm zone="ncftp ncftp-config">
|
---|
| 195 | <primary sortas="e-etc-ncftp.*">/etc/ncftp.*</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 |
|
---|
[ef3ec45] | 198 | </sect3>
|
---|
[bab92281] | 199 |
|
---|
[ef3ec45] | 200 | <sect3>
|
---|
| 201 | <title>Configuration Information</title>
|
---|
| 202 |
|
---|
[b51fe6e] | 203 | <para>
|
---|
| 204 | Most <application>NcFTP</application> configuration is done while in
|
---|
| 205 | the program, and the configuration files are dealt with automatically.
|
---|
| 206 | One exception to this is <filename>~/.ncftp/prefs_v3</filename>. There
|
---|
| 207 | are various options to alter in there, including:
|
---|
| 208 | </para>
|
---|
[ef3ec45] | 209 |
|
---|
[bab92281] | 210 | <screen><literal>yes-i-know-about-NcFTPd=yes</literal></screen>
|
---|
[ef3ec45] | 211 |
|
---|
[b51fe6e] | 212 | <para>
|
---|
| 213 | This disables the splash screen advertising the
|
---|
| 214 | <application>NcFTPd</application> server.
|
---|
| 215 | </para>
|
---|
[bab92281] | 216 |
|
---|
[b51fe6e] | 217 | <para>
|
---|
| 218 | There are other options in the <filename>prefs_v3</filename> file.
|
---|
| 219 | Most of these are self-explanatory. Global defaults can be set in
|
---|
| 220 | <filename>/etc/ncftp.prefs_v3</filename>.
|
---|
| 221 | </para>
|
---|
[bab92281] | 222 |
|
---|
[ef3ec45] | 223 | </sect3>
|
---|
[bab92281] | 224 |
|
---|
[ef3ec45] | 225 | </sect2>
|
---|
[10ef2773] | 226 | -->
|
---|
[bab92281] | 227 |
|
---|
[ef3ec45] | 228 | <sect2 role="content">
|
---|
| 229 | <title>Contents</title>
|
---|
[bab92281] | 230 |
|
---|
[ef3ec45] | 231 | <segmentedlist>
|
---|
| 232 | <segtitle>Installed Programs</segtitle>
|
---|
| 233 | <segtitle>Installed Library</segtitle>
|
---|
| 234 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 235 |
|
---|
[ef3ec45] | 236 | <seglistitem>
|
---|
| 237 | <seg>ncftp, ncftpbatch, ncftpbookmarks, ncftpget,
|
---|
| 238 | ncftpls, ncftpput, and ncftpspooler</seg>
|
---|
[108485b3] | 239 | <seg>libncftp.so</seg>
|
---|
| 240 | <seg>None</seg>
|
---|
[ef3ec45] | 241 | </seglistitem>
|
---|
| 242 | </segmentedlist>
|
---|
[bab92281] | 243 |
|
---|
[ef3ec45] | 244 | <variablelist>
|
---|
| 245 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 246 | <?dbfo list-presentation="list"?>
|
---|
| 247 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 248 |
|
---|
[ef3ec45] | 249 | <varlistentry id="ncftp-prog">
|
---|
| 250 | <term><command>ncftp</command></term>
|
---|
| 251 | <listitem>
|
---|
[b51fe6e] | 252 | <para>
|
---|
[4c24eb0a] | 253 | is a browser program for File Transfer Protocol
|
---|
[b51fe6e] | 254 | </para>
|
---|
[ef3ec45] | 255 | <indexterm zone="ncftp ncftp-prog">
|
---|
| 256 | <primary sortas="b-ncftp">ncftp</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
[bab92281] | 260 |
|
---|
[ef3ec45] | 261 | <varlistentry id="ncftpbatch">
|
---|
| 262 | <term><command>ncftpbatch</command></term>
|
---|
| 263 | <listitem>
|
---|
[b51fe6e] | 264 | <para>
|
---|
[4c24eb0a] | 265 | is an individual batch FTP job processor
|
---|
[b51fe6e] | 266 | </para>
|
---|
[ef3ec45] | 267 | <indexterm zone="ncftp ncftpbatch">
|
---|
| 268 | <primary sortas="b-ncftpbatch">ncftpbatch</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
[bab92281] | 272 |
|
---|
[ef3ec45] | 273 | <varlistentry id="ncftpbookmarks">
|
---|
| 274 | <term><command>ncftpbookmarks</command></term>
|
---|
| 275 | <listitem>
|
---|
[b51fe6e] | 276 | <para>
|
---|
| 277 | is the <application>NcFTP</application> Bookmark Editor
|
---|
[4c24eb0a] | 278 | (<application>NCurses</application>-based)
|
---|
[b51fe6e] | 279 | </para>
|
---|
[ef3ec45] | 280 | <indexterm zone="ncftp ncftpbookmarks">
|
---|
| 281 | <primary sortas="b-ncftpbookmarks">ncftpbookmarks</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
[bab92281] | 285 |
|
---|
[ef3ec45] | 286 | <varlistentry id="ncftpget">
|
---|
| 287 | <term><command>ncftpget</command></term>
|
---|
| 288 | <listitem>
|
---|
[b51fe6e] | 289 | <para>
|
---|
| 290 | is an internet file transfer program for scripts used to
|
---|
[4c24eb0a] | 291 | retrieve files
|
---|
[b51fe6e] | 292 | </para>
|
---|
[ef3ec45] | 293 | <indexterm zone="ncftp ncftpget">
|
---|
| 294 | <primary sortas="b-ncftpget">ncftpget</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
[bab92281] | 298 |
|
---|
[ef3ec45] | 299 | <varlistentry id="ncftpls">
|
---|
| 300 | <term><command>ncftpls</command></term>
|
---|
| 301 | <listitem>
|
---|
[b51fe6e] | 302 | <para>
|
---|
| 303 | is an internet file transfer program for scripts used to
|
---|
[4c24eb0a] | 304 | list files
|
---|
[b51fe6e] | 305 | </para>
|
---|
[ef3ec45] | 306 | <indexterm zone="ncftp ncftpls">
|
---|
| 307 | <primary sortas="b-ncftpls">ncftpls</primary>
|
---|
| 308 | </indexterm>
|
---|
| 309 | </listitem>
|
---|
| 310 | </varlistentry>
|
---|
[bab92281] | 311 |
|
---|
[ef3ec45] | 312 | <varlistentry id="ncftpput">
|
---|
| 313 | <term><command>ncftpput</command></term>
|
---|
| 314 | <listitem>
|
---|
[b51fe6e] | 315 | <para>
|
---|
| 316 | is an internet file transfer program for scripts used to
|
---|
[4c24eb0a] | 317 | transfer files
|
---|
[b51fe6e] | 318 | </para>
|
---|
[ef3ec45] | 319 | <indexterm zone="ncftp ncftpput">
|
---|
| 320 | <primary sortas="b-ncftpput">ncftpput</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
[bab92281] | 324 |
|
---|
[ef3ec45] | 325 | <varlistentry id="ncftpspooler">
|
---|
| 326 | <term><command>ncftpspooler</command></term>
|
---|
| 327 | <listitem>
|
---|
[b51fe6e] | 328 | <para>
|
---|
[4c24eb0a] | 329 | is a global batch FTP job processor daemon
|
---|
[b51fe6e] | 330 | </para>
|
---|
[ef3ec45] | 331 | <indexterm zone="ncftp ncftpspooler">
|
---|
| 332 | <primary sortas="b-ncftpspooler">ncftpspooler</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
[bab92281] | 336 |
|
---|
[ef3ec45] | 337 | </variablelist>
|
---|
[bab92281] | 338 |
|
---|
[ef3ec45] | 339 | </sect2>
|
---|
[bab92281] | 340 |
|
---|
[f45b1953] | 341 | </sect1>
|
---|