aboutsummaryrefslogtreecommitdiff
path: root/net/openvswitch
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2018-04-13 09:25:42 +0000
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2018-04-13 09:25:42 +0000
commitea08522d1a887a7a90bc56bbeb3b599fd253e9f6 (patch)
tree7c017e93cdaf8e1f20b505de888465f4ff0f6533 /net/openvswitch
parent37362f3456217fa270402c18f1437ff32081bfaa (diff)
downloadports-ea08522d1a887a7a90bc56bbeb3b599fd253e9f6.tar.gz
ports-ea08522d1a887a7a90bc56bbeb3b599fd253e9f6.zip
Notes
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/Makefile16
-rw-r--r--net/openvswitch/distinfo6
-rw-r--r--net/openvswitch/files/ovs-vswitchd.in6
-rw-r--r--net/openvswitch/files/patch-configure13
-rw-r--r--net/openvswitch/files/patch-lib_conntrack.c14
-rw-r--r--net/openvswitch/files/patch-lib_dpif-netdev.c23
-rw-r--r--net/openvswitch/files/patch-ofproto_ofproto-dpif.c23
-rw-r--r--net/openvswitch/pkg-plist53
8 files changed, 56 insertions, 98 deletions
diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile
index 2fa4e68badf7..ec50247b631b 100644
--- a/net/openvswitch/Makefile
+++ b/net/openvswitch/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= openvswitch
-PORTVERSION= 2.8.1
+PORTVERSION= 2.9.0
CATEGORIES= net
MASTER_SITES= http://openvswitch.org/releases/
@@ -11,15 +11,17 @@ COMMENT= Production quality, multilayer virtual switch
LICENSE= APACHE20
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
-
BROKEN_powerpc64= fails to compile: bfd.c: internal compiler error: in extract_insn, at recog.c
-USES= cpe gmake libtool perl5 pkgconfig python:2.7 shebangfix ssl
-SHEBANG_FILES= utilities/ovs-docker \
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+
+USES= compiler:c++14-lang cpe gmake libtool perl5 pkgconfig python:2.7 shebangfix ssl
+SHEBANG_FILES= ovn/utilities/ovndb-servers.ocf \
+ utilities/bugtool/ovs-bugtool-ovs-ofctl-loop-over-bridges \
+ utilities/ovs-docker \
utilities/ovs-appctl-bashcomp.bash \
- ovn/utilities/ovndb-servers.ocf \
vtep/ovs-vtep.in
+
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --localstatedir=/var \
@@ -30,6 +32,8 @@ LDFLAGS+= -lpthread
INSTALL_TARGET=install-strip
post-install:
+ @${MKDIR} ${STAGEDIR}/var/run/openvswitch
+ @${MKDIR} ${STAGEDIR}/var/log/openvswitch
${INSTALL_DATA} ${WRKSRC}/vswitchd/vswitch.ovsschema ${STAGEDIR}${PREFIX}/share/openvswitch/
.include <bsd.port.mk>
diff --git a/net/openvswitch/distinfo b/net/openvswitch/distinfo
index 5f612b62f4df..2dc9b5b362f8 100644
--- a/net/openvswitch/distinfo
+++ b/net/openvswitch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1511968087
-SHA256 (openvswitch-2.8.1.tar.gz) = 8d1c439e26d7044f0ec823c7fef1b00b7c6465da0b83a7d0cf3191ed1dc43893
-SIZE (openvswitch-2.8.1.tar.gz) = 6746474
+TIMESTAMP = 1522945468
+SHA256 (openvswitch-2.9.0.tar.gz) = 3699ce579acd346e9aa2fba89514cdcc79b231f6227659eea6714917b398419d
+SIZE (openvswitch-2.9.0.tar.gz) = 6933057
diff --git a/net/openvswitch/files/ovs-vswitchd.in b/net/openvswitch/files/ovs-vswitchd.in
index 7da4705852d1..dd6e3dbf955e 100644
--- a/net/openvswitch/files/ovs-vswitchd.in
+++ b/net/openvswitch/files/ovs-vswitchd.in
@@ -18,11 +18,15 @@ start_precmd="ovs_vswitchd_precmd"
load_rc_config $name
: ${ovs_vswitchd_enable="NO"}
+: ${ovs_vswitchd_flags=""}
+: ${ovs_vswitchd_logfile="/var/log/openvswitch/${name}.log"}
+: ${ovs_vswitchd_pidfile="/var/run/openvswitch/${name}.pid"}
ovs_vswitchd_precmd() {
load_kld if_tap || return 1
}
-command_args="--detach --pidfile"
+command_args="--detach --log-file=${ovs_vswitchd_logfile} \
+ --pidfile=${ovs_vswitchd_pidfile} ${ovs_vswitchd_flags}"
run_rc_command "$1"
diff --git a/net/openvswitch/files/patch-configure b/net/openvswitch/files/patch-configure
new file mode 100644
index 000000000000..645dd6df6dda
--- /dev/null
+++ b/net/openvswitch/files/patch-configure
@@ -0,0 +1,13 @@
+--- configure.orig 2018-04-11 14:28:38 UTC
++++ configure
+@@ -18310,8 +18310,8 @@ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ovs_cv_sphinx" >&5
+ $as_echo "$ovs_cv_sphinx" >&6; }
+ if test "$ovs_cv_sphinx" = yes; then
+- HAVE_SPHINX_TRUE=
+- HAVE_SPHINX_FALSE='#'
++ HAVE_SPHINX_TRUE='#'
++ HAVE_SPHINX_FALSE=
+ else
+ HAVE_SPHINX_TRUE='#'
+ HAVE_SPHINX_FALSE=
diff --git a/net/openvswitch/files/patch-lib_conntrack.c b/net/openvswitch/files/patch-lib_conntrack.c
deleted file mode 100644
index 3ee4befcfedb..000000000000
--- a/net/openvswitch/files/patch-lib_conntrack.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- lib/conntrack.c.orig 2017-11-29 15:45:30 UTC
-+++ lib/conntrack.c
-@@ -17,10 +17,10 @@
- #include <config.h>
- #include <ctype.h>
- #include <errno.h>
-+#include <sys/types.h>
- #include <netinet/in.h>
- #include <netinet/icmp6.h>
- #include <string.h>
--#include <sys/types.h>
-
- #include "bitmap.h"
- #include "conntrack.h"
diff --git a/net/openvswitch/files/patch-lib_dpif-netdev.c b/net/openvswitch/files/patch-lib_dpif-netdev.c
deleted file mode 100644
index 13b7f881fd30..000000000000
--- a/net/openvswitch/files/patch-lib_dpif-netdev.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- lib/dpif-netdev.c.orig 2017-11-29 15:46:19 UTC
-+++ lib/dpif-netdev.c
-@@ -78,6 +78,8 @@
- #include "unixctl.h"
- #include "util.h"
-
-+#define ERRNO_NO_LOCAL_MAPPING -600
-+
- VLOG_DEFINE_THIS_MODULE(dpif_netdev);
-
- #define FLOW_DUMP_MAX_BATCH 50
-@@ -4086,7 +4088,11 @@ dpif_netdev_meter_set(struct dpif *dpif,
- /* Validate rates */
- for (i = 0; i < config->n_bands; i++) {
- if (config->bands[i].rate == 0) {
-+#ifdef EBADRQC
- return EBADRQC; /* rate must be non-zero */
-+#else
-+ return ERRNO_NO_LOCAL_MAPPING;
-+#endif
- }
- }
-
diff --git a/net/openvswitch/files/patch-ofproto_ofproto-dpif.c b/net/openvswitch/files/patch-ofproto_ofproto-dpif.c
deleted file mode 100644
index 16d42482c67a..000000000000
--- a/net/openvswitch/files/patch-ofproto_ofproto-dpif.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- ofproto/ofproto-dpif.c.orig 2017-11-29 15:48:58 UTC
-+++ ofproto/ofproto-dpif.c
-@@ -73,6 +73,8 @@
- #include "util.h"
- #include "vlan-bitmap.h"
-
-+#define ERRNO_NO_LOCAL_MAPPING -600
-+
- VLOG_DEFINE_THIS_MODULE(ofproto_dpif);
-
- COVERAGE_DEFINE(ofproto_dpif_expired);
-@@ -5695,7 +5697,11 @@ meter_set(struct ofproto *ofproto_, ofpr
- return OFPERR_OFPMMFC_OUT_OF_BANDS;
- case ENODEV: /* Unsupported band type */
- return OFPERR_OFPMMFC_BAD_BAND;
-+#ifdef EBADRQC
- case EBADRQC: /* Rate must be non-zero */
-+#else
-+ case ERRNO_NO_LOCAL_MAPPING:
-+#endif
- return OFPERR_OFPMMFC_BAD_RATE;
- default:
- return OFPERR_OFPMMFC_UNKNOWN;
diff --git a/net/openvswitch/pkg-plist b/net/openvswitch/pkg-plist
index 6b8e951740b6..748aa0a284ba 100644
--- a/net/openvswitch/pkg-plist
+++ b/net/openvswitch/pkg-plist
@@ -60,6 +60,8 @@ include/openvswitch/ofp-prop.h
include/openvswitch/ofp-util.h
include/openvswitch/ofpbuf.h
include/openvswitch/packets.h
+include/openvswitch/poll-loop.h
+include/openvswitch/rconn.h
include/openvswitch/shash.h
include/openvswitch/thread.h
include/openvswitch/token-bucket.h
@@ -74,28 +76,28 @@ include/openvswitch/vlog.h
include/ovn/actions.h
include/ovn/expr.h
include/ovn/lex.h
-lib/libofproto-2.8.so.0
-lib/libofproto-2.8.so.0.0.1
+lib/libofproto-2.9.so.0
+lib/libofproto-2.9.so.0.0.0
lib/libofproto.a
lib/libofproto.so
-lib/libopenvswitch-2.8.so.0
-lib/libopenvswitch-2.8.so.0.0.1
+lib/libopenvswitch-2.9.so.0
+lib/libopenvswitch-2.9.so.0.0.0
lib/libopenvswitch.a
lib/libopenvswitch.so
-lib/libovn-2.8.so.0
-lib/libovn-2.8.so.0.0.1
+lib/libovn-2.9.so.0
+lib/libovn-2.9.so.0.0.0
lib/libovn.a
lib/libovn.so
-lib/libovsdb-2.8.so.0
-lib/libovsdb-2.8.so.0.0.1
+lib/libovsdb-2.9.so.0
+lib/libovsdb-2.9.so.0.0.0
lib/libovsdb.a
lib/libovsdb.so
-lib/libsflow-2.8.so.0
-lib/libsflow-2.8.so.0.0.1
+lib/libsflow-2.9.so.0
+lib/libsflow-2.9.so.0.0.0
lib/libsflow.a
lib/libsflow.so
-lib/libvtep-2.8.so.0
-lib/libvtep-2.8.so.0.0.1
+lib/libvtep-2.9.so.0
+lib/libvtep-2.9.so.0.0.0
lib/libvtep.a
lib/libvtep.so
libdata/pkgconfig/libofproto.pc
@@ -183,27 +185,20 @@ sbin/ovsdb-server
%%DATADIR%%/python/ovstest/udp.py
%%DATADIR%%/python/ovstest/util.py
%%DATADIR%%/python/ovstest/vswitch.py
+%%DATADIR%%/scripts/ovs-bugtool-daemons-ver
+%%DATADIR%%/scripts/ovs-bugtool-fdb-show
+%%DATADIR%%/scripts/ovs-bugtool-get-dpdk-nic-numa
+%%DATADIR%%/scripts/ovs-bugtool-qos-configs
%%DATADIR%%/scripts/ovn-bugtool-nbctl-show
+%%DATADIR%%/scripts/ovs-bugtool-ovs-appctl-dpif
+%%DATADIR%%/scripts/ovs-bugtool-ovs-bridge-datapath-type
+%%DATADIR%%/scripts/ovs-bugtool-ovs-ofctl-loop-over-bridges
+%%DATADIR%%/scripts/ovs-bugtool-ovs-vswitchd-threads-affinity
%%DATADIR%%/scripts/ovn-bugtool-sbctl-lflow-list
%%DATADIR%%/scripts/ovn-bugtool-sbctl-show
+%%DATADIR%%/scripts/ovs-bugtool-tc-class-show
%%DATADIR%%/scripts/ovn-ctl
%%DATADIR%%/scripts/ovndb-servers.ocf
-%%DATADIR%%/scripts/ovs-bugtool-bfd-show
-%%DATADIR%%/scripts/ovs-bugtool-bond-show
-%%DATADIR%%/scripts/ovs-bugtool-cfm-show
-%%DATADIR%%/scripts/ovs-bugtool-conntrack-dump
-%%DATADIR%%/scripts/ovs-bugtool-coverage-show
-%%DATADIR%%/scripts/ovs-bugtool-daemons-ver
-%%DATADIR%%/scripts/ovs-bugtool-fdb-show
-%%DATADIR%%/scripts/ovs-bugtool-lacp-show
-%%DATADIR%%/scripts/ovs-bugtool-list-dbs
-%%DATADIR%%/scripts/ovs-bugtool-memory-show
-%%DATADIR%%/scripts/ovs-bugtool-ovs-appctl-dpif
-%%DATADIR%%/scripts/ovs-bugtool-ovs-ofctl-dump-flows
-%%DATADIR%%/scripts/ovs-bugtool-ovs-ofctl-show
-%%DATADIR%%/scripts/ovs-bugtool-ovsdb-dump
-%%DATADIR%%/scripts/ovs-bugtool-tc-class-show
-%%DATADIR%%/scripts/ovs-bugtool-vsctl-show
%%DATADIR%%/scripts/ovs-check-dead-ifs
%%DATADIR%%/scripts/ovs-ctl
%%DATADIR%%/scripts/ovs-lib
@@ -214,4 +209,6 @@ sbin/ovsdb-server
@dir /var/lib/openvswitch/pki
@dir /var/lib/openvswitch
@dir /var/lib
+@dir /var/log/openvswitch
+@dir /var/run/openvswitch
@dir %%ETCDIR%%