From nobody Wed Apr 12 17:39:21 2023 X-Original-To: dev-commits-ports-all@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 4PxVMN2mZRz458Pk; Wed, 12 Apr 2023 17:39:28 +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 4PxVMK2HM4z3mhb; Wed, 12 Apr 2023 17:39:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681321165; 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=vC7oXXWNF4f9thFZaUHdKkX/GqJelI1282LGlHF1R5k=; b=g79rVKIpEUcM7wLdI+zNl4d4FHJywSm6G6GGhrKUGHpQXTsjPv7HQJhYvlRglmnhG0oUGZ utqTEoha4REjj/XYdeijzp6mYHqbGhl7r1knEZPfIUGVRLEJihHObeBV9tzSc/ipHntryp NAE8bhbaXl6QI7F8PitQcBBclRGVYNBwTv7INEEKRHdzws34ZKcEP5fxc/djvsAtbxXOPr QvErczalv8ER2DgflR9/fN8yB6Nr6Axf2yGp3/PzXl9FhWK0Hlp3b1Cekh/wYTWcmlbZtu 2jd2eH41DOodgQ/AvS+ugllnEWUeC5l/k1CtVRv8Som9/ZOBNuDggd+EAo7Dvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681321165; 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=vC7oXXWNF4f9thFZaUHdKkX/GqJelI1282LGlHF1R5k=; b=rrGZKJrTeY1/nUS9S8p94gVjeH0TzBMF9zZKjE5kC+TM6r/bEOaiA3SGMR+sZL3B9ZTQkq jTr8wxDEGmdCgUuTOFAzqWeE6E3p58BvisDzJmlclPFdFrxnEyZUCwDM++xOaaXarGPM8l PPqlI6cchDvXJijwuSlPMdV3wfwIIkR20GNlDH4Wk6Mt9NDALuSR3ENU7GI+lJ87eOJu0g iiOm8L3ANbRfkYVnV2UZNrei0M9/ouDAgJLDfXEJDGTOvvAfbeql+4bJmNUnSa1aWuh2KB qJT4vGDz+m1nH3U+0LoXJpVWn6PkD44nYCH7oW4N63cB1IF0alKb5z1vQQdkTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681321165; a=rsa-sha256; cv=none; b=QYYRnwDGZc4Vm+JzhDUBX9HW51fCU/y+przIl6RqCZ0+ee0L4llSyLnWOkL5nZrYRKdMXc YuKY12B/HKGDIwOHVZcJznZV6+MpoA2FGZDcRDRJD3p0WofNW26WkV2SzJyVJOmqEpEPij SZTXq4lbrZGztlEjCgYhw7r5kSVGJfd64zAfWRXyHeh6lKmf1aA9XrSXOMBCvVFJG77qZz /bsqei9lqotOgoeoGyyiQkTbmi5z+djZCT9zwKqPwcLO3UxeSADyB0g4gK7mWwUEkfk5go 5JLx1lBP1rSJK06jt2ZDeU5PeBxQu1GGcWt4CFj7sWMtZ1N+e7buq4r5gnCY+w== 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 4PxVMG1FX3z18RD; Wed, 12 Apr 2023 17:39:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33CHdLKF099360; Wed, 12 Apr 2023 17:39:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33CHdLAe099359; Wed, 12 Apr 2023 17:39:21 GMT (envelope-from git) Date: Wed, 12 Apr 2023 17:39:21 GMT Message-Id: <202304121739.33CHdLAe099359@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 165835b999af - main - sysutils/openseachest: Update version 21.06.21=>23.03.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 165835b999af1db6266b5cd034e39d38093a3598 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=165835b999af1db6266b5cd034e39d38093a3598 commit 165835b999af1db6266b5cd034e39d38093a3598 Author: Muhammad Moinur Rahman AuthorDate: 2023-04-12 16:47:58 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-04-12 17:39:06 +0000 sysutils/openseachest: Update version 21.06.21=>23.03.1 Changelog: https://github.com/Seagate/openSeaChest/releases/tag/v23.03.1 --- sysutils/openseachest/Makefile | 34 +++--- sysutils/openseachest/distinfo | 22 ++-- .../files/patch-src_openseachest__util__options.c | 128 ++++++++++++++++++++- 3 files changed, 149 insertions(+), 35 deletions(-) diff --git a/sysutils/openseachest/Makefile b/sysutils/openseachest/Makefile index 8386ebb7fb95..dd7371391eeb 100644 --- a/sysutils/openseachest/Makefile +++ b/sysutils/openseachest/Makefile @@ -1,5 +1,5 @@ PORTNAME= openseachest -PORTVERSION= 21.06.21 +PORTVERSION= 23.03.1 DISTVERSIONPREFIX= v CATEGORIES= sysutils @@ -11,36 +11,34 @@ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= dos2unix gmake -ALL_TARGET= release - DOS2UNIX_FILES= src/openseachest_util_options.c - USE_GITHUB= yes GH_ACCOUNT= Seagate GH_PROJECT= openSeaChest -GH_TUPLE= Seagate:opensea-common:dc89150:common/opensea-common \ - Seagate:opensea-operations:cfd7678:operations/opensea-operations \ - Seagate:opensea-transport:a2ea73c:transport/opensea-transport \ - Seagate:wingetopt:1b5b5ad:wingetopt/wingetopt +GH_TUPLE= Seagate:opensea-common:5b65caa:common/subprojects/opensea-common \ + Seagate:opensea-operations:187570b:operations/subprojects/opensea-operations \ + Seagate:opensea-transport:cca4059:transport/subprojects/opensea-transport \ + Seagate:wingetopt:92c217a:wingetopt/subprojects/wingetopt + +MAKE_JOBS_UNSAFE= yes +ALL_TARGET= release + +CFLAGS+= -Wall -c -std=gnu99 BUILD_WRKSRC= ${WRKSRC}/Make/gcc INSTALL_WRKSRC= ${WRKSRC}/Make/gcc -CFLAGS+= -Wall -c -std=gnu99 -MAKE_JOBS_UNSAFE= yes + EXES= openSeaChest_Basics openSeaChest_Configure openSeaChest_Erase \ - openSeaChest_Firmware openSeaChest_FormatUnit \ - openSeaChest_GenericTests openSeaChest_Info openSeaChest_Logs \ - openSeaChest_NVMe openSeaChest_PassthroughTest \ - openSeaChest_PowerControl openSeaChest_Security \ - openSeaChest_SMART openSeaChest_ZBD + openSeaChest_Firmware openSeaChest_GenericTests \ + openSeaChest_Info openSeaChest_Logs openSeaChest_NVMe \ + openSeaChest_PassthroughTest openSeaChest_PowerControl \ + openSeaChest_Security openSeaChest_SMART openSeaChest_ZBD .for file in ${EXES} PLIST_FILES+= bin/${file} .endfor -.include - do-install: .for exefile in ${EXES} ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/openseachest_exes/${exefile} ${STAGEDIR}${PREFIX}/bin/ .endfor -.include +.include diff --git a/sysutils/openseachest/distinfo b/sysutils/openseachest/distinfo index ad9120ceec01..72a468aba0ee 100644 --- a/sysutils/openseachest/distinfo +++ b/sysutils/openseachest/distinfo @@ -1,11 +1,11 @@ -TIMESTAMP = 1630345993 -SHA256 (Seagate-openSeaChest-v21.06.21_GH0.tar.gz) = ab9b458b8389d1a36b9703fd97ac4e4b8d157c028b8ee28315ff96541cc45956 -SIZE (Seagate-openSeaChest-v21.06.21_GH0.tar.gz) = 728115 -SHA256 (Seagate-opensea-common-dc89150_GH0.tar.gz) = 97b6d9dbc1b1ed489a63becc26c2da4ce24aa5a824525e344dd9702db3b021c9 -SIZE (Seagate-opensea-common-dc89150_GH0.tar.gz) = 111481 -SHA256 (Seagate-opensea-operations-cfd7678_GH0.tar.gz) = 297f642bea96ce18fd1380183525983f62d160347868af0b678d8757d5a18aa6 -SIZE (Seagate-opensea-operations-cfd7678_GH0.tar.gz) = 423225 -SHA256 (Seagate-opensea-transport-a2ea73c_GH0.tar.gz) = 1dba2ffb45cd4266600aab151613dbdc8a850a286ff1fa5de7dedfc4b8c9c251 -SIZE (Seagate-opensea-transport-a2ea73c_GH0.tar.gz) = 705111 -SHA256 (Seagate-wingetopt-1b5b5ad_GH0.tar.gz) = 33457d93e768e9e877a84004e8f2d9a597fabe706855d4d18b10d60c650e24b8 -SIZE (Seagate-wingetopt-1b5b5ad_GH0.tar.gz) = 15515 +TIMESTAMP = 1681317398 +SHA256 (Seagate-openSeaChest-v23.03.1_GH0.tar.gz) = aa307959126fd1863a818eb798923172f222760d9830835485e0d49cb7e40739 +SIZE (Seagate-openSeaChest-v23.03.1_GH0.tar.gz) = 849008 +SHA256 (Seagate-opensea-common-5b65caa_GH0.tar.gz) = 888801ae8e145b7c8641314230b812f80f8401166c23ba3ceaa693181f1557a5 +SIZE (Seagate-opensea-common-5b65caa_GH0.tar.gz) = 134787 +SHA256 (Seagate-opensea-operations-187570b_GH0.tar.gz) = 02b066b7954bb1bffa68f66ae20f2dccf9599b0126d5aecc33405181b940d145 +SIZE (Seagate-opensea-operations-187570b_GH0.tar.gz) = 481580 +SHA256 (Seagate-opensea-transport-cca4059_GH0.tar.gz) = f96666592af7b5d50caeda8b10ee70d789b05a343efcfa3d92c03b85ba89f232 +SIZE (Seagate-opensea-transport-cca4059_GH0.tar.gz) = 818645 +SHA256 (Seagate-wingetopt-92c217a_GH0.tar.gz) = 4de8bc7f6bb92361872345bf0a273ae7e76e44f7d4990c6fe439a43cd7796e38 +SIZE (Seagate-wingetopt-92c217a_GH0.tar.gz) = 20882 diff --git a/sysutils/openseachest/files/patch-src_openseachest__util__options.c b/sysutils/openseachest/files/patch-src_openseachest__util__options.c index 13c7b0bd4dc8..898d2d3d2c6d 100644 --- a/sysutils/openseachest/files/patch-src_openseachest__util__options.c +++ b/sysutils/openseachest/files/patch-src_openseachest__util__options.c @@ -1,6 +1,6 @@ ---- src/openseachest_util_options.c.orig 2021-05-21 17:50:44 UTC +--- src/openseachest_util_options.c.orig 2023-04-12 16:13:25 UTC +++ src/openseachest_util_options.c -@@ -108,12 +108,12 @@ void print_Elevated_Privileges_Text() +@@ -112,12 +112,12 @@ void print_Elevated_Privileges_Text(void) char* get_current_year(char *temp_year) { @@ -18,16 +18,16 @@ return temp_year; } -@@ -147,7 +147,7 @@ void openseachest_utility_Info(const char *utilityName +@@ -151,7 +151,7 @@ void openseachest_utility_Info(const char *utilityName printf(" %s Version: %s-%s ", utilityName, buildVersion, seaCPublicVersion); print_Architecture(architecture); printf("\n"); - printf(" Build Date: %s\n", __DATE__); + printf(" Build Date: %s\n", "Jan 19 2038"); - if (0 == strftime(currentTime, 30, "%c", get_Localtime(&g_curTime, &utilTime))) + if (0 == strftime(currentTime, CURRENT_TIME_STRING_MAX_LENGTH, "%c", get_Localtime(&g_curTime, &utilTime))) { - sprintf(currentTime, "Unable to get local time"); -@@ -174,7 +174,7 @@ void utility_Full_Version_Info(const char *utilityName + snprintf(currentTime, CURRENT_TIME_STRING_MAX_LENGTH, "Unable to get local time"); +@@ -178,7 +178,7 @@ void utility_Full_Version_Info(const char *utilityName printf("\topensea-common Version: %s\n", openseaCommonVersion); printf("\topensea-transport Version: %" PRId32".%" PRId32".%" PRId32"\n", seaCPublicMajorVersion, seaCPublicMinorVersion, seaCPublicPatchVersion); printf("\topensea-operations Version: %s\n", openseaOperationVersion); @@ -36,3 +36,119 @@ printf("\tCompiled Architecture: "); print_Architecture(get_Compiled_Architecture()); printf("\n\tDetected Endianness: "); +@@ -227,58 +227,58 @@ void print_SeaChest_Util_Exit_Codes(int numberOfToolSp + + void get_Scan_Flags(deviceScanFlags *scanFlags, char *optarg) + { +- if(strncmp("ata", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanATA = true; +- } +- else if (strlen(optarg) == 3 && strncmp("usb", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanUSB = true; +- } +- else if (strlen(optarg) == 4 && strncmp("scsi", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanSCSI = true; +- } +- else if (strlen(optarg) == 4 && strncmp("nvme", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanNVMe = true; +- } +- else if (strlen(optarg) == 4 && strncmp("raid", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanRAID = true; +- } +- else if (strlen(optarg) == 12 && strncmp("interfaceATA", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanInterfaceATA = true; +- } +- else if (strlen(optarg) == 12 && strncmp("interfaceUSB", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanInterfaceUSB = true; +- } +- else if (strlen(optarg) == 13 && strncmp("interfaceSCSI", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanInterfaceSCSI = true; +- } +- else if (strlen(optarg) == 13 && strncmp("interfaceNVME", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanInterfaceNVMe = true; +- } +- else if (strlen(optarg) == 2 && strncmp("sd", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanSD = true; +- } +- else if (strlen(optarg) == 6 && strncmp("sgtosd", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanSDandSG = true; +- } +- else if (strlen(optarg) == 10 && strncmp("ignoreCSMI", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanIgnoreCSMI = true; +- } +- else if (strlen(optarg) == 15 && strncmp("allowDuplicates", optarg, strlen(optarg)) == 0) +- { +- scanFlags->scanAllowDuplicateDevices = true; +- } ++ if(strncmp("ata", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanATA = true; ++ } ++ else if (strlen(optarg) == 3 && strncmp("usb", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanUSB = true; ++ } ++ else if (strlen(optarg) == 4 && strncmp("scsi", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanSCSI = true; ++ } ++ else if (strlen(optarg) == 4 && strncmp("nvme", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanNVMe = true; ++ } ++ else if (strlen(optarg) == 4 && strncmp("raid", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanRAID = true; ++ } ++ else if (strlen(optarg) == 12 && strncmp("interfaceATA", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanInterfaceATA = true; ++ } ++ else if (strlen(optarg) == 12 && strncmp("interfaceUSB", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanInterfaceUSB = true; ++ } ++ else if (strlen(optarg) == 13 && strncmp("interfaceSCSI", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanInterfaceSCSI = true; ++ } ++ else if (strlen(optarg) == 13 && strncmp("interfaceNVME", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanInterfaceNVMe = true; ++ } ++ else if (strlen(optarg) == 2 && strncmp("sd", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanSD = true; ++ } ++ else if (strlen(optarg) == 6 && strncmp("sgtosd", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanSDandSG = true; ++ } ++ else if (strlen(optarg) == 10 && strncmp("ignoreCSMI", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanIgnoreCSMI = true; ++ } ++ else if (strlen(optarg) == 15 && strncmp("allowDuplicates", optarg, strlen(optarg)) == 0) ++ { ++ scanFlags->scanAllowDuplicateDevices = true; ++ } + return; + } + +@@ -4310,4 +4310,3 @@ void print_Persistent_Reservations_Preempt_Abort_Help( + printf("\t\t--%s option in order to specify the key to preempt.\n\n", PERSISTENT_RESERVATION_PREEMPT_LONG_OPT_STRING); + } + } +-