From owner-svn-ports-all@freebsd.org Tue Sep 22 21:32:51 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE1C13F7AE5; Tue, 22 Sep 2020 21:32:51 +0000 (UTC) (envelope-from olivier@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bwvfq4BBkz3S6Z; Tue, 22 Sep 2020 21:32:51 +0000 (UTC) (envelope-from olivier@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 72E4525F94; Tue, 22 Sep 2020 21:32:51 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08MLWpuB022465; Tue, 22 Sep 2020 21:32:51 GMT (envelope-from olivier@FreeBSD.org) Received: (from olivier@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08MLWo26022462; Tue, 22 Sep 2020 21:32:50 GMT (envelope-from olivier@FreeBSD.org) Message-Id: <202009222132.08MLWo26022462@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivier set sender to olivier@FreeBSD.org using -f From: Olivier Cochard Date: Tue, 22 Sep 2020 21:32:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r549638 - in head/net/frr7: . files X-SVN-Group: ports-head X-SVN-Commit-Author: olivier X-SVN-Commit-Paths: in head/net/frr7: . files X-SVN-Commit-Revision: 549638 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.33 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: Tue, 22 Sep 2020 21:32:51 -0000 Author: olivier Date: Tue Sep 22 21:32:50 2020 New Revision: 549638 URL: https://svnweb.freebsd.org/changeset/ports/549638 Log: Fixing bug in frr-reload and while here fix a typo in the package name suffix too. Submitted by: Ben Hughes Reported by: garga Added: head/net/frr7/files/patch-tools_frr-reload.py (contents, props changed) head/net/frr7/files/patch-vtysh_vtysh.c (contents, props changed) Modified: head/net/frr7/Makefile head/net/frr7/files/patch-Makefile.am Modified: head/net/frr7/Makefile ============================================================================== --- head/net/frr7/Makefile Tue Sep 22 21:31:06 2020 (r549637) +++ head/net/frr7/Makefile Tue Sep 22 21:32:50 2020 (r549638) @@ -3,10 +3,10 @@ PORTNAME= frr PORTVERSION= 7.4 DISTVERSIONPREFIX= frr- -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net .if defined(PYTHONTOOLS) -PKGNAMESUFFIX= 7-pythontool +PKGNAMESUFFIX= 7-pythontools .else PKGNAMESUFFIX= 7 .endif @@ -24,8 +24,10 @@ RUN_DEPENDS= frr-reload:net/frr7 USES= python:run shebangfix post-patch: - @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/tools/frr-reload.py - @${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|g' ${WRKSRC}/tools/frr-reload.py + @${REINPLACE_CMD} -e 's|/etc/frr|${ETCDIR}|g' \ + -e 's|/usr/bin|${PREFIX}/bin|g' \ + -e 's|/usr/local/bin/tail|${TAIL}|g' \ + ${WRKSRC}/tools/frr-reload.py do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/frr @@ -123,9 +125,10 @@ USE_RC_SUBR= frr watchfrr SHEBANG_FILES= yang/embedmodel.py post-patch: - @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/tools/frr-reload - @${REINPLACE_CMD} -e 's|/usr/lib/|${PREFIX}/lib/|g' ${WRKSRC}/tools/frr-reload - @${REINPLACE_CMD} -e 's|frr-pythontools|frr7-pythontools|g' ${WRKSRC}/tools/frr-reload + @${REINPLACE_CMD} -e 's|/etc/frr|${ETCDIR}|g' \ + -e 's|/usr/lib/|${PREFIX}/lib/|g' \ + -e 's|frr-pythontools|frr7-pythontools|g' \ + ${WRKSRC}/tools/frr-reload post-install: ${MKDIR} ${STAGEDIR}/var/run/frr Modified: head/net/frr7/files/patch-Makefile.am ============================================================================== --- head/net/frr7/files/patch-Makefile.am Tue Sep 22 21:31:06 2020 (r549637) +++ head/net/frr7/files/patch-Makefile.am Tue Sep 22 21:32:50 2020 (r549638) @@ -1,6 +1,6 @@ ---- Makefile.am.orig 2019-08-02 12:14:29 UTC +--- Makefile.am.orig 2020-06-30 11:08:57 UTC +++ Makefile.am -@@ -122,7 +122,6 @@ include watchfrr/subdir.am +@@ -134,7 +134,6 @@ include watchfrr/subdir.am include qpb/subdir.am include fpm/subdir.am include grpc/subdir.am Added: head/net/frr7/files/patch-tools_frr-reload.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/frr7/files/patch-tools_frr-reload.py Tue Sep 22 21:32:50 2020 (r549638) @@ -0,0 +1,20 @@ +From 1c23a0aaa1c5d20af50af75b070e93e1eff21222 Mon Sep 17 00:00:00 2001 +From: Paul Manley +Date: Thu, 9 Jul 2020 11:21:16 -0500 +Subject: [PATCH] tools: create sub-context for bfd peers + +add lines starting with 'peer' to the list of sub-contexts that are handled by frr-reload.py. + +https://github.com/FRRouting/frr/issues/6511#issuecomment-655163833 + +Signed-off-by: Paul Manley +--- tools/frr-reload.py.orig 2020-06-30 11:08:57 UTC ++++ tools/frr-reload.py +@@ -496,6 +496,7 @@ end + line.startswith("vnc defaults") or + line.startswith("vnc l2-group") or + line.startswith("vnc nve-group") or ++ line.startswith("peer") or + line.startswith("member pseudowire")): + main_ctx_key = [] + Added: head/net/frr7/files/patch-vtysh_vtysh.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/frr7/files/patch-vtysh_vtysh.c Tue Sep 22 21:32:50 2020 (r549638) @@ -0,0 +1,22 @@ +From b727c12aabf1afc2b6e33f8590c9786e349e4fcb Mon Sep 17 00:00:00 2001 +From: Paul Manley +Date: Thu, 9 Jul 2020 11:25:34 -0500 +Subject: [PATCH] vtysh: properly exit BFD_PEER_NODE when marking file + +vtysh needs to be aware of how to properly exit a bfd peer when subsequent commands only succeed in a higher context. + +https://github.com/FRRouting/frr/issues/6511#issuecomment-656166206 + +Signed-off-by: Paul Manley +--- vtysh/vtysh.c.orig 2020-06-30 11:08:57 UTC ++++ vtysh/vtysh.c +@@ -809,6 +809,9 @@ int vtysh_mark_file(const char *filename) + } else if ((prev_node == KEYCHAIN_KEY_NODE) + && (tried == 1)) { + vty_out(vty, "exit\n"); ++ } else if ((prev_node == BFD_PEER_NODE) ++ && (tried == 1)) { ++ vty_out(vty, "exit\n"); + } else if (tried) { + vty_out(vty, "end\n"); + }