diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-04-27 14:41:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-27 14:41:37 +0200 |
commit | 9702b3c05c90540de37b4577990d26be5679537f (patch) | |
tree | 4400c80f6e7777d50873b8cd36696563ed660aca | |
parent | 80f3a69602ce10f83aa4e556878743c0bd191c38 (diff) | |
download | vyos-build-9702b3c05c90540de37b4577990d26be5679537f.tar.gz vyos-build-9702b3c05c90540de37b4577990d26be5679537f.zip |
Packages: add net-snmp package to build procedure
-rw-r--r-- | docker/Dockerfile | 6 | ||||
-rwxr-xr-x | scripts/build-packages | 7 |
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 && " \ |