aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sas3ircu/Makefile
blob: a0dc7408b890dcacaa7d71c388307afb0e6d4037 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $FreeBSD$

PORTNAME=   sas3ircu
PORTVERSION=    11.00.00.00
CATEGORIES= sysutils
MASTER_SITES=   
DISTNAME=   SAS3IRCU_P10

LSI_SITES=  http://docs.avagotech.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_12g_p10/

MAINTAINER= bapt@FreeBSD.org
COMMENT=    SAS-3 Integrated RAID Configuration Utility

WRKSRC= ${WRKDIR}/${DISTNAME}

USES=   zip
NO_BUILD=   yes

ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON=  Binaries only available for i386 and amd64 from LSI

RESTRICTED= May not be redistributed. Must accept license to download.

OPTIONS_DEFINE= DOCS

PLIST_FILES=    sbin/sas3ircu
PORTDOCS=   IRCU_MPT_GEN3_Phase10.0-11.00.00.00.pdf \
        README_SAS3IRCU_P10.txt

DISTFILE_INSTRUCTIONS=  \n\
Due to licensing restrictions, certain files must be fetched manually.\n\
Please visit the following URL and accept the license agreement.\n\n\
${LSI_SITES}${DISTNAME}${EXTRACT_SUFX}\n\n\
After the download has completed, please place ${DISTNAME}${EXTRACT_SUFX} in\n\
${DISTDIR}, then restart the build.\n\n

.if defined(PACKAGE_BUILDING)
IGNORE=     requires manual fetch
.endif

.include <bsd.port.pre.mk>

.if ! exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
pre-fetch:
    @${PRINTF} "${DISTFILE_INSTRUCTIONS}" ; exit 1
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}_${OPSYS:tl}_${ARCH:tl}_rel/${PORTNAME} \
        ${STAGEDIR}${PREFIX}/sbin

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/IRCU_MPT_GEN3_Phase10.0-${PORTVERSION}.pdf \
        ${WRKSRC}/README_SAS3IRCU_P10.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>