From nobody Sun Jul 17 09:10:47 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Llzpb64ydz4Wht0; Sun, 17 Jul 2022 09:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Llzpb5gMjz3DQC; Sun, 17 Jul 2022 09:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658049047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KYWJwKrO4OAXva1z4aEemlow65CLck8elAp+yj3ODUM=; b=uzZOxfIvFrTBHVXLRlrpOH6WRzc/i3pMz0abNf6K5jA+Gpt8w7rRp0l47ZSYtC9QK+wS+p OlHABGqeiC6OkBbCvwUcRdVr8Dj3cNkDTT30tOzeK1/Edi85Bcc9Jl8wpTwsj5CGvUokqB p8+tVPIrcuOxOfXpUAaAibMZHBU5kcQoWBMK1mqzPmbQYX+bEL6/6Cdar/yCeQ2VzgmiM5 nVAn/fBUCruK7HlCKtZEWcI3VB7MQxunVmhrJAeBq9J3aeS2QqbSePmNpHyJBMid/vS2Hp fA+rEkUU96e98Ulb6ueuoRRNVI8GhaxrJgZgewrspO+MtXAv1JxJUDjOdKNJuQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Llzpb4Q9WzvJF; Sun, 17 Jul 2022 09:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26H9Alqg034223; Sun, 17 Jul 2022 09:10:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26H9AleC034222; Sun, 17 Jul 2022 09:10:47 GMT (envelope-from git) Date: Sun, 17 Jul 2022 09:10:47 GMT Message-Id: <202207170910.26H9AleC034222@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kurt Jaeger Subject: git: f1fc9eed65fd - main - net/openbgpd7: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f1fc9eed65fd6bfac035f48018ca5ad959420dfe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658049047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KYWJwKrO4OAXva1z4aEemlow65CLck8elAp+yj3ODUM=; b=WEPlSV+MzOU+OhzK/G8g7FJPWUcmMunlFVjZdH6JcnnA6FsL/kp0C2Nl1BWeamjI9V79TM 1sJPoiBCVZSN07nThsv9th2240OAH8Rzf430bUDhL/0qQytVLcolUaGpqqEK+NuVCeaNvY UseHSkvEuL1Tnk0gVreugeI4b4VGFwq5m2jJpWmd88sIhaULbEbJGMxw0JD1dTaT1OvUAB qVv/FxtpBlwE5pRge2ZCWa2Pai0OvPKYouwqNVcSoRwb5/Dl2NHgyMnXT1pyPkGcSNsvmn ZTIkfoUL+ziKBLG/y2KNeiLSoT4NVYhzwyL39AGdCJnALDZdBmfDLoMTXq12rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658049047; a=rsa-sha256; cv=none; b=OwKZu/92OFmQSH84Ci0iA2IQZCKMI2PspUFu59VdetoF27LQSSMNLwBT2c0Kwg+iKNg+3e dEcmyHn1ynOipd2Wn4skY69ViIWuAKafGv5gLv1BnQqn6khRJ2Xu5Ruq2/AB2SoZxjxUE7 sUhSKyhZdVw39Q28DW265PQ3GcjhcNyQ+ROxrA4AvFvfkqIQlQdgso/L/LuyKkdcnKTVUr ALQyBIXzmOZIzNBEG/uCBm1PwZR+xLaaOPukfApWe+pBxFHedZmdDuVZDCpvDdw/rfqr7n osG9xXBwemXB2GJpnakQEzi9XXFW9xI1x/WVndbhO1HIwAmZYeVkUVZXa6ByXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pi: URL: https://cgit.FreeBSD.org/ports/commit/?id=f1fc9eed65fd6bfac035f48018ca5ad959420dfe commit f1fc9eed65fd6bfac035f48018ca5ad959420dfe Author: Kurt Jaeger AuthorDate: 2022-07-17 09:05:36 +0000 Commit: Kurt Jaeger CommitDate: 2022-07-17 09:10:35 +0000 net/openbgpd7: New port Release-Notes: https://marc.info/?l=openbgpd-users&m=165788800825316&w=2 This version re-adds FIB support for FreeBSD (missing in net/openbgpd6). This means that this version propagades changes to the system routing tables. This version adds TCP MD5 support on FreeBSD. Sponsored-by: Klara Systems Inc. --- net/Makefile | 1 + net/openbgpd7/Makefile | 30 ++++++++++++++++++++++++++++++ net/openbgpd7/distinfo | 3 +++ net/openbgpd7/files/COPYING | 19 +++++++++++++++++++ net/openbgpd7/files/openbgpd.in | 32 ++++++++++++++++++++++++++++++++ net/openbgpd7/files/patch-Makefile.am | 22 ++++++++++++++++++++++ net/openbgpd7/files/pkg-message.in | 10 ++++++++++ net/openbgpd7/pkg-descr | 9 +++++++++ net/openbgpd7/pkg-plist | 8 ++++++++ 9 files changed, 134 insertions(+) diff --git a/net/Makefile b/net/Makefile index d1f2cdb4851a..6a9d96f70957 100644 --- a/net/Makefile +++ b/net/Makefile @@ -550,6 +550,7 @@ SUBDIR += open-isns SUBDIR += openbgpd SUBDIR += openbgpd6 + SUBDIR += openbgpd7 SUBDIR += openldap24-client SUBDIR += openldap24-server SUBDIR += openldap25-client diff --git a/net/openbgpd7/Makefile b/net/openbgpd7/Makefile new file mode 100644 index 000000000000..00b3e66ba7c1 --- /dev/null +++ b/net/openbgpd7/Makefile @@ -0,0 +1,30 @@ +PORTNAME= openbgpd +PORTVERSION= 7.5 +CATEGORIES= net +MASTER_SITES= OPENBSD/OpenBGPD +PKGNAMESUFFIX= 7 + +MAINTAINER= pi@FreeBSD.org +COMMENT= Free implementation of the Border Gateway Protocol, Version 4 + +LICENSE= MIT +LICENSE_FILE= ${FILESDIR}/COPYING + +USES= autoreconf libtool localbase pathfix uidfix +USE_RC_SUBR= ${PORTNAME} + +GNU_CONFIGURE= yes + +SUB_FILES= pkg-message + +USERS= _bgpd +GROUPS= _bgpd + +CONFLICTS= zebra quagga + +OPTIONS_DEFINE= IPV6LLPEER +OPTIONS_DEFAULT= IPV6LLPEER +IPV6LLPEER_DESC= Support nexthop using IPv6 link-local address +IPV6LLPEER_MAKE_ARGS= -DIPV6_LINKLOCAL_PEER + +.include diff --git a/net/openbgpd7/distinfo b/net/openbgpd7/distinfo new file mode 100644 index 000000000000..f6b3eb765e57 --- /dev/null +++ b/net/openbgpd7/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1658041955 +SHA256 (openbgpd-7.5.tar.gz) = 67a81b3005cb23416b1c4842f1a1ed63a113c26ef1e91ce9ec0b90dcd5caffea +SIZE (openbgpd-7.5.tar.gz) = 789286 diff --git a/net/openbgpd7/files/COPYING b/net/openbgpd7/files/COPYING new file mode 100644 index 000000000000..0e9cfc51f9c0 --- /dev/null +++ b/net/openbgpd7/files/COPYING @@ -0,0 +1,19 @@ +Copyright (c) 2003-2007 Henning Brauer +Copyright (c) 2002 Daniel Hartmeier +Copyright (c) 2003, 2004, 2006 Claudio Jeker +Copyright (c) 2003, 2004 Markus Friedl +Copyright (c) 2004 Damien Miller +Copyright (c) 2006, 2007, 2008 Reyk Floeter +Copyright (c) 2006, 2007 Pierre-Yves Ritschard + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/net/openbgpd7/files/openbgpd.in b/net/openbgpd7/files/openbgpd.in new file mode 100644 index 000000000000..9f17d0032365 --- /dev/null +++ b/net/openbgpd7/files/openbgpd.in @@ -0,0 +1,32 @@ +#!/bin/sh + +# PROVIDE: bgpd dynamicrouting +# REQUIRE: LOGIN abi +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable openbgpd: +# +# openbgpd_enable="YES" +# openbgpd_flags="" +# +# See bgpd(8) for openbgpd_flags + +. /etc/rc.subr + +name=openbgpd +rcvar=openbgpd_enable + +extra_commands=reload +command="%%PREFIX%%/sbin/bgpd" +required_files="%%PREFIX%%/etc/bgpd.conf" + +: ${openbgpd_enable=NO} + +check_process() +{ + /bin/pgrep -f 'bgpd: parent.*' +} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/openbgpd7/files/patch-Makefile.am b/net/openbgpd7/files/patch-Makefile.am new file mode 100644 index 000000000000..78ffb52c79fc --- /dev/null +++ b/net/openbgpd7/files/patch-Makefile.am @@ -0,0 +1,22 @@ +--- Makefile.am.orig 2020-05-05 08:36:21 UTC ++++ Makefile.am +@@ -19,13 +19,16 @@ ACLOCAL_AMFLAGS = -I m4 + EXTRA_DIST = README.md LICENSE VERSION bgpd.conf + + install-data-hook: +- @if [ ! -d "$(DESTDIR)$(runstatedir)" ]; then \ ++ if [ ! -d "$(DESTDIR)$(runstatedir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(runstatedir)"; \ + fi +- @if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ ++ if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"; \ + fi +- @if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ ++ if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf.sample" ]; then \ ++ $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf.sample"; \ ++ fi ++ if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ + $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf"; \ + else \ + echo; \ diff --git a/net/openbgpd7/files/pkg-message.in b/net/openbgpd7/files/pkg-message.in new file mode 100644 index 000000000000..4e6b1eb8a3be --- /dev/null +++ b/net/openbgpd7/files/pkg-message.in @@ -0,0 +1,10 @@ +[ +{ type: install + message: <