-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenvswitch.yaml
107 lines (99 loc) · 2.68 KB
/
openvswitch.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
# Copyright (c) 2024 VEXXHOST, Inc.
# SPDX-License-Identifier: GPL-3.0-only
package:
name: openvswitch
description: Open vSwitch
version: 3.4.0
epoch: 1
copyright:
- license: Apache-2.0
dependencies:
provider-priority: 0
vars:
pypi-package: ovs
import: ovs._json
data:
- name: py-versions
items:
3.10: '310'
environment:
contents:
packages:
- busybox
- build-base
- libbpf-dev
- libcap-ng-dev
- libtool
- openssl-dev
- py3-supported-build-base
- py3-supported-python-dev
- unbound-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/openvswitch/ovs
tag: v${{package.version}}
expected-commit: c598c05c85b2d38874a0ce8f7f088f6aae4fdabc
- runs: |
./boot.sh
# NOTE(mnaser): The following were different than the original spec file
# since the headers are not in Wolfi.
#
# Missing DPDK support
# + --with-dpdk=shared
# + --program-suffix=.dpdk
#
# Missing AF_XDP support
# + --enable-afxdp
#
# Missing Systemtap package
# + --enable-usdt-probes
- uses: autoconf/configure
with:
opts: |
--enable-libcapng \
--disable-static \
--enable-shared \
--enable-ssl \
--with-version-suffix=-r${{package.epoch}}
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-${{vars.pypi-package}}
runtime:
- py${{range.key}}-six
- py${{range.key}}-sortedcontainers
# - py${{range.key}}-unbound
pipeline:
- uses: py/build-wheel
with:
cppflags: "-I ../include"
ldflags: "-L ${{targets.destdir}}/usr/lib"
python: python${{range.key}}
path: python
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
- name: py3-supported-${{vars.pypi-package}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-${{vars.pypi-package}}
- name: openvswitch-libs
description: Open vSwitch libraries
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib
mv ${{targets.destdir}}/usr/lib/* ${{targets.subpkgdir}}/usr/lib