From nobody Fri Oct 27 09:32:16 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 4SGy9s23Wsz4y2mJ; Fri, 27 Oct 2023 09:32:17 +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 4SGy9s1YCnz3bvv; Fri, 27 Oct 2023 09:32:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698399137; 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=nzddSMPT4bzVX5hG/5Snxp7jMt/m/ilnWBNx5xCWFSI=; b=DWuehhLwGktsEB+8KkmWeoUtNCqvmshT/smxGQ7tXF1Rfxv6+eY2N1KLzrqd8bDQukJpR7 GtRT8EwlA3+DI65tfrrUOk1fTO8RAOxSciHQSvtnDVDmfeTbFayNfc3HLSV+Uhf4KRI16+ 8PqTDRZFS/dwDqm7AGtUBkgRrQs698k8qi7rzPK9AqnFAe5c2LocCObHlkECRujpmxpMKv v3YaI344t/NXid/HcsFphR3cxmGnC7y25sQlQZmQuiJfTwodRoFLa6Ap+JXYLtECdNTmNj wLqpW6nRWMhSNlFC2tkzDRNS0oIEeaHyixFyiU4BWyTllTM2oFk3+DJ5F/2gUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698399137; 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=nzddSMPT4bzVX5hG/5Snxp7jMt/m/ilnWBNx5xCWFSI=; b=Wthdoogtp/8N7PJJ6w8q9yIkzp3o0fBqVEkMq5fjbttn9jMzE4BTCppN3gpqpxOut9hgxb q/LHy68Bzo2srmcmAu+BmHfO1yJl/KFXGelgNHhLPkSxqOUN+4YULvjVsbIgH7g0d5ov0w rok+ma0bQMQ10RWeRUsOjT4j9RIv+NUdJgugca/UVK6CEAmcZ5YTGqbZa83orsDs7ZjIVG yOUa/eZKeMwf5Ta61gu9SWhMSdXMfFoxdyb1Gn9uU8YMw/YAOe6vyKViRjdPKqRo6/9Mh6 fdtjL9rVcIm5QO+IaElK08Yxxn0MtZcTvkFRmyg6pfsdix9aye2bXCgWsrrbXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698399137; a=rsa-sha256; cv=none; b=UL/zHsUMYKnGQsD8eF/3x1fxNnp4zjhJXvWG2E17eJIHxp9RSaMYr0VwURNTKk1ZKNlHkW bsruVmubv35Gn9GNnSjrUcHkcxJlPj56dK1xF3cfVPvmxnYiW4HxLiEVK07twdqc/OGe2p 1Zn8KzzmF9RcmBDasnsRLicYUzZv2qQQ+15U78O5ewOWugdz813oCKj6/6fVfbo4LqrTCk RfUcon+lKAeEPEBy2reQHAyaQcsiYFw3BrnVh+00/LqYGGFQGUbqajJw8D4Q63wymblWyp xeRK+k4trGVJ17k29M7aOBiT95rXtXT/1cacc2Jz9RfHo7rgjL3QgZroewPLDQ== 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 4SGy9s0LqVz17t7; Fri, 27 Oct 2023 09:32:17 +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 39R9WG6U089442; Fri, 27 Oct 2023 09:32:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39R9WGO5089439; Fri, 27 Oct 2023 09:32:16 GMT (envelope-from git) Date: Fri, 27 Oct 2023 09:32:16 GMT Message-Id: <202310270932.39R9WGO5089439@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: 3671e9d23962 - main - net/mpd5: minor improvements 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: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3671e9d239628d5f25b282255e4d864cf7536614 Auto-Submitted: auto-generated The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=3671e9d239628d5f25b282255e4d864cf7536614 commit 3671e9d239628d5f25b282255e4d864cf7536614 Author: Eugene Grosbein AuthorDate: 2023-10-27 09:18:09 +0000 Commit: Eugene Grosbein CommitDate: 2023-10-27 09:32:10 +0000 net/mpd5: minor improvements (1) Import r2512 and r2529 from upstream: * optimize CCP logging a bit: no string copying for known CCP names; * use right name for HP-PPC. Bump PORTREVISION. (2) Also, this commit fixes upgrade problem for package users introduced with previous commit that removed USES=ssl not bumping PORTREVISION and following rename of openssl package to openssl111. For details, refer to: https://github.com/opnsense/core/issues/6959 PR: 274748 (2) Reported by: Franco Fichtner (2) Fixes: 87e2681289fc1eb5fda22e4072aca1e7943af25e --- net/mpd5/Makefile | 2 +- net/mpd5/files/patch-ccp | 107 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 1 deletion(-) diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile index 58b5e00506f9..0c63072d8abc 100644 --- a/net/mpd5/Makefile +++ b/net/mpd5/Makefile @@ -1,6 +1,6 @@ PORTNAME= mpd DISTVERSION= 5.9 -PORTREVISION= 16 +PORTREVISION= 17 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION} PKGNAMESUFFIX= 5 diff --git a/net/mpd5/files/patch-ccp b/net/mpd5/files/patch-ccp new file mode 100644 index 000000000000..3055d4f84643 --- /dev/null +++ b/net/mpd5/files/patch-ccp @@ -0,0 +1,107 @@ +Index: ccp.h +=================================================================== +--- src/ccp.h (revision 2511) ++++ src/ccp.h (working copy) +@@ -39,7 +39,7 @@ + #define CCP_TY_PRED1 1 /* Predictor type 1 */ + #define CCP_TY_PRED2 2 /* Predictor type 2 */ + #define CCP_TY_PUDDLE 3 /* Puddle Jumper */ +- #define CCP_TY_HWPPC 16 /* Hewlett-Packard PPC */ ++ #define CCP_TY_HPPPC 16 /* Hewlett-Packard PPC */ + #define CCP_TY_STAC 17 /* Stac Electronics LZS */ + #define CCP_TY_MPPC 18 /* Microsoft PPC */ + #define CCP_TY_GAND 19 /* Gandalf FZA */ +@@ -50,6 +50,7 @@ + #define CCP_TY_DCE 25 /* Data Compression in Data Circuit-Terminating Equipment */ + #define CCP_TY_DEFLATE 26 /* Gzip "deflate" compression */ + #define CCP_TY_V44 27 /* V.44/LZJH Compression Protocol */ ++ #define CCP_TY_LASTKNOWN CCP_TY_V44 + + #define CCP_OVERHEAD 2 + +--- src/ccp.c.orig 2023-10-27 15:59:28.379182000 +0700 ++++ src/ccp.c 2023-10-27 16:00:57.038431000 +0700 +@@ -60,7 +60,7 @@ + static int CcpCheckEncryption(Bund b); + static int CcpSetCommand(Context ctx, int ac, const char *const av[], const void *arg); + static CompType CcpFindComp(int type, int *indexp); +- static const char *CcpTypeName(int type, char *buf, size_t len); ++ static const char *CcpTypeName(u_char type, char *buf, size_t len); + + static void CcpNgCtrlEvent(int type, void *cookie); + static void CcpNgDataEvent(int type, void *cookie); +@@ -132,28 +132,6 @@ + NULL, NULL, NULL, NULL + }; + +- /* Names for different types of compression */ +- static const struct ccpname { +- u_char type; +- const char *name; +- } gCcpTypeNames[] = { +- { CCP_TY_OUI, "OUI" }, +- { CCP_TY_PRED1, "PRED1" }, +- { CCP_TY_PRED2, "PRED2" }, +- { CCP_TY_PUDDLE, "PUDDLE" }, +- { CCP_TY_HWPPC, "HWPPC" }, +- { CCP_TY_STAC, "STAC" }, +- { CCP_TY_MPPC, "MPPC" }, +- { CCP_TY_GAND, "GAND" }, +- { CCP_TY_V42BIS, "V42BIS" }, +- { CCP_TY_BSD, "BSD" }, +- { CCP_TY_LZS_DCP, "LZS-DCP" }, +- { CCP_TY_MVRCA, "MVRCA" }, +- { CCP_TY_DCE, "DCE" }, +- { CCP_TY_DEFLATE, "DEFLATE" }, +- { CCP_TY_V44, "V.44/LZJH" }, +- { 0, NULL }, +- }; + + int gCcpCsock = -1; /* Socket node control socket */ + int gCcpDsock = -1; /* Socket node data socket */ +@@ -1107,17 +1085,35 @@ CcpFindComp(int type, int *indexp) + */ + + static const char * +-CcpTypeName(int type, char *buf, size_t len) +-{ +- const struct ccpname *p; ++CcpTypeName(u_char type, char *buf, size_t len) ++ { ++ /* Names for different types of compression */ ++ static const char * const ccpnames[] = { ++ "OUI", ++ "PRED1", ++ "PRED2", ++ "PUDDLE", ++ "HPPPC", ++ "STAC", ++ "MPPC", ++ "GAND", ++ "V42BIS", ++ "BSD", ++ "UNKNOWN[22]", ++ "LZS_DCP", ++ "MVRCA", ++ "DCE", ++ "DEFLATE", ++ "V.44/LZJH" ++ }; ++ if (type <= CCP_TY_PUDDLE) ++ return(ccpnames[type]); + +- for (p = gCcpTypeNames; p->name; p++) { +- if (p->type == type) { +- strlcpy(buf, p->name, len); +- return (buf); +- } +- } +- snprintf(buf, sizeof(buf), "UNKNOWN[%d]", type); ++ if (type >= CCP_TY_HPPPC && type <= CCP_TY_LASTKNOWN) ++ /* type - (CCP_TY_HPPPC-CCP_TY_PUDDLE-1) */ ++ return(ccpnames[type - 12]); ++ ++ snprintf(buf, len, "UNKNOWN[%u]", (unsigned)type); + return(buf); + } +