summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-10-27 14:35:10 +0100
committerDaniil Baturin <daniil@baturin.org>2019-10-27 14:35:10 +0100
commit73757c03487832d7ae50d7e029def49b7d28e03d (patch)
tree776b92f0667548486f1acb597b872be4a0f6d82e /README
parent28e2e136e7f99fab3de07e06a003c2735a5f093d (diff)
parent255e98d3bcd058b29d974c02a5152da37225b4ca (diff)
downloadlibvyosconfig-73757c03487832d7ae50d7e029def49b7d28e03d.tar.gz
libvyosconfig-73757c03487832d7ae50d7e029def49b7d28e03d.zip
Merge branch 'current' of github.com:vyos/libvyosconfig into current
Diffstat (limited to 'README')
-rw-r--r--README22
1 files changed, 18 insertions, 4 deletions
diff --git a/README b/README
index 9ea9c66..925e954 100644
--- a/README
+++ b/README
@@ -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
+```