43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'openvswitch'
|
|
pkgname=openvswitch
|
|
version=2.13.0
|
|
revision=1
|
|
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="libressl-devel libcap-ng-devel"
|
|
depends="python"
|
|
short_desc="Production quality, multilayer virtual switch"
|
|
maintainer="Renato Aguiar <renato@renatoaguiar.net>"
|
|
license="Apache-2.0"
|
|
homepage="http://openvswitch.org/"
|
|
distfiles="http://openvswitch.org/releases/${pkgname}-${version}.tar.gz"
|
|
checksum=dd5f727427e36cab22bdeae61529d8c8fccacc53d968cfa7658f7f935ddda531
|
|
python_version=3
|
|
_completiondir="/usr/share/bash-completion/completions"
|
|
make_install_args+=" completiondir=${_completiondir}"
|
|
|
|
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
|
|
}
|
|
}
|