* clean up BUILD_GOVERSION which is set at runtime with runtime lib
* simplify version check
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Co-authored-by: Marco Mariani <marco@crowdsec.net>
This fixes a regression introduced in 0449ec18 (Windows Support #1159)
where the build system uses the last local tag that has been created
(chonologically) instead of the most recent tag in the current branch.
This problem is not detected while working with stable versions because
they are built on a clean checkout.
* FreeBSD changes (#718)
* Update build Makefile to be able to build on other platforms
Split Makefiles to isolate every specifics per platform if specific file
is not found, the include will default to linux.
* Isolate linux specific messages emitted by crowdsec command line
On other platforms, we shouldn't write messages with `systemctl`
occurrences. This commit isolate the specific messages and ensure the
messages are relevant for the given platform according result of `GOOS`.
* remove the test
Co-authored-by: Sofian Brabez <sbz@6dev.net>
Co-authored-by: AlteredCoder <AlteredCoder>