Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Building your own FRRouting Snap
========================================
-(Tested on Ubuntu 16.04 with Snap Version 2, does not work on Ubuntu 15.x
-which uses earlier versions of snaps)
+(Tested on Ubuntu 18.04)
1. Install snapcraft:
FRRouting (frr) is a fork of Quagga.
confinement: strict
grade: devel
+base: core18
apps:
vtysh:
- libssh-dev
stage-packages:
- libssh-4
+ - zlib1g
prime:
- lib/librtr.so*
- usr/lib/x86_64-linux-gnu/libssh.so*
- cmake
- make
- gcc
- - libpcre3-dev
+ - libpcre2-dev
stage-packages:
- - libpcre3
+ - libpcre2-8-0
source: https://github.com/CESNET/libyang.git
source-type: git
- source-tag: v1.0.184
+ source-tag: v2.0.7
plugin: cmake
configflags:
- -DCMAKE_INSTALL_PREFIX:PATH=/usr
- imagemagick
- ghostscript
- groff
- - hardening-wrapper
- libpcre3-dev
- chrpath
- pkg-config
- logrotate
- libcap2
- libtinfo5
- - libreadline6
- - libjson-c2
+ - libreadline7
+ - libjson-c3
- libc-ares2
- libatm1
- libprotobuf-c1
- libdb5.3
+ - libacl1
+ - libattr1
+ - libaudit1
+ - libcap-ng0
+ - libpam0g
+ - libpcre3
+ - libselinux1
+ - libxtables12
plugin: autotools
source: ../frr-@PACKAGE_VERSION@.tar.gz
configflags:
stage-packages:
- telnet
- traceroute
+ - libgcc1
+ - libstdc++6
plugin: make
source: helpers
prime:
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/libyang1:
- bind: $SNAP/usr/lib/x86_64-linux-gnu/libyang1
-