From nobody Sat Dec 09 11:48:48 2023 X-Original-To: dev-commits-ports-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 4SnR9Y0jgBz53sQ1; Sat, 9 Dec 2023 11:48:49 +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 4SnR9Y0B2pz3CX0; Sat, 9 Dec 2023 11:48:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702122529; 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=xOklK5MuY2dVuCVVZFOpWacJ8fRBp752l2ckN+FC8nU=; b=D8ngetpctS1o6/158A3s88dj384KgtEr+cF33vc3kzhvKDUpJO9EGXqFhCzOlSDZAveQc5 dvXVwH2D6sakwwstZkHbxRQ4i5rOatw9q2VKiZfUgRipLms1ANwE+qBJhh80zoUo7NYprv ECrQseCcgRGP4P2fp/0o1lYAPeNtw9HQxEyS7aLbBzD5bN3Gtbc/d4XPD9q6FxUODbqGkG wRf2wlDdbdbnMAJGoaAA0c3BMG0NSfeLPdAMrGAA/TWGfnnTT8HCNy9KkH62/47bumOWbQ sRF1+m6lLVA3aPJrdT7u33ft4T3aM3/6eIDAx9w+QXqKeIMWELPn55cy/QbTrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702122529; a=rsa-sha256; cv=none; b=ScexlLl1o7J8mjXdkZxGGW+D8OSLqL88cpsPmh0YlErfz2HE0hRTLCiLrIOLrQNxhyNqNO R/1yFxqmMRQYbBYwZrd1aAi/tqVTA1uZIFMwfhij+j1GOfPLXeFa+C+iCLlE/tOl1r+B5F m7fcPwaW4Ej1i6sXG9UaXkIu976dWedxqCTa4BcqrqQRyzo4kASvwylYma1lhMAjJF6yYX MZ7V5fYmPsX9n7qQWYixbxrBRxBJZpKbMjlTrvhVTAqlgUrHlyX60vQqMiBanjTxqhKtbH d1ZQG3Z3VB3eIdJnznaTKWdZhedDBYGJi69vuTZtBQ859KSQ14KYoneMl/DDvA== 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=1702122529; 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=xOklK5MuY2dVuCVVZFOpWacJ8fRBp752l2ckN+FC8nU=; b=kAAqorBlzNEhL5tIBgG3PpSJwPBAURW6wCgf+pHoE4vDnGI7po46JXLr0xf2MsTR/zP1qv YwRmDgbGYG84UAisNfav3FpArukMijfEyNxlPx4yuy/gXMb3QWJJQh0xQE97EFCsGBpyTG vojW0yYpobj+wX1HFafIgtoTSYmAl4WOlcvcyi0COtAjhzGoWP1/df7otIVwzrFYyw92q6 33ZNiiDAShqdblM9+tJHuVXMtVknjEslK7VBTJ/a2yNFqMrzPDea0i3UaKxmKPJJ9keRM/ 8kaTSCHq1zrmwACIL9KzXFiRQ+OjQw8yIRpHLzz0H4yUAurs4Yo9W4M6QRBtLQ== 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 4SnR9X6Grvz131G; Sat, 9 Dec 2023 11:48:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B9BmmmT096526; Sat, 9 Dec 2023 11:48:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B9Bmm8l096523; Sat, 9 Dec 2023 11:48:48 GMT (envelope-from git) Date: Sat, 9 Dec 2023 11:48:48 GMT Message-Id: <202312091148.3B9Bmm8l096523@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: 4c6bb66915d4 - main - net/socat: Add configurable IPv4/IPv6 preference option List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c6bb66915d405ad49d3d843c6fdd2857e9371c8 Auto-Submitted: auto-generated The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=4c6bb66915d405ad49d3d843c6fdd2857e9371c8 commit 4c6bb66915d405ad49d3d843c6fdd2857e9371c8 Author: Emanuel Haupt AuthorDate: 2023-12-09 11:48:40 +0000 Commit: Emanuel Haupt CommitDate: 2023-12-09 11:48:44 +0000 net/socat: Add configurable IPv4/IPv6 preference option In socat version 1.8.0.0, a new feature was introduced allowing users to configure the default IP version preference at build time using the `--enable-default-ipv` option. This change resulted in a default preference for IPv6, which led to unexpected behavior for some users. To address this, a new option has been added to the FreeBSD port of socat. By default, the port restores the previous behavior where IPv4 is preferred. However, users now have the option to explicitly specify a preference for IPv6 if desired. This change aims to align with the Principle of Least Astonishment (POLA) and provide users with flexibility in choosing their preferred IP version. PR: 275653 (based on) --- net/socat/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/socat/Makefile b/net/socat/Makefile index 048726802dd7..b9742ae1ae51 100644 --- a/net/socat/Makefile +++ b/net/socat/Makefile @@ -1,5 +1,6 @@ PORTNAME= socat DISTVERSION= 1.8.0.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.dest-unreach.org/socat/download/ \ LOCAL/ehaupt @@ -26,7 +27,11 @@ PLIST_FILES= bin/filan \ man/man1/socat.1.gz PORTDOCS= EXAMPLES FAQ README SECURITY -OPTIONS_DEFINE= DOCS READLINE +OPTIONS_DEFINE= DOCS READLINE IPV6DEFAULT +IPV6DEFAULT_DESC= Use IPv6 by default + +IPV6DEFAULT_CONFIGURE_OFF= --enable-default-ipv=4 +IPV6DEFAULT_CONFIGURE_ENABLE= default-ipv=6 READLINE_USES= readline READLINE_CONFIGURE_ENABLE= readline