summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/Dockerfile6
-rwxr-xr-xscripts/build-packages7
2 files changed, 13 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index beb88053..a4e07d60 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -299,6 +299,12 @@ RUN apt-get update && apt-get install -y \
libnl-genl-3-200 \
libnl-genl-3-dev
+# Packages needed for net-snmp
+RUN apt-get update && apt-get install -y \
+ python-all \
+ python2.7-dev \
+ libmysqld-dev
+
# Update live-build
RUN echo 'deb http://ftp.debian.org/debian stretch main' | tee -a /etc/apt/sources.list.d/stretch.list && \
apt-get update && apt-get install -y -t stretch \
diff --git a/scripts/build-packages b/scripts/build-packages
index 3f146bf2..90d4e212 100755
--- a/scripts/build-packages
+++ b/scripts/build-packages
@@ -229,6 +229,13 @@ pkg_special.append( add_package('frr', url='https://github.com/FRRouting/frr.git
#
+# Net-SNMP
+#
+# net-snmp conflicts with already installed libsnmp-dev thus we need to build with -d
+net_snmp_build_cmd = "dpkg-buildpackage -b -us -uc -tc -d -j$(getconf _NPROCESSORS_ONLN)"
+pkg_special.append( add_package('net-snmp', custombuild_cmd=net_snmp_build_cmd) )
+
+#
# Linux (VyOS) Kernel
#
kernel_build_cmd = "make x86_64_vyos_defconfig && " \