From owner-svn-ports-all@freebsd.org Fri Sep 15 14:17:05 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38887E192E1; Fri, 15 Sep 2017 14:17:05 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1316E69B4F; Fri, 15 Sep 2017 14:17:05 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8FEH4e3000958; Fri, 15 Sep 2017 14:17:04 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8FEH3Lw000947; Fri, 15 Sep 2017 14:17:03 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201709151417.v8FEH3Lw000947@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Fri, 15 Sep 2017 14:17:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449905 - in head/net-mgmt: . openbmp openbmp/files X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/net-mgmt: . openbmp openbmp/files X-SVN-Commit-Revision: 449905 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2017 14:17:05 -0000 Author: pizzamig Date: Fri Sep 15 14:17:03 2017 New Revision: 449905 URL: https://svnweb.freebsd.org/changeset/ports/449905 Log: net-mgmt/openbmp: new port Adding openBMP, a BGP Monitor Protocol collector Approved by: olivier (mentor) Sponsored by: trivago N.V. Differential Revision: https://reviews.freebsd.org/D12378 Added: head/net-mgmt/openbmp/ head/net-mgmt/openbmp/Makefile (contents, props changed) head/net-mgmt/openbmp/distinfo (contents, props changed) head/net-mgmt/openbmp/files/ head/net-mgmt/openbmp/files/patch-CMakeLists.txt (contents, props changed) head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt (contents, props changed) head/net-mgmt/openbmp/files/patch-Server_src_Config.cpp (contents, props changed) head/net-mgmt/openbmp/files/patch-Server_src_client__thread.cpp (contents, props changed) head/net-mgmt/openbmp/files/patch-Server_src_kafka_KafkaTopicSelector.cpp (contents, props changed) head/net-mgmt/openbmp/pkg-descr (contents, props changed) head/net-mgmt/openbmp/pkg-plist (contents, props changed) Modified: head/net-mgmt/Makefile Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Fri Sep 15 13:43:56 2017 (r449904) +++ head/net-mgmt/Makefile Fri Sep 15 14:17:03 2017 (r449905) @@ -210,6 +210,7 @@ SUBDIR += ocsinventory-ng SUBDIR += omping SUBDIR += onionlauncher + SUBDIR += openbmp SUBDIR += openlldp SUBDIR += openvmps SUBDIR += p0f Added: head/net-mgmt/openbmp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/Makefile Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,23 @@ +# Created by: Luca Pizzamiglio +# $FreeBSD$ + +PORTNAME= openbmp +DISTVERSIONPREFIX= v +DISTVERSION= 0.13.0 +CATEGORIES= net-mgmt + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= OpenBMP Server Collector + +LICENSE= EPL +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= librdkafka.so:net/librdkafka \ + libsasl2.so:security/cyrus-sasl2 \ + libyaml-cpp.so:devel/yaml-cpp + +USES= cmake:outsource ssl +USE_GITHUB= yes +GH_ACCOUNT= OpenBMP + +.include Added: head/net-mgmt/openbmp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/distinfo Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,3 @@ +TIMESTAMP = 1505339149 +SHA256 (OpenBMP-openbmp-v0.13.0_GH0.tar.gz) = 5eb3cc72553e1be86e47e298da441cdc1d4be9a4c67bd0d02f14fc903a01c307 +SIZE (OpenBMP-openbmp-v0.13.0_GH0.tar.gz) = 3016241 Added: head/net-mgmt/openbmp/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/files/patch-CMakeLists.txt Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2017-09-14 09:28:17 UTC ++++ CMakeLists.txt +@@ -24,6 +24,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL Linux) + set(LINUX TRUE) + elseif (CMAKE_SYSTEM_NAME STREQUAL Darwin) + set(MACOSX TRUE) ++elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) ++ set(FREEBSD TRUE) + else () + Message (FATAL_ERROR "${CMAKE_SYSTEM_NAME} not supported; Must be Linux or Darwin") + endif() Added: head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,34 @@ +--- Server/CMakeLists.txt.orig 2017-09-14 09:29:16 UTC ++++ Server/CMakeLists.txt +@@ -24,6 +24,14 @@ find_path(LIBYAML_CPP_INCLUDE_DIR + PATH_SUFFIXES + include) + ++find_path(LIBLZ4_CPP_LIBRARY_DIR ++ NAMES ++ liblz4.so ++ HINTS ++ ${HINT_ROOT_DIR} ++ PATH_SUFFIXES ++ lib) ++ + find_library(LIBYAML_CPP_LIBRARY + NAMES + libyaml-cpp.a yaml-cpp +@@ -84,6 +92,7 @@ endif() + # Update the include dir + include_directories(${LIBRDKAFKA_INCLUDE_DIR} ${LIBYAML_CPP_INCLUDE_DIR} src/ src/bmp src/bgp src/bgp/linkstate src/kafka) + #link_directories(${LIBRDKAFKA_LIBRARY}) ++link_directories(${LIBLZ4_CPP_LIBRARY_DIR}) + + + # Define the source files to compile +@@ -134,7 +143,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR CMA + endif() + + # Set the libs to link +-set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z ${SSL_LIBS}) ++set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z lz4 ${SSL_LIBS}) + + # Set the binary + add_executable (openbmpd ${SRC_FILES}) Added: head/net-mgmt/openbmp/files/patch-Server_src_Config.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/files/patch-Server_src_Config.cpp Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,10 @@ +--- Server/src/Config.cpp.orig 2017-09-14 09:34:05 UTC ++++ Server/src/Config.cpp +@@ -15,6 +15,7 @@ + #include + + #include ++#include + #include + #include + #include Added: head/net-mgmt/openbmp/files/patch-Server_src_client__thread.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/files/patch-Server_src_client__thread.cpp Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,11 @@ +--- Server/src/client_thread.cpp.orig 2017-09-14 09:34:45 UTC ++++ Server/src/client_thread.cpp +@@ -227,7 +227,7 @@ void *ClientThread(void *arg) { + close(sock_fds[0]); + close(sock_fds[1]); + +-#ifndef __APPLE__ ++#if !defined(__APPLE__) and !defined(__FreeBSD__) + } catch (abi::__forced_unwind&) { + close(sock_fds[0]); + close(sock_fds[1]); Added: head/net-mgmt/openbmp/files/patch-Server_src_kafka_KafkaTopicSelector.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/files/patch-Server_src_kafka_KafkaTopicSelector.cpp Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,17 @@ +--- Server/src/kafka/KafkaTopicSelector.cpp.orig 2017-09-14 09:36:00 UTC ++++ Server/src/kafka/KafkaTopicSelector.cpp +@@ -8,6 +8,7 @@ + */ + + #include ++#include + #include + + #include "KafkaTopicSelector.h" +@@ -439,4 +440,4 @@ void KafkaTopicSelector::freeTopicMap() { + it->second = NULL; + } + } +-} +\ No newline at end of file ++} Added: head/net-mgmt/openbmp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/pkg-descr Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,6 @@ +OpenBMP is part of the Open BGP Monitoring Protocol collection framework. +OpenBMP is an open source project that implements draft-ietf-grow-bmp-17. +BMP protocol version 3 is defined in draft 08, while versions 1 and 2 are +defined in the previous revisions of the draft. + +WWW: https://github.com/OpenBMP/openbmp Added: head/net-mgmt/openbmp/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openbmp/pkg-plist Fri Sep 15 14:17:03 2017 (r449905) @@ -0,0 +1,2 @@ +bin/openbmpd +%%ETCDIR%%/openbmpd.conf