summaryrefslogtreecommitdiffstats
path: root/snapcraft
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2019-01-17 20:02:04 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2019-05-29 01:41:02 +0200
commit8ebfb3aade15ce841c9228edd25f4e1643a355ef (patch)
tree04a9e4899f3813ae56d8cef6e5236a4cee715504 /snapcraft
parentsnapcraft: Add missing staticd.conf.default (diff)
downloadfrr-8ebfb3aade15ce841c9228edd25f4e1643a355ef.tar.xz
frr-8ebfb3aade15ce841c9228edd25f4e1643a355ef.zip
snapcraft: Add libyang to snap package
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'snapcraft')
-rw-r--r--snapcraft/snapcraft.yaml.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/snapcraft/snapcraft.yaml.in b/snapcraft/snapcraft.yaml.in
index ea38d58af..5a92f9800 100644
--- a/snapcraft/snapcraft.yaml.in
+++ b/snapcraft/snapcraft.yaml.in
@@ -238,8 +238,24 @@ parts:
plugin: cmake
configflags:
- -DCMAKE_BUILD_TYPE=Release
+ libyang:
+ build-packages:
+ - cmake
+ - make
+ - gcc
+ - libpcre3-dev
+ stage-packages:
+ - libpcre3
+ source: https://github.com/CESNET/libyang.git
+ source-type: git
+ source-tag: v0.16-r3
+ plugin: cmake
+ configflags:
+ - -DCMAKE_INSTALL_PREFIX:PATH=/usr
+ - -DENABLE_LYD_PRIV=ON
+ - -DCMAKE_BUILD_TYPE:String="Release"
frr:
- after: [rtrlib]
+ after: [rtrlib,libyang]
build-packages:
- gcc
- autoconf
@@ -344,3 +360,8 @@ parts:
README.snap_build.md: doc/README.snap_build.md
extra_version_info.txt: doc/extra_version_info.txt
+passthrough:
+ layout:
+ /usr/lib/x86_64-linux-gnu/libyang:
+ bind: $SNAP/usr/lib/x86_64-linux-gnu/libyang
+