blob: d3fe4ebc75b128c40fbd0c16ce03333a5751c1cd (
plain)
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
|
# Maintainer: Yuji Hagiwara <yuuzi41 at gmail dot com>
pkgname=openvswitch-dpdk
pkgver=3.4.0
pkgrel=1
pkgdesc="Production Quality, Multilayer Open Virtual Switch, with DPDK feature"
url="http://openvswitch.org"
license=('Apache-2.0')
arch=(x86_64)
install=openvswitch.install
source=("http://openvswitch.org/releases/openvswitch-$pkgver.tar.gz"
openvswitch.tmpfiles
ovsdb-server.service
ovs-vswitchd.service)
depends=('openssl' 'libcap-ng' 'dpdk')
makedepends=('python-six')
optdepends=('python-six')
provides=('openvswitch')
options=('debug')
sha256sums=('196b880832fa2142a6ce833102b2623d8d9291cead6e28bd53cee8480d24e881'
'e8dc21e50fc886bfd6aa55991bdb3cb66907e11b071045452bb12de01a3ecbd9'
'fa2412b81c77921418131a4f6fd38956f50ffcc7b908ec91f94d3607a05d060b'
'412a8d9a2d71f61b915d5e29c0ba44baae7770f564d885f99460b27a4cf1d398')
prepare() {
cd "$srcdir/openvswitch-$pkgver"
sed -i \
-e 's|$(sysconfdir)/bash_completion.d|/usr/share/bash-completion/completions|g' \
Makefile.am
}
build() {
cd "$srcdir/openvswitch-$pkgver"
./boot.sh
export CFLAGS="$CFLAGS -ffat-lto-objects"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-rundir=/run/openvswitch \
--sbindir=/usr/bin \
--with-dpdk=static \
PYTHON=/usr/bin/python2
make
}
package() {
cd "$srcdir/openvswitch-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm0644 "$srcdir"/openvswitch.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/openvswitch.conf"
install -Dm0644 "$srcdir"/ovsdb-server.service "$pkgdir/usr/lib/systemd/system/ovsdb-server.service"
install -Dm0644 "$srcdir"/ovs-vswitchd.service "$pkgdir/usr/lib/systemd/system/ovs-vswitchd.service"
install -dm0755 "$pkgdir/etc/openvswitch"
rm -rf "$pkgdir"/run
}
|