aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2026-05-14 15:58:02 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2026-05-14 15:58:02 +0000
commit8449abddafd51664c57f8cf97bec92be7e02fa9e (patch)
tree50e7d110f6792366012e78d1b1a67c0613cde0f0
parentbc719341172dfe312f17d52c201640702fdf64a5 (diff)
sysutils/storcli2: Repocopy from sysutils/storcli
PR: 293540 Sponsored by: UNIS Labs
-rw-r--r--sysutils/storcli2/Makefile57
-rw-r--r--sysutils/storcli2/distinfo3
-rw-r--r--sysutils/storcli2/pkg-descr2
3 files changed, 62 insertions, 0 deletions
diff --git a/sysutils/storcli2/Makefile b/sysutils/storcli2/Makefile
new file mode 100644
index 000000000000..fd4818dce310
--- /dev/null
+++ b/sysutils/storcli2/Makefile
@@ -0,0 +1,57 @@
+PORTNAME= storcli
+DISTVERSION= 7.3603
+CATEGORIES= sysutils
+MASTER_SITES= https://docs.broadcom.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_nvme_12g_p37/
+DISTNAME= STORCLI_SAS3.5_P37
+DIST_SUBDIR= ${PORTNAME}${DISTVERSION}
+
+MAINTAINER= takefu@airport.fm
+COMMENT= SAS MegaRAID FreeBSD StorCLI
+WWW= https://www.broadcom.com/support/
+
+LICENSE= storcli
+LICENSE_NAME= BROADCOM
+LICENSE_TEXT= Source recipient must acknowledge license.\
+ Reproduction or redistribution prohibited.\
+ See ${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}
+LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
+
+ONLY_FOR_ARCHS= amd64
+ONLY_FOR_ARCHS_REASON= binaries only available for amd64
+USES= zip
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PLIST_FILES= sbin/storcli
+PORTDOCS= MR_SAS_Unified_StorCLI--00${DISTVERSION}.0000.0000.pdf readme.txt
+OPTIONS_DEFINE= DOCS
+BINSRC= ${WRKSRC}/${DISTNAME}/univ_viva_cli_rel/Unified_storcli_all_os
+
+.include <bsd.port.pre.mk>
+
+.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
+DOWNLOAD_URL= ${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}
+IGNORE= you must manually fetch the distribution file \
+ (${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, \
+ place it in ${DISTDIR}/${DIST_SUBDIR} and then run make again
+.endif
+
+post-extract:
+ @${TAR} xf ${BINSRC}/FreeBSD/storcli64.tar -C${WRKSRC}
+ @${ECHO} "[" > ${WRKDIR}/pkg-message
+ @${ECHO} "{" >> ${WRKDIR}/pkg-message
+ @${ECHO} " message: <<EOM" >> ${WRKDIR}/pkg-message
+ @${FMT} 75 79 ${BINSRC}/readme.txt >> ${WRKDIR}/pkg-message
+ @${ECHO} "EOM">> ${WRKDIR}/pkg-message
+ @${ECHO} "}" >> ${WRKDIR}/pkg-message
+ @${ECHO} "]" >> ${WRKDIR}/pkg-message
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/storcli64 ${STAGEDIR}${PREFIX}/sbin/storcli
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${BINSRC}/../../MR_SAS_Unified_StorCLI--00${DISTVERSION}.0000.0000.pdf \
+ ${BINSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/storcli2/distinfo b/sysutils/storcli2/distinfo
new file mode 100644
index 000000000000..848e9255e62c
--- /dev/null
+++ b/sysutils/storcli2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1772448254
+SHA256 (storcli7.3603/STORCLI_SAS3.5_P37.zip) = aa864c1055eb1488368593f72c0d064177fc53bd5857e4ac126a2b5a1784b754
+SIZE (storcli7.3603/STORCLI_SAS3.5_P37.zip) = 50381817
diff --git a/sysutils/storcli2/pkg-descr b/sysutils/storcli2/pkg-descr
new file mode 100644
index 000000000000..31197e428815
--- /dev/null
+++ b/sysutils/storcli2/pkg-descr
@@ -0,0 +1,2 @@
+Command Line Interface for the MegaRAID SAS family of RAID controllers,
+used to configure and manage connected storage devices.