2016-02-11 02:25:56 +00:00
|
|
|
# Template file for 'openvswitch'
|
|
|
|
pkgname=openvswitch
|
2016-03-06 02:14:47 +00:00
|
|
|
version=2.5.0
|
2016-03-25 21:36:13 +00:00
|
|
|
revision=2
|
2016-02-11 02:25:56 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--with-rundir=/run/openvswitch"
|
|
|
|
hostmakedepends="python perl"
|
|
|
|
makedepends="libressl-devel ${hostmakedepends}"
|
|
|
|
depends="python"
|
|
|
|
short_desc="Production quality, multilayer virtual switch"
|
|
|
|
maintainer="Renato Aguiar <contact@renatoaguiar.org>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="http://openvswitch.org/"
|
|
|
|
distfiles="http://openvswitch.org/releases/${pkgname}-${version}.tar.gz"
|
2016-03-06 02:14:47 +00:00
|
|
|
checksum=34da54fbad503205b1a66b48ca4312679e1ce5b04763a9fb86050b2b25d66f21
|
2016-02-11 02:25:56 +00:00
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
|
|
_completiondir="/usr/share/bash-completion/completions"
|
|
|
|
make_install_args+=" completiondir=${_completiondir}"
|
|
|
|
pycompile_dirs="usr/share/openvswitch/python"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|