-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsnapcraft.yaml
183 lines (160 loc) · 4.58 KB
/
snapcraft.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
name: openswitch
version: 0.1.0
summary: OpenSwitch Network Operating System
description: A standalone version of OpenSwitch from openswitch.net
icon: openswitch/src/ops-webui/tools/reference/img/OpenSwitchLogo.png
apps:
ops-sysd:
command: usr/bin/ops-sysd
daemon: simple
parts:
openvswitch:
plugin: autotools
configflags:
- "OPS_BUILD=1"
- "--prefix=/usr"
- "--exec-prefix=/usr"
- "--libdir=/usr/lib"
- "--enable-shared"
- "--without-openvswitch-vtep"
- "--without-openvswitch-testcontroller"
- "--localstatedir=/var"
- "--with-debug"
# Source pre-processing required!
# - python {src}/ops/schema/sanitize.py {src}/ops/schema/dhcp_leases.extschema {src}/ops-openvswitch/vswitchd/dhcp_leases.ovsschema
# - python {src}/ops/schema/sanitize.py {src}/ops/schema/vswitch.extschema {src}/ops-openvswitch/vswitchd/vswitch.ovsschema
# - cp {src}/ops/schema/configdb.ovsschema {src}/ops-openvswitch/vswitchd/configdb.ovsschema
# - cp {src}/ops/schema/*.xml {src}/ops-openvswitch/vswitchd/
source: openswitch/src/ops-openvswitch
build-packages:
- libltdl-dev
ops-utils:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-utils
after: [ openvswitch ]
gtest:
plugin: cmake
source: https://github.com/lool/googletest.git
source-type: git
configflags:
- "-DBUILD_SHARED_LIBS=ON"
- "-DCMAKE_INSTALL_PREFIX=/usr"
i2c-header-hack:
plugin: copy
files:
/usr/include/linux/i2c-dev.h: usr/include/linux/i2c-dev-user.h
build-packages: [ libi2c-dev ]
ops-config-yaml:
plugin: cmake
source: openswitch/src/ops-config-yaml
after: [ gtest, i2c-header-hack ]
stage-packages:
- libyaml-cpp0.3-dev
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
ops-cli:
plugin: autotools
configflags:
- "CFLAGS=-DOPS"
- "--disable-silent-rules"
- "--enable-user=root"
- "--enable-group=root"
- "--enable-ovsdb"
- "--enable-vtysh"
- "--enable-shared"
- "--prefix=/usr"
- "--disable-static"
source: openswitch/src/ops-cli
after: [ openvswitch ]
build-packages: [ libreadline-dev, pkg-config ]
ops-aaa-utils:
plugin: python2
source: openswitch/src/ops-aaa-utils
ops-arpmgrd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-arpmgrd
after: [ openvswitch ]
ops-cfgd:
plugin: python2
source: openswitch/src/ops-cfgd
ops-fand:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-fand
after: [ openvswitch, ops-cli, ops-config-yaml ]
ops-intfd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-intfd
after: [ openvswitch, ops-config-yaml, ops-utils ]
ops-ledd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-ledd
after: [ openvswitch, ops-cli, ops-config-yaml ]
ops-pmd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-pmd
after: [ openvswitch, ops-config-yaml ]
systemd-pc-hack:
plugin: copy
files:
systemd.pc: usr/lib/pkgconfig/systemd.pc
ops-powerd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-powerd
after: [ openvswitch, ops-cli, ops-config-yaml, systemd-pc-hack ]
ops-portd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-portd
after: [ openvswitch ]
ops-restd:
plugin: python2
source: openswitch/src/ops-restd
python-pkgs:
- tornado
- certifi
- inflect
- backports_abc
# ops-switchd-opennsl-plugin:
# plugin: cmake
# configflags:
# - "-DCMAKE_INSTALL_PREFIX=/usr"
# source: openswitch/src/ops-switchd-opennsl-plugin
# after: [ openvswitch ]
ops-sysd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
stage-packages:
- zlib1g-dev
source: openswitch/src/ops-sysd
after: [ openvswitch, ops-config-yaml, ops-utils ]
ops-tempd:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-tempd
after: [ openvswitch, ops-cli, ops-config-yaml ]
ops-vland:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source: openswitch/src/ops-vland
after: [ openvswitch ]
# ops-webui:
# plugin: nodejs
# source: openswitch/src/ops-webui