Date: Tuesday, November 1, 2022 @ 22:27:12
Author: felixonmars
Revision: 1340434
archrelease: copy trunk to community-staging-x86_64
Added:
openvswitch/repos/community-staging-x86_64/
openvswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 1340432, openvswitch/trunk/PKGBUILD)
openvswitch/repos/community-staging-x86_64/openvswitch.install
(from rev 1340433, openvswitch/trunk/openvswitch.install)
openvswitch/repos/community-staging-x86_64/openvswitch.tmpfiles
(from rev 1340433, openvswitch/trunk/openvswitch.tmpfiles)
openvswitch/repos/community-staging-x86_64/ovs-vswitchd.service
(from rev 1340433, openvswitch/trunk/ovs-vswitchd.service)
openvswitch/repos/community-staging-x86_64/ovsdb-server.service
(from rev 1340433, openvswitch/trunk/ovsdb-server.service)
----------------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
openvswitch.install | 13 +++++++++++
openvswitch.tmpfiles | 1
ovs-vswitchd.service | 15 +++++++++++++
ovsdb-server.service | 7 ++++++
5 files changed, 91 insertions(+)
Copied: openvswitch/repos/community-staging-x86_64/PKGBUILD (from rev 1340432,
openvswitch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-01 22:27:12 UTC (rev 1340434)
@@ -0,0 +1,55 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: Pedro Martinez-Julia ([email protected])
+# Contributor: Matt Monaco <net 0x01b dgbaley27>
+
+pkgname=openvswitch
+pkgver=3.0.1
+pkgrel=2
+pkgdesc="Production Quality, Multilayer Open Virtual Switch"
+url="http://openvswitch.org"
+license=('APACHE')
+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')
+makedepends=('python-six')
+optdepends=('python-six')
+options=('debug')
+sha256sums=('e4a11716d0919f5b3239228b32badc109b561a5fe668b9547e143b0b195bbd68'
+ 'e8dc21e50fc886bfd6aa55991bdb3cb66907e11b071045452bb12de01a3ecbd9'
+ 'fa2412b81c77921418131a4f6fd38956f50ffcc7b908ec91f94d3607a05d060b'
+ '412a8d9a2d71f61b915d5e29c0ba44baae7770f564d885f99460b27a4cf1d398')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i \
+ -e
's|$(sysconfdir)/bash_completion.d|/usr/share/bash-completion/completions|g' \
+ Makefile.am
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./boot.sh
+ export CFLAGS="$CFLAGS -ffat-lto-objects"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-rundir=/run/openvswitch \
+ --sbindir=/usr/bin \
+ PYTHON=/usr/bin/python2
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$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
+}
Copied: openvswitch/repos/community-staging-x86_64/openvswitch.install (from
rev 1340433, openvswitch/trunk/openvswitch.install)
===================================================================
--- community-staging-x86_64/openvswitch.install
(rev 0)
+++ community-staging-x86_64/openvswitch.install 2022-11-01 22:27:12 UTC
(rev 1340434)
@@ -0,0 +1,13 @@
+post_install() {
+ if [[ ! -f etc/openvswitch/conf.db ]]; then
+ cmd=(ovsdb-tool create
+ etc/openvswitch/conf.db
+ usr/share/openvswitch/vswitch.ovsschema)
+ printf "Running: %s\n" "${cmd[*]}"
+ "${cmd[@]}"
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
Copied: openvswitch/repos/community-staging-x86_64/openvswitch.tmpfiles (from
rev 1340433, openvswitch/trunk/openvswitch.tmpfiles)
===================================================================
--- community-staging-x86_64/openvswitch.tmpfiles
(rev 0)
+++ community-staging-x86_64/openvswitch.tmpfiles 2022-11-01 22:27:12 UTC
(rev 1340434)
@@ -0,0 +1 @@
+d /run/openvswitch 0770 root root -
Copied: openvswitch/repos/community-staging-x86_64/ovs-vswitchd.service (from
rev 1340433, openvswitch/trunk/ovs-vswitchd.service)
===================================================================
--- community-staging-x86_64/ovs-vswitchd.service
(rev 0)
+++ community-staging-x86_64/ovs-vswitchd.service 2022-11-01 22:27:12 UTC
(rev 1340434)
@@ -0,0 +1,15 @@
+[Unit]
+Description = Open vSwitch Daemon
+Documentation = man:ovs-vswitchd
+Wants = network.target
+Before = network.target NetworkManager.service
+Requires = ovsdb-server.service
+After = ovsdb-server.service
+
+[Service]
+ExecStartPre = /sbin/modprobe openvswitch
+PIDFile = /run/openvswitch/ovs-vswitchd.pid
+ExecStart = /usr/sbin/ovs-vswitchd --pidfile=/run/openvswitch/ovs-vswitchd.pid
+
+[Install]
+WantedBy = multi-user.target
Copied: openvswitch/repos/community-staging-x86_64/ovsdb-server.service (from
rev 1340433, openvswitch/trunk/ovsdb-server.service)
===================================================================
--- community-staging-x86_64/ovsdb-server.service
(rev 0)
+++ community-staging-x86_64/ovsdb-server.service 2022-11-01 22:27:12 UTC
(rev 1340434)
@@ -0,0 +1,7 @@
+[Unit]
+Description = Open vSwitch Database Server
+Documentation = man:ovsdb-server
+
+[Service]
+PIDFile=/run/openvswitch/ovsdb-server.pid
+ExecStart=/usr/sbin/ovsdb-server --remote=punix:/var/run/openvswitch/db.sock
--pidfile=/run/openvswitch/ovsdb-server.pid