git: 26861cc612d8 - main - net/containernetworking-plugins: update to 0.2

From: Doug Rabson <dfr_at_FreeBSD.org>
Date: Sun, 04 Dec 2022 11:03:34 UTC
The branch main has been updated by dfr (src committer):

URL: https://cgit.FreeBSD.org/ports/commit/?id=26861cc612d83c067858fe1889f752708be0edd5

commit 26861cc612d83c067858fe1889f752708be0edd5
Author:     Doug Rabson <dfr@FreeBSD.org>
AuthorDate: 2022-11-30 13:30:22 +0000
Commit:     Doug Rabson <dfr@FreeBSD.org>
CommitDate: 2022-12-04 10:56:53 +0000

    net/containernetworking-plugins: update to 0.2
    
    Approved by:    dch
---
 net/containernetworking-plugins/Makefile             | 4 ++--
 net/containernetworking-plugins/distinfo             | 6 +++---
 net/containernetworking-plugins/files/pf.conf.sample | 9 +++++----
 net/containernetworking-plugins/pkg-message          | 4 +++-
 4 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/net/containernetworking-plugins/Makefile b/net/containernetworking-plugins/Makefile
index f0e11c9ead4f..d5285b81baa3 100644
--- a/net/containernetworking-plugins/Makefile
+++ b/net/containernetworking-plugins/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	containernetworking-plugins
-DISTVERSION=	0.1
+DISTVERSION=	0.2.1
 CATEGORIES=	net
 
 MAINTAINER=	dfr@FreeBSD.org
@@ -14,7 +14,7 @@ BUILD_DEPENDS=	bash:shells/bash
 USE_GITHUB=	yes
 GH_ACCOUNT=	dfr
 GH_PROJECT=	plugins
-GH_TAGNAME=	60b0a2b
+GH_TAGNAME=	freebsd-v0.2.1
 
 do-build:
 	cd ${WRKSRC} && ${SETENV} XDG_CACHE_HOME=${WRKDIR}/.cache GO=${GO_CMD} ./build_freebsd.sh
diff --git a/net/containernetworking-plugins/distinfo b/net/containernetworking-plugins/distinfo
index 2e328f4fd663..2906a5ac54c3 100644
--- a/net/containernetworking-plugins/distinfo
+++ b/net/containernetworking-plugins/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1667064085
-SHA256 (dfr-plugins-0.1-60b0a2b_GH0.tar.gz) = e2eb2a6ec6209b4cd08ebd53b104fe1d0edafb3d3473c8450e60a69e3c509399
-SIZE (dfr-plugins-0.1-60b0a2b_GH0.tar.gz) = 4197131
+TIMESTAMP = 1669909849
+SHA256 (dfr-plugins-0.2.1-freebsd-v0.2.1_GH0.tar.gz) = b915e4861e311797ab266badca84977a9daf1618c7b08c694f1402fbaa7ece66
+SIZE (dfr-plugins-0.2.1-freebsd-v0.2.1_GH0.tar.gz) = 4197418
diff --git a/net/containernetworking-plugins/files/pf.conf.sample b/net/containernetworking-plugins/files/pf.conf.sample
index 9d4ec5e2b414..c2d99f2a3bbf 100644
--- a/net/containernetworking-plugins/files/pf.conf.sample
+++ b/net/containernetworking-plugins/files/pf.conf.sample
@@ -1,8 +1,9 @@
-# Change this to the interface with the default route
-egress_if = "ix0"
+# Change these to the interface(s) with the default route
+v4egress_if = "ix0"
+v6egress_if = "ix0"
 
-nat on $egress_if inet from <cni-nat> to any -> ($egress_if)
-nat on $egress_if inet6 from <cni-nat> to !ff00::/8 -> ($egress_if)
+nat on $v4egress_if inet from <cni-nat> to any -> ($v4egress_if)
+nat on $v6egress_if inet6 from <cni-nat> to !ff00::/8 -> ($v6egress_if)
 
 rdr-anchor "cni-rdr/*"
 table <cni-nat>
diff --git a/net/containernetworking-plugins/pkg-message b/net/containernetworking-plugins/pkg-message
index 55be0dfff490..32b0f5b9dde1 100644
--- a/net/containernetworking-plugins/pkg-message
+++ b/net/containernetworking-plugins/pkg-message
@@ -3,6 +3,8 @@ out to the host's network. This requires a PF firewall to perform the
 translation. A simple example is included - to use it:
 
 # cp /usr/local/etc/containers/pf.conf.sample /etc/pf.conf
-... edit /etc/pf.conf and set egress_if to your network interface ...
+...
+Edit /etc/pf.conf and set v4egress_if, v6egress_if to your network interface(s)s
+...
 # sysrc pf_enable=YES
 # service pf start