From: Philip Paeps Date: Wed, 27 Oct 2021 07:41:28 +0000 (+0800) Subject: Documentation: update FreeBSD build instructions X-Git-Tag: 1.5.3~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F63%2Fhead;p=thirdparty%2FFORT-validator.git Documentation: update FreeBSD build instructions While binary packages are available, some people like to build from source. Update the instructions for building from a port, a release tarball or a Git checkout. --- diff --git a/docs/installation.md b/docs/installation.md index becafb22..f3c137cf 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -341,33 +341,28 @@ sudo make install ### FreeBSD version -The following steps are for FreeBSD 12.0. +The following steps are for FreeBSD 12.0 and later. -`curl` library is needed, so in case it isn't already installed there's a port to install it: +FORT validator is available as part of the FreeBSD ports tree. You can build it it effortlessly from there: {% highlight bash %} -cd /usr/ports/ftp/curl -make config -su +cd /usr/ports/net/fort make install clean -exit {% endhighlight %} -From there on, the installation steps are: +The ports system will find and install all the necessary dependencies for you. -{% highlight bash %} -su -pkg install autoconf automake gcc jansson pkgconf rsync libxml2 -exit +Should you want to build from a release tarball or a Git checkout, follow these instructions: -curl -L https://github.com/NICMx/FORT-validator/releases/download/{{ site.fort-latest-version }}/fort-{{ site.fort-latest-version }}.tar.gz --output fort-{{ site.fort-latest-version }}.tar.gz +{% highlight bash %} +pkg install autotools curl jansson pkgconf rsync libxml2 +fetch https://github.com/NICMx/FORT-validator/releases/download/{{ site.fort-latest-version }}/fort-{{ site.fort-latest-version }}.tar.gz tar xvzf fort-{{ site.fort-latest-version }}.tar.gz cd fort-{{ site.fort-latest-version }}/ +sh ./autoconf.sh ./configure make -su make install -exit {% endhighlight %} ### Slackware version