summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/Dockerfile4
-rwxr-xr-xscripts/build-packages9
2 files changed, 11 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 36895335..c4351555 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -259,7 +259,9 @@ RUN apt-get update && apt-get install -y \
libsqlite3-dev \
dh-apparmor \
gperf \
- libsystemd-dev
+ libsystemd-dev \
+ python3-stdeb \
+ python-setuptools
# Packages needed for vyos-opennhrp
RUN apt-get update && apt-get install -y \
diff --git a/scripts/build-packages b/scripts/build-packages
index e800b80a..07baa040 100755
--- a/scripts/build-packages
+++ b/scripts/build-packages
@@ -174,7 +174,6 @@ vyos_packages = ['vyatta-bash',
'vyos-1x',
'vyatta-iproute',
'vyatta-quagga',
- 'vyos-strongswan',
'vyos-vmwaretools-scripts',
'vyos-netplug',
'vyos-xe-guest-utilities',
@@ -204,6 +203,14 @@ pkg_special.append( add_package('ipaddrcheck', branch='master'))
pkg_special.append( add_package('hvinfo', url='https://github.com/dmbaturin/hvinfo.git', branch='master') )
pkg_special.append( add_package('lldpd', url='https://github.com/vincentbernat/lldpd.git', branch='master', tag='1.0.3') )
+# VyOS strongswan ships additional python3-vici packages required by vyos-1x and this is not build by default
+vyos_strongswan_build_cmd = "dpkg-buildpackage -b -us -uc -tc && " \
+ "autoreconf -i && ./configure --enable-python-eggs && " \
+ "cd src/libcharon/plugins/vici/python && make && " \
+ "python3 setup.py --command-packages=stdeb.command bdist_deb && " \
+ "mv ./deb_dist/*.deb " + repo_root + "/packages"
+pkg_special.append( add_package('vyos-strongswan', custombuild_cmd=vyos_strongswan_build_cmd) )
+
#
# FreeRangeRouting (FRR) packages
#