blob: 06cd86be208eb426116beca3dfdd6135ead52282 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
PORTNAME= storcli
DISTVERSION= 7.1211
CATEGORIES= sysutils
MASTER_SITES= https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/
DISTNAME= 007.1211.0000.0000_Unified_StorCLI
MAINTAINER= takefu@airport.fm
COMMENT= SAS MegaRAID FreeBSD StorCLI
LICENSE= storcli
LICENSE_NAME= BROADCOM
LICENSE_TEXT= Source recipient must acknowledge license.\
Reproduction or redistribution prohibited.\
See https://www.broadcom.com/cs/Satellite?pagename=AVG2/Utilities/EulaMsg
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
USES= zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= sbin/storcli
PKGMESSAGE= ${WRKDIR}/pkg-message
BINSRC= ${WRKSRC}/Unified_storcli_all_os/FreeBSD
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
DOWNLOAD_URL= https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${DISTNAME}${EXTRACT_SUFX}
IGNORE?= You must manually fetch the distribution file\
(${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL},\
place it in ${DISTDIR} and then run make again
.endif
post-extract:
@${TAR} xf ${BINSRC}/storcli${ARCH:S/i386//:S/amd64/64/}.tar -C${WRKSRC}
@${REINPLACE_CMD} 's#\(StorCli\).*StorCli64#\1#'\
${BINSRC}/FreeBSD_readme.txt
@${ECHO} "[" > ${WRKDIR}/pkg-message
@${ECHO} "{" >> ${WRKDIR}/pkg-message
@${ECHO} " message: <<EOM" >> ${WRKDIR}/pkg-message
@${FMT} 75 79 ${BINSRC}/FreeBSD_readme.txt >> ${WRKDIR}/pkg-message
@${ECHO} "EOM">> ${WRKDIR}/pkg-message
@${ECHO} "}" >> ${WRKDIR}/pkg-message
@${ECHO} "]" >> ${WRKDIR}/pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/storcli${ARCH:S/i386//:S/amd64/64/}\
${STAGEDIR}${PREFIX}/sbin/storcli
.include <bsd.port.post.mk>
|