NcFTP-3.2.6

NcFTP の概要

The NcFTP package contains a powerful and flexible interface to the Internet standard File Transfer Protocol. It is intended to replace or supplement the stock ftp program.

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

パッケージ情報

追加のダウンロード

NcFTP Dependencies

Optional

LLVM-17.0.6 (with Clang, used by default if installed)

NcFTP のインストール

There are two ways to build NcFTP. The first (and optimal) way builds most of the functionality as a shared library and then builds and installs the program linked against this library. The second method simply links all of the functionality into the binary statically. This doesn't make the dynamic library available for linking by other applications. You need to choose which method best suits you. Note that the second method does not create an entirely statically linked binary; only the libncftp parts are statically linked in, in this case. Be aware that building and using the shared library is covered by the Clarified Artistic License; however, developing applications that utilize the shared library is subject to a different license.

First, fix an issue caused by a change in behavior in GCC-10:

sed -i 's/^Bookmark/extern Bookmark/' sh_util/gpshare.c

Next, update the configure script to use modern C standards:

patch -Np1 -i ../ncftp-3.2.6-configure_fixes-1.patch &&
autoreconf -fiv -I autoconf_local

To install NcFTP using the first (and optimal) method, run the following commands:

./configure --prefix=/usr --sysconfdir=/etc &&
make -C libncftp shared &&
make

このパッケージにテストスイートはありません。

root ユーザーになって以下を実行します。

make -C libncftp soinstall &&
make install

To install NcFTP using the second method (with the libncftp functionality linked in statically) run the following commands:

./configure --prefix=/usr --sysconfdir=/etc &&
make

このパッケージにテストスイートはありません。

root ユーザーになって以下を実行します。

make install

コマンド説明

make -C ... && make -C ...: These commands make and install the dynamic library libncftp which is then used to link against when compiling the main program.

NcFTP の設定

設定ファイル

/etc/ncftp.* and ~/.ncftp/*; especially /etc/ncftp.prefs_v3 and ~/.ncftp/prefs_v3

設定情報

Most NcFTP configuration is done while in the program, and the configuration files are dealt with automatically. One exception to this is ~/.ncftp/prefs_v3. There are various options to alter in there, including:

yes-i-know-about-NcFTPd=yes

This disables the splash screen advertising the NcFTPd server.

There are other options in the prefs_v3 file. Most of these are self-explanatory. Global defaults can be set in /etc/ncftp.prefs_v3.

パッケージ構成

インストールプログラム: ncftp, ncftpbatch, ncftpbookmarks, ncftpget, ncftpls, ncftpput, ncftpspooler
インストールライブラリ: libncftp.so
インストールディレクトリ: なし

概略説明

ncftp

is a browser program for File Transfer Protocol

ncftpbatch

is an individual batch FTP job processor

ncftpbookmarks

is the NcFTP Bookmark Editor (NCurses-based)

ncftpget

is an internet file transfer program for scripts used to retrieve files

ncftpls

is an internet file transfer program for scripts used to list files

ncftpput

is an internet file transfer program for scripts used to transfer files

ncftpspooler

is a global batch FTP job processor daemon