1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
name: quagga
vendor: Loïc Minier <loic.minier@ubuntu.com>
version: 1.0
architectures:
- amd64
services:
bgpd:
description: bgpd service
start: bin/bgpd-service
caps:
- networking
- network-service
- network-admin
zebra:
description: zebra service
start: bin/zebra-service
caps:
- networking
- network-service
- network-admin
summary: Quagga software routing suite
description: This snap runs the Quagga software routing daemons.
icon: icon.png
parts:
quagga:
build-packages: [debhelper, libncurses5-dev, libreadline-dev, texlive-latex-base, texlive-generic-recommended, texlive-fonts-recommended, libpam0g-dev, libcap-dev, texinfo, imagemagick, ghostscript, groff, po-debconf, autotools-dev, libpcre3-dev, gawk, chrpath, libsnmp-dev, dh-autoreconf]
plugin: x-custom
source: quagga
xcustomcmds:
- dpkg-buildpackage -us -uc -b -nc
- mkdir -p $SNAPCRAFT_PART_INSTALL_DIR/usr/lib/quagga
- cp debian/quagga/usr/lib/libzebra.so.* $SNAPCRAFT_PART_INSTALL_DIR/usr/lib
- cp debian/quagga/usr/lib/quagga/bgpd $SNAPCRAFT_PART_INSTALL_DIR/usr/lib/quagga
- cp debian/quagga/usr/lib/quagga/zebra $SNAPCRAFT_PART_INSTALL_DIR/usr/lib/quagga
filesets:
quagga:
- usr/lib/libzebra.so.*
- usr/lib/quagga/bgpd
- usr/lib/quagga/zebra
stage:
- $quagga
snap:
- $quagga
service-wrapper:
plugin: make
source: .
|