
Building and installing
=======================

This module can be built only on FreeBSD starting from 4.0-RELEASE,
what is naturally, because it is designed for FreeBSD IPv6 Firewall.

I use Makefile which uses FreeBSD's mk files (/usr/share/mk).

To build the ipa_ip6fw module follow these steps:

1. Run under any user account:

    % make all

2. Run under the super-user account:

    # make install

Makefile's variables
====================

There are some important variables for Makefile, in parenthesis
module's Makefiles defaults are shown:

PREFIX		-- see Makefile (/usr/local)
LOCALINCLUDE	-- directory where ipa_mod.h is saved (/usr/local/include);

To build pthread(3) safe version of the module add WITH_PTHREAD=yes
to the make(8) command line, this option does not mean that needed
options will be given to the compiler, set them explicitly in the
CFLAGS, CPPFLAGS, etc. variables.

Example:

    # make PREFIX=/usr/somewhere install

Manual page translations
========================

In the man directory there are translations of the ipa_ipfw.8 manual
page.  To install Russian translation do the following steps:

    # cd man
    # make LANG_DIR_SRC=ru.KOI8-R LANG_DIR_DST=ru.KOI8-R clean all install

If the value of LANG_DIR_DST is the same as the value of LANG_DIR_SRC,
then LANG_DIR_DST can be omitted.
