# Description: multilayer virtual software switch
# URL: http://openvswitch.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-six

name=openvswitch
version=3.1.2
release=1
source=(http://openvswitch.org/releases/openvswitch-$version.tar.gz ovsd)

build() {
  cd $name-$version
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    PYTHON=/usr/bin/python3
  make
  make install DESTDIR=$PKG

  install -D $SRC/ovsd $PKG/etc/rc.d/ovsd
}
