Building and installing from source: Difference between revisions

From Libreswan
Jump to navigation Jump to search
(Add fedora 26)
(out with the old in with the new (OS releases))
Line 1: Line 1:


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 can build libreswan from source yourself. The source archive contains a directory ''/packaging'' that provides the build instructions for many systems, including fedora, rhel/centos and openwrt. For Debian and Ubuntu based systems, packaging files are in the ''/debian/'' directory.
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.
Here is simple procedure to build debian package from libreswan tarball.


# cd libreswan-3.*/debian
# cd libreswan-*/debian
# make deb
# make
 
== Compiling the userland for an install in /usr/local ==


=== Fedora 26 ===
== Building/Installing into /usr/local ==


<pre>
Below is an alphabetic list of distributions and how to install from source.  As a distro EOLs, it can be removed.
dnf group install 'C Development Tools and Libraries'
dnf install nss-devel nspr-devel libevent-devel unbound-devel pam-devel audit-libs-devel libcurl-devel libseccomp-devel systemd-devel libcap-ng-devel fipscheck-devel ldns-devel xmlto
make all
make install
</pre>


=== Fedora 24 ===
=== Fedora 33 ===


<pre>
<pre>
dnf group install 'C Development Tools and Libraries'
dnf group install 'C Development Tools and Libraries'
dnf install nss-devel nspr-devel unbound-devel xmlto pam-devel libevent-devel audit-libs-devel fipscheck-devel libcap-ng-devel libcurl-devel systemd-devel
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 all
make
make install
make install
</pre>
</pre>


=== Fedora 23 ===
=== NetBSD 9 ===


<pre>
<pre>
dnf group install 'C Development Tools and Libraries'
pkg_add ????
dnf install nss-devel nspr-devel unbound-devel xmlto pam-devel libevent-devel audit-libs-devel fipscheck-devel libcap-ng-devel libcurl-devel
make
make all
make install
make install
</pre>
</pre>

Revision as of 19:57, 14 December 2020

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.

  1. cd libreswan-*/debian
  2. make

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 group install 'C Development Tools and Libraries'
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

pkg_add ????
make
make install