<pre style='margin:0'>
ra1nb0w (ra1nb0w) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/61cdc4f7cd1745247492d3a7ba275b69918f4c0e">https://github.com/macports/macports-ports/commit/61cdc4f7cd1745247492d3a7ba275b69918f4c0e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 61cdc4f7cd1 wireshark-chmodbpf: update to 1.1
</span>61cdc4f7cd1 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 61cdc4f7cd1745247492d3a7ba275b69918f4c0e
</span>Author: Chad Catlett <chad@catlett.info>
AuthorDate: Tue Oct 12 14:13:51 2021 -0500

<span style='display:block; white-space:pre;color:#404040;'>    wireshark-chmodbpf: update to 1.1
</span>---
 net/wireshark-chmodbpf/Portfile                            |  4 ++--
 net/wireshark-chmodbpf/files/patch-wireshark-chmodbpf.diff | 13 +++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wireshark-chmodbpf/Portfile b/net/wireshark-chmodbpf/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 996d5f8fa90..9c614a37b08 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/wireshark-chmodbpf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wireshark-chmodbpf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,8 +3,8 @@
</span> PortSystem          1.0
 
 name                wireshark-chmodbpf
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version             1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version             1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span> platforms           darwin macosx
 categories          net
 license             {GPL-2 GPL-3}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wireshark-chmodbpf/files/patch-wireshark-chmodbpf.diff b/net/wireshark-chmodbpf/files/patch-wireshark-chmodbpf.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 12cd9e956ff..01b0b53ec38 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/wireshark-chmodbpf/files/patch-wireshark-chmodbpf.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wireshark-chmodbpf/files/patch-wireshark-chmodbpf.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,8 +3,9 @@ new file mode 100755
</span> index 0000000..8564790
 --- /dev/null
 +++ sbin/wireshark-chmodbpf
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -0,0 +1,40 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,41 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#! /bin/zsh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# shellcheck shell=bash
</span> +
 +#
 +# Unfortunately, macOS's devfs is based on the old FreeBSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,20 +27,20 @@ index 0000000..8564790
</span> +#
 +
 +# Pre-create BPF devices. Set to 0 to disable.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+FORCE_CREATE_BPF_MAX=10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++FORCE_CREATE_BPF_MAX=256
</span> +
 +SYSCTL_MAX=$( sysctl -n debug.bpf_maxdevices )
 +if [ "$FORCE_CREATE_BPF_MAX" -gt "$SYSCTL_MAX" ] ; then
 +      FORCE_CREATE_BPF_MAX=$SYSCTL_MAX
 +fi
 +
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+syslog -s -l notice "ChmodBPF: Forcing creation and setting permissions for /dev/bpf*"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++syslog -s -l notice "ChmodBPF: Forcing creation and setting permissions for /dev/bpf0-$(( FORCE_CREATE_BPF_MAX - 1))"
</span> +
 +CUR_DEV=0
 +while [ "$CUR_DEV" -lt "$FORCE_CREATE_BPF_MAX" ] ; do
 +      # Try to do the minimum necessary to trigger the next device.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+       read -n 0 < /dev/bpf$CUR_DEV > /dev/null 2>&1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+  CUR_DEV=$(( $CUR_DEV + 1 ))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  read -r -n 0 < /dev/bpf$CUR_DEV > /dev/null 2>&1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  CUR_DEV=$(( CUR_DEV + 1 ))
</span> +done
 +
 +chgrp @BPF_GROUP@ /dev/bpf*
</pre><pre style='margin:0'>

</pre>