$NetBSD: INSTALL,v 1.11 2020/07/04 05:43:29 lukem Exp $

INSTALLATION INTRODUCTION
-------------------------

This file describes how to compile and install tnftpd on your system.

	============================================
	=					   =
	=  NOTE: You will need an ANSI C compiler. =
	=					   =
	============================================


For most systems, execute the following to compile and install tnftpd:
	./configure
	make
	make install

Preformatted manual pages for ftpd(8), ftpd.conf(5), and ftpusers(5) are
also installed.  If you wish to install the sources, ensure that your system
has up-to-date mandoc macros.  groff ships with this macro suite,
but it has bugs.  Try:
    ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-current/src/share/tmac/
for a more recent version.

Example configuration files are in the examples/ directory.


CONFIGURATION OPTIONS
---------------------

tnftpd is configured using an `autoconf' generated `configure' script.
`configure' supports the following options:

* The standard `autoconf configure' options, including:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
                          BSD or GNU make may be required for this to work.

* Specific options:

  --enable-ipv6           Enable IPv6 support (if your OS supports it).
                          [default=enabled]
  --disable-ipv6          Disable IPv6 support (even if your OS supports it).
  --enable-builtinls      Enable built-in /bin/ls.  [default=enabled]
  --disable-builtinls     Disable built-in /bin/ls.
  --disable-largefile     Omit support for large files.
  --with-blocklist        enable support for NetBSD blocklist daemon
                          [default=auto]
  --with-pam              enable support for Pluggable Authentication Modules
                          (PAM) authentication [default=auto]
  --with-sia              enable support for Tru64 Security Integration
                          Architecture (SIA) authentication [default=auto]
  --with-skey             enable support for S/Key authentication (not
                          compatible with --with-pam) [default=no]

The following environment variables can be set to override various
compiler related settings.
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  YACC        The `Yet Another Compiler Compiler' implementation to use.
              Defaults to the first program found out of: `bison -y', `byacc',
              `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.

This can be achieved with:
	env CC="compiler" CFLAGS="cflags" LDFLAGS="ldflags" ./configure

