freebsd-ports/sysutils/storcli/Makefile
Mathieu Arnold 065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00

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= ${WRKSRC}/storcli_all_os/FreeBSD
FETCH_AFTER_ARGS=-v
post-extract:
@${TAR} xf ${WRKSRC}/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 > ${WRKSRC}/pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/storcli${ARCH:S/i386//:S/amd64/64/}\
${STAGEDIR}${PREFIX}/sbin/storcli
.include <bsd.port.mk>