# Created by: Vladimir Laskov # $FreeBSD: head/sysutils/megacli/Makefile 392919 2015-07-26 11:15:35Z antoine $ PORTNAME= megacli PORTREVISION= 1 DISTVERSION= 8-07-14 CATEGORIES= sysutils MASTER_SITES= http://www.avagotech.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/ \ http://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/ DISTNAME= ${DISTVERSION}_MegaCLI MAINTAINER= samflanker@gmail.com COMMENT= SAS MegaRAID FreeBSD MegaCLI RESTRICTED= Source recipient must acknowledge license. Reproduction or redistribution prohibited. See http://www.lsi.com/lookup/License.aspx USES= zip ONLY_FOR_ARCHS= i386 amd64 NO_BUILD= yes NO_WRKSUBDIR= yes PLIST_FILES= sbin/MegaCli MEGACLI_ARCH= MegaCli${ARCH:S/i386//:S/amd64/64/} post-extract: @${MV} ${WRKSRC}/FreeBSD/MegaCLI.zip ${WRKSRC}/FreeBSD/MegaCli.zip @${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/FreeBSD/${MEGACLI_ARCH}.zip -d ${WRKSRC}/FreeBSD do-install: ${INSTALL_SCRIPT} ${WRKSRC}/FreeBSD/${MEGACLI_ARCH} ${STAGEDIR}${PREFIX}/sbin/MegaCli @/usr/bin/brandelf -t ${OPSYS} ${STAGEDIR}${PREFIX}/sbin/MegaCli .include