aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/megacli/Makefile
blob: 92b2a01f499d344f56a709154311605dc94513ec (plain) (blame)
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
# New Ports collection makefile for:    megacli
# Date created:     12 April 2009
# Whom:         Vladimir Laskov <samflanker@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   megacli
PORTVERSION=    8.02.16
CATEGORIES= sysutils
MASTER_SITES=   http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/ \
        CRITICAL
DISTNAME=   ${PORTVERSION}_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

FETCH_BEFORE_ARGS=  -o ${DISTDIR}/${DISTFILES}

ONLY_FOR_ARCHS= i386 amd64

USE_ZIP=    yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PLIST_FILES=    sbin/MegaCli

pre-fetch:
    @${FETCH_BINARY} -o /dev/null http://www.lsi.com/magic.axd?x=e&file=http%3A//www.lsi.com/downloads/Public/MegaRAID%2520Common%2520Files/8.02.16_MegaCLI.zip

.include <bsd.port.pre.mk>
do-install:
.if ${ARCH} == "i386"
        ${INSTALL_PROGRAM} ${WRKSRC}/FREEBSD/MegaCli ${PREFIX}/sbin/MegaCli
.elif ${ARCH} == "amd64"
        ${INSTALL_PROGRAM} ${WRKSRC}/FREEBSD/MegaCli64 ${PREFIX}/sbin/MegaCli
.endif
.include <bsd.port.post.mk>