-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
46 lines (44 loc) · 1.36 KB
/
template
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
# Template file for 'openvswitch'
pkgname=openvswitch
version=2.17.0
revision=4
archs="i686* x86_64* ppc64*"
build_style=gnu-configure
configure_args="--with-rundir=/run/openvswitch"
pycompile_dirs="usr/share/openvswitch/python"
hostmakedepends="pkg-config python3"
makedepends="openssl-devel libcap-ng-devel"
depends="python3"
checkdepends="iproute2"
short_desc="Production quality, multilayer virtual switch"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="http://openvswitch.org/"
distfiles="http://openvswitch.org/releases/${pkgname}-${version}.tar.gz"
checksum=e03bfab7ca82d81a7d3a36de4f390a3b5210e3f39657671f922877cd4ea6dc73
python_version=3
_completiondir="/usr/share/bash-completion/completions"
make_install_args+=" completiondir=${_completiondir}"
# test can hang in containers
make_check=extended
post_install() {
for cmd in ovs-appctl ovs-vsctl; do
chmod 0644 ${DESTDIR}${_completiondir}/$cmd-bashcomp.bash
mv ${DESTDIR}${_completiondir}/$cmd-bashcomp.bash \
${DESTDIR}${_completiondir}/$cmd
done
for cmd in ovs-ofctl ovs-dpctl ovsdb-tool; do
ln -s ovs-appctl ${DESTDIR}${_completiondir}/$cmd
done
vsv ovsdb-server
vsv ovs-vswitchd
}
openvswitch-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
}
}