diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-07-29 17:50:18 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-07-29 17:50:18 -0400 |
commit | 5466a32fda5f4031f82ab90339adf29a6a728985 (patch) | |
tree | 7633cae57c50c9b3f0c22dbdbea32c49f2026992 | |
parent | 49aa04970e4afe28552f6e6679f2abacd3851bc0 (diff) | |
download | libvyosconfig-5466a32fda5f4031f82ab90339adf29a6a728985.tar.gz libvyosconfig-5466a32fda5f4031f82ab90339adf29a6a728985.zip |
Document the build procedure.
-rw-r--r-- | README | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -5,9 +5,23 @@ This library mixes the multiway tree manipulation libraries from [vyconf](https: with a parser and a formatter for VyOS 1.x config format, and is meant to be used in config migration scripts and analysis/conversion tools. -It is not really properly packaged now and has undeclared build dependencies on VyConf (obviously) and also -assumed that OCaml installation is per-user (through opam) rather than system-wide. - The main purpose is to provide bindings for Python, so using this library directly from C is strongly -discourages: not just the interface is not guaranteed to be stable, it's written to be a bridge between +discouraged: not just the interface is not guaranteed to be stable, it's written to be a bridge between two high level languages so it would be very inconvenient to use from C. + +## Building + +You need to install OPAM and then use it to install OCaml (latest 4.08 works fine). + + +``` +# Clone and install the vyos1x-config library +git clone https://github.com/vyos/vyos1x-config +opam pin add vyos1x-config . + +# Install build deps +opam install ctypes ctypes-foreign ctypes-build + +# Build the Debian package +dpkg-buildpackage -b -us -uc -tc +``` |