aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/tw_cli/Makefile
blob: 02a8eb0a5dd3bc87f4b6a43e52b6f6acc2eff94a (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
# $FreeBSD$

PORTNAME=   tw_cli
PORTVERSION=    9.5.5
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/
DISTNAME=   CLI_freebsd-from_the_10-2-2-1_9-5-5-1_codesets
DIST_SUBDIR=    3dm2

MAINTAINER= jpaetzel@FreeBSD.org
COMMENT=    3ware storage controllers management CLI

LICENSE=    tw_cli
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
SUB_FILES=  407.status-3ware-raid
PORTDOCS=   tw_cli.8.html
PLIST_FILES=    etc/periodic/daily/407.status-3ware-raid\
        man/man8/tw_cli.8.gz sbin/tw_cli

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${ARCH:S,i386,x86,:S,amd64,x86_64,}/tw_cli\
        ${STAGEDIR}${PREFIX}/sbin/tw_cli
    ${INSTALL_MAN} ${WRKSRC}/tw_cli.8.nroff\
        ${STAGEDIR}${MAN8PREFIX}/man/man8/tw_cli.8
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
    ${INSTALL_SCRIPT} ${WRKDIR}/407.status-3ware-raid \
        ${STAGEDIR}${PREFIX}/etc/periodic/daily/
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>