Commit Graph

39 Commits

Author SHA1 Message Date
Philip Whineray
0ec7817b99 Enable automated testing
Rename unittest directory to tests to be more standard
Install all required packages rather than placeholders
Get a suitable version of "unshare"
2016-11-27 12:43:26 +00:00
Philip Whineray
682e831191 Add tag signature checking and deployment to github releases 2016-11-23 16:49:59 +00:00
Philip Whineray
4839bcaeb9 Fix filename for services data/firehol script cross-check
Otherwise the commit hook will fail when services data is next updated.
2016-11-22 19:44:06 +00:00
Philip Whineray
caedbcd551 Use a regular shell file for installed config
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.
2016-11-22 13:31:46 +00:00
Philip Whineray
9d097cb9b2 Add help on checking against empty repo
Guarantees that all files are considered changed, regardless of whether
they currently are.
2016-11-20 16:23:48 +00:00
Philip Whineray
5f6d046783 Fix regex for newer perl 2016-11-20 16:11:47 +00:00
Philip Whineray
2f0460b571 Ensure broken services-db.data cannot be comitted 2016-01-10 09:32:36 +00:00
Philip Whineray
ceb391f33e Do not allow checkins with detected commands
Was erroneously reporting but not blocking them
2016-01-10 09:04:14 +00:00
Philip Whineray
0d2206b832 Be verbose when we skip command checks 2015-12-29 09:06:14 +00:00
Philip Whineray
7688a624c0 Include iprange and bash checks in maintainer mode
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.
2015-12-29 08:52:18 +00:00
Philip Whineray
41fedb67f9 Fix release tests
Remove redundant definitions from firehol-specific file
Ensure .spec.in is optional
2015-11-28 23:15:12 +00:00
Philip Whineray
23ef5dde9e Generalise packaging scripts
Will now work to maintain a spec.in during release (e.g. as used by iprange)
Relax ChangeLog checking - does not need to follow full debian standard
2015-11-28 13:04:35 +00:00
Philip Whineray
da346f605f Make packaging more generic
Move specifics into a subdirectory and detect them
Hooks detect if there is a command to run
Add release notes to README.md
2015-11-28 11:42:03 +00:00
Philip Whineray
633f4653c7 Clean up packaging
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
2015-11-27 23:56:11 +00:00
Philip Whineray
2c9a2d4000 Extract common functions to functions.common.sh
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.
2015-11-25 23:36:29 +00:00
Philip Whineray
cc21d998c4 Add missing file 2015-11-23 23:21:03 +00:00
Philip Whineray
e3cd023085 Ensure iprange is treated specially 2015-11-12 21:43:33 +00:00
Philip Whineray
b73d00f7d9 configure script now only detected needed commands
When programs are disabled, their dependencies are omitted. Same
if ipv6 or ipv6 is disabled.
2015-11-12 21:36:06 +00:00
Philip Whineray
b670b4cd21 Allow configuring to not install specific scripts
When not installing a script, also stop its documentation, example
files etc.
2015-11-11 18:28:01 +00:00
Philip Whineray
d2ec651cdc Detect and use TAR_CMD
A couple of other programs replaced
Allow unconfigured programs to detect iprange in-situ
2015-11-10 07:26:59 +00:00
Philip Whineray
c031254067 Remove unused commands
Detect unused commands in script during pre-commit checks
Always use /sbin and /usr/sbin as part of autoconf detection
2015-11-09 20:52:11 +00:00
Philip Whineray
ee401fc813 Switch vnetbuild to common command detection 2015-11-09 07:39:05 +00:00
Philip Whineray
0647598eea Replace pre-commit checks with a better system 2015-11-09 07:39:05 +00:00
Philip Whineray
ea252883d8 Add perl script to detect plain command usage
Update scripts with the problems found
In firehol, moved the iptables() and ipset() helpers to before they are

used, since this is how the detection script learns they are not a problem.
2015-11-08 17:28:16 +00:00
Phil Whineray
1ea9a58bd4 Convert update-ipsets to new command system 2015-10-31 12:29:25 +00:00
Phil Whineray
09cf465d2a Don't worry about FcntlLock not available warning 2015-10-31 12:28:54 +00:00
Phil Whineray
0de62875fc Check for missing $ on commands in pre-commit
Tidied up common behaviour into a function
Updated TPUT_CMD where it was missing the $
2015-10-30 22:18:57 +00:00
Phil Whineray
0ff50524b9 Update link-balancer to use detected commands 2015-10-30 20:39:58 +00:00
Phil Whineray
e723f3ba19 fireqos now has same command detection as firehol
Update pre-commit script to detect entries missing from configure script
Update unittest to run fireqos without a PATH set
Update unittest with a view to running code coverage check
2015-10-27 21:35:21 +00:00
Phil Whineray
9449e984d6 Added WC_CMD to command table
Also, updated pre-commit script to ensure all used commands are
present in the table.
2015-10-27 13:03:05 +00:00
Phil Whineray
ab2259f49b Fix possible quoting problem and introduce test 2015-10-25 08:10:32 +00:00
Phil Whineray
eba93ca2df Ensure check-log works on jessie 2015-05-02 14:28:56 +01:00
Phil Whineray
3073ff1ffb Add a requirement for pandoc version 2014-04-23 20:34:47 +01:00
Phil Whineray
95bda906f4 Detect pandoc and allow user to set options
Also include a script to help building from the git repository
2014-04-23 20:12:33 +01:00
Phil Whineray
d51ac5004a Ensure all files are packaged
Also add a helper script to compare checked-out to distribution tar-file
2014-04-23 20:07:25 +01:00
Phil Whineray
cf4daccb7c Ensure ChangeLog and NEWS versions are in sync 2013-11-03 09:53:07 +00:00
Phil Whineray
d0f05d72f7 Implement version numbers
Using a combination of git attributes, ident and export-subst.
  - Scripts use Format: to emit tag or commit when exported
    or file Id if direct from git
  - configure script uses same mechanisms but cannot do a make dist
  - Brought bolierplate in line for both scripts
2013-10-28 20:06:21 +00:00
Phil Whineray
dfcab369f2 Fix mailing list address
It should be firehol-devs not firehol-dev
2013-10-17 11:26:52 +01:00
Phil Whineray
f4f8500305 Move to autotools
- Can still be installed just by copying firehol/firehol.in
 - CVS versions will not work any longer, so now following
   http://semver.org/
 - Git commit hooks included to enforce version numbering
   across the various files, NEWS, ChangeLog, configure.ac and
   sbin/firehol.in
 - Replace HTML website copy with DocBook manual
2013-10-15 22:25:17 +01:00