]> git.proxmox.com Git - mirror_frr.git/commitdiff
snapcraft: Add libyang to snap package
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 17 Jan 2019 19:02:04 +0000 (11:02 -0800)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 28 May 2019 23:23:27 +0000 (01:23 +0200)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
snapcraft/snapcraft.yaml.in

index ea38d58afc58df4d41087ffff5cc49e725b0e9b0..5a92f9800591619572c72493a12fa04bd20a982a 100644 (file)
@@ -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
+