forked from Lainports/freebsd-ports
This is the replacement tool to megaraid for the Avago megaraid SAS family. PR: ports/201580 Submitted by: <takefu@airport.fm> Reviewed by: bapt Sponsored by: Norse Corp, Inc (my review, testing, commit)
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= storcli
|
|
PORTVERSION= 1.16.06
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.avagotech.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/
|
|
DISTNAME= MR_SAS_StorCLI_${PORTVERSION:S!.!-!g}
|
|
|
|
MAINTAINER= takefu@airport.fm
|
|
COMMENT= SAS MegaRAID FreeBSD StorCLI
|
|
|
|
LICENSE= storcli
|
|
LICENSE_NAME= LSI
|
|
LICENSE_TEXT= ${RESTRICTED}
|
|
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
|
|
|
RESTRICTED= Source recipient must acknowledge license. Reproduction or redistribution prohibited. See http://www.lsi.com/Pages/user/eula.aspx
|
|
|
|
USES= zip
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= sbin/storcli
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
BINSRC= ${WRKDIR}/storcli_all_os/FreeBSD
|
|
FETCH_AFTER_ARGS=-v
|
|
|
|
post-extract:
|
|
@${TAR} xf ${WRKDIR}/storcli_all_os.zip -C${WRKSRC}
|
|
@${TAR} xf ${BINSRC}/storcli${ARCH:S/i386//:S/amd64/64/}.tar -C${WRKSRC}
|
|
@${REINPLACE_CMD} 's#\(StorCli\).*StorCli64#\1#'\
|
|
${BINSRC}/FreeBSD_readme.txt
|
|
@${FMT} 75 79 ${BINSRC}/FreeBSD_readme.txt > ${WRKDIR}/pkg-message
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/storcli${ARCH:S/i386//:S/amd64/64/}\
|
|
${STAGEDIR}${PREFIX}/sbin/storcli
|
|
|
|
.include <bsd.port.mk>
|