Allows the following to work:
git clean -dxf
autoreconf -ivf
mkdir builddir
cd builddir
../configure --disable-doc --disable-man
make check
Cannot currently do a maintainer mode build in this fashion but unpacking
a non-git source tarball should work fine with documentation enabled.
This simplifies the scripts somewhat and the autoconf system quite a bit.
To specify a non-default location for the config, export a directory
in FIREHOL_OVERRIDE_PROGRAM_DIR and ensure it has an install.config
and functions.common.
firehol cannot work properly if autoconf is not applied, not sure
why there is a complex mechanism to operate without it.
this logic tend to break as nobody actually test the process in
which actual users use this package.
I suggest to remove all these hacks, so developers will run make
after every change in scripts, or alternately generate a
configuration file that is sourced within the scripts instead of
substituting.
in the mean time, this fixes firehol script to apply the
AUTOCONF_RUN correctly within script, please notice that this
method of having .in.in file can also remove the commands.sed
usage as this exactly what autoconf is doing when processing
templates.
the same method should probably apply to other scripts.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Newer versions of iputils have removed the ping6 tool but older
versions do not support the -6 flag, per #126.
The unconfigured program will always try to fall back to ping if
it can't find ping6 but this behaviour will generally only be
visible to developers.
Provide a hidden environment variable, MAKEDIST_BUILD_ONLY, which
if set to "yes" will skip all the checks for programs needed at runtime,
for use on the build server.
Use configure.ac to maintain version number
Remove redundant NEWS (ChangeLog) and AUTHORS (THANKS) files
Move hooks to their own directory
Rename README to README.md to format nicely on github
Generate README for tar by removing git specifics from README.md
Automate tagging when -rc or final version set in configure.ac
Improve pre-commit checking
Version number detection, command detection, terminal setup and a few
other bits have moved.
The processed (not .in) scripts will look for it in e.g. /usr/local/lib/firehol
or wherever the system will install it. The .in scripts will look for it in
their own directory.
Updated the configure system so that it correctly replaces paths rather
via the Makefile rather than trying to subsitute NONE in configire.ac.
Extracted all of the configure-time command substitutions to a single
sed file which is used to process the script.in files. Extended the
package checks to cover this file.