1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00

ovsd: add package

Add Open vSwtich configuration daemon for netifd.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-03-31 01:31:32 +01:00
parent abce423851
commit 3e30c34bac
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA
3 changed files with 57 additions and 0 deletions

43
net/ovsd/Makefile Normal file
View File

@ -0,0 +1,43 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ovsd
PKG_VERSION:=2020-10-12
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.hhi.fraunhofer.de/wn-ina/ovsd.git
PKG_SOURCE_VERSION:=e6a07f27dd8a5893eb6110c69922077995b9b26a
PKG_MIRROR_HASH:=9d903b3fecd8a3e102e1477efe479fc3851b1814ea0852e1dae39065b88cd157
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Arne Kappen <akappen@inet.tu-berlin.de>
PKG_LICENSE:=GPL-2.0
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/ovsd
SECTION:=net
SUBMENU:=Open vSwitch
CATEGORY:=Network
DEPENDS:=+openvswitch +libubox +libubus +netifd
TITLE:=Open vSwtich configuration daemon for netifd
MAINTAINER:=Arne Kappen <akappen@inet.tu-berlin.de>
endef
define Package/ovsd/description
External device handler adding Open vSwitch support to netifd.
endef
define Package/ovsd/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ovsd $(1)/sbin/
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,ovsd))

13
net/ovsd/files/etc/init.d/ovsd Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=19
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /sbin/ovsd
procd_set_param respawn
procd_set_param watch ovs
procd_close_instance
}

View File

@ -0,0 +1 @@
{ "name" : "Open vSwitch", "ubus_name" : "ovs", "bridge" : "1", "br-prefix" : "ovs", "config" : [ ["name", 3], ["ifname", 1], ["empty", 7], ["parent", 3], ["vlan", 5], ["ofcontrollers", 1], ["controller_fail_mode", 3], ["ssl_private_key", 3], ["ssl_cert", 3], ["ssl_ca_cert", 3], ["ssl_bootstrap", 7] ], "info" : [ ["ofcontrollers", 1], ["fail_mode", 3], ["ports", 1], ["parent", 3], ["vlan", 5], ["ssl", 2] ] }