From nobody Sat Aug 22 02:09:23 2026 X-Original-To: dev-commits-src-main@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 4hRgbR3NdBz6pyHY for ; Sat, 22 Aug 2026 02:09:23 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hRgbR2Gh1z3c00 for ; Sat, 22 Aug 2026 02:09:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787364563; 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=keiu15FXWakceTHtZv6yftnQadTdnGQ+vUVtJM2lImE=; b=Jj1Pnw4bvafYKs8p2HR7hK3iFAa4cjHYNoEqEgnDAfGy4bWtRYs3yWfkX2NEtuKVbIJNeR LXRC8aTWx3NRhedGrkpVS8vho5jPGKcvJGKSQtFqXadsipD5z4F3qot/S9vbtJkRMabrmw jPyzVl8Yehtyakbc5dgzFpqsdPcFMVZDgysqWqo718x4qbQlP2C+KShhqz0EX1Obe+gyBN OF+IA4VqDUcooT0S5M3MKnyjlgks7kPSqJ21uA6rS+QuQ15MFjz0wdVocEVTl7+wlILZj/ 71rNDzh+9kQ26+ZsLaZmGWCPErsLJKTAg9qa5B8bHifzb2D5g0WIRr1rLsCyoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787364563; a=rsa-sha256; cv=none; b=ENCSzyQAS5CzS7K5iDX1O7ABXweo1famVRa+mKVMA5sxYg3lfO9aBxjQ4yQHfEZaXV7zo3 X2/l/aU8Lqu+MfNfqTUFIQo1DH5EcmIsBHj65avRa8CUee9z5wMRDy1CosyLlD5c5QqQ+W srx2uQ39YchgCC78DUnZBEpcTf8VHqA+lKTf2GpH+P2zMya+RZ1k/M1LdsY3Xn9NF9xY7l 5lQcmNAFP2vU7Lbfr3D/Lf5NJKY26GmBld1iiNfbzxlSegxucmZbC4mGnVTymLcFgx8yzD 6kJC87x6sEV+J4gYVGky4GpMkChdiwpRMKQoKfrpnN737hQsXUJGZk+81s+Ifg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787364563; 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=keiu15FXWakceTHtZv6yftnQadTdnGQ+vUVtJM2lImE=; b=R6W2Lqv/QWSXvJ0G5oT0VH3tBOM4SEPiGA9F06fI7jv6Qk7tLMw1p6c5sDXL9qmF1Ol0hQ qWANqb/YNLDucQpCTgQONbdjoZasVsj8QcUc1fdMI+XJnl5IMteP0rIyLcVmbojWyCaUCE XksX/NqkI1vC9nhVj7spEYhUu6kiIql5jNExGr9tDOkGDQ/jIFr1y9fg86oNll5awcHoqk ZDfEaZp70o34kb0Q2AbWE4ROGxiHOn3SG7ngLGGQ+wEQPmKIwLJroB9hvsOKn3sQ3mnJQW 97i37Rf6Rhou7yJTImp4nGabssVVvB9Gi0AbeO17ASEnMD3WW/AQ7Y2j8PS+FA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hRgbR1MfTzTX4 for ; Sat, 22 Aug 2026 02:09:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37528 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 22 Aug 2026 02:09:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Devin Teske Subject: git: fc7eb8c4a765 - main - examples/jails: New version of jib (9.0) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dteske X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc7eb8c4a76594ad6ce40c43d507248f431c3f9a Auto-Submitted: auto-generated Date: Sat, 22 Aug 2026 02:09:23 +0000 Message-Id: <6a8904d3.37528.5f125d1d@gitrepo.freebsd.org> The branch main has been updated by dteske: URL: https://cgit.FreeBSD.org/src/commit/?id=fc7eb8c4a76594ad6ce40c43d507248f431c3f9a commit fc7eb8c4a76594ad6ce40c43d507248f431c3f9a Author: Devin Teske AuthorDate: 2026-08-22 02:06:46 +0000 Commit: Devin Teske CommitDate: 2026-08-22 02:06:46 +0000 examples/jails: New version of jib (9.0) Add $Version, -h/-v, and SPDX-License-Identifier: BSD-2-Clause. Drop the long-form license and bump the copyright to 2026. MFC after: 1 week --- share/examples/jails/jib | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/share/examples/jails/jib b/share/examples/jails/jib index 55d908438b3e..a4de22da2b49 100755 --- a/share/examples/jails/jib +++ b/share/examples/jails/jib @@ -1,33 +1,13 @@ #!/bin/sh -#- -# Copyright (c) 2016 Devin Teske -# All rights reserved. # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. +# SPDX-License-Identifier: BSD-2-Clause # +# Copyright (c) 2016-2026 Devin Teske # ############################################################ IDENT(1) # # $Title: if_bridge(4) management script for vnet jails $ +# $Version: 9.0 $ # ############################################################ INFORMATION # @@ -131,6 +111,8 @@ # ############################################################ GLOBALS +VERSION='$Version: 9.0 $' + pgm="${0##*/}" # Program basename # @@ -143,10 +125,14 @@ FAILURE=1 usage() { + local optfmt="\t%-5s %s\n" local action usage descr exec >&2 - echo "Usage: $pgm action [arguments]" - echo "Actions:" + printf "Usage: %s [-hv] action [arguments]\n" "$pgm" + printf "Options:\n" + printf "$optfmt" "-h" "Print this usage statement and exit." + printf "$optfmt" "-v" "Print version information and exit." + printf "Actions:\n" for action in \ addm \ show \ @@ -399,6 +385,13 @@ action="$1" # # Validate action argument # +case "$action" in +-h) usage ;; # NOTREACHED +-v) VERSION="${VERSION#*: }" + echo "${VERSION% $}" + exit $SUCCESS ;; +-*) usage ;; # NOTREACHED +esac if [ "$BASH_VERSION" ]; then type="$( type -t "jib_$action" )" || usage # NOTREACHED else