Building and installing from source: Difference between revisions
Jump to navigation
Jump to search
Paul Wouters (talk | contribs) (Created page with " While libreswan is becoming part of more Linux distributions over time, it has not yet made it in all distributions. If your OS does not yet ship with libreswan packages, you...") |
(missing NetBSD dependencies) |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
If your OS does not yet ship with libreswan packages, your you wish to install the latest version, you can build/install or package libreswan from source yourself. | |||
== Packaging Libreswan == | |||
== | For OS distributions that use a packaging system, the source archive contains the directory ''packaging/''. This directory provides an easy way to build packages for the current operating system. | ||
Here is simple procedure to build debian package from libreswan tarball. | |||
$ make deb | |||
== Building/Installing into /usr/local == | |||
Below is an alphabetic list of distributions and how to install from source. As a distro EOLs, it can be removed. | |||
=== Fedora 33 === | |||
<pre> | |||
dnf install make nss-devel libevent-devel unbound-devel bison flex audit-libs-devel libcurl-devel pam-devel libselinux-devel libseccomp-devel systemd-devel libcap-ng-devel ldns-devel xmlto | |||
make | |||
make install | |||
</pre> | |||
=== NetBSD 9 === | |||
<pre> | |||
# so GIT will trust github; don't ask ... | |||
pkg_add mozilla-rootcerts | |||
mozilla-rootcerts install | |||
# what's really needed | |||
pkg_add gmake nss unbound bison flex git ldns xmlto pkg-config | |||
git clone https://github.com/libreswan/libreswan.git | |||
cd libreswan | |||
make | |||
make install | |||
</pre> |
Latest revision as of 02:49, 28 November 2021
If your OS does not yet ship with libreswan packages, your you wish to install the latest version, you can build/install or package libreswan from source yourself.
Packaging Libreswan
For OS distributions that use a packaging system, the source archive contains the directory packaging/. This directory provides an easy way to build packages for the current operating system.
Here is simple procedure to build debian package from libreswan tarball.
$ make deb
Building/Installing into /usr/local
Below is an alphabetic list of distributions and how to install from source. As a distro EOLs, it can be removed.
Fedora 33
dnf install make nss-devel libevent-devel unbound-devel bison flex audit-libs-devel libcurl-devel pam-devel libselinux-devel libseccomp-devel systemd-devel libcap-ng-devel ldns-devel xmlto make make install
NetBSD 9
# so GIT will trust github; don't ask ... pkg_add mozilla-rootcerts mozilla-rootcerts install # what's really needed pkg_add gmake nss unbound bison flex git ldns xmlto pkg-config git clone https://github.com/libreswan/libreswan.git cd libreswan make make install