aboutsummaryrefslogtreecommitdiff
path: root/sysutils/megarc/Makefile
blob: d1db851a1284d232e9ad4dfdc726f98e4dea42d7 (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
PORTNAME=	megarc
PORTVERSION=	1.51
CATEGORIES=	sysutils
MASTER_SITES=	# not available
DISTNAME=	dr_freebsd_${PORTVERSION}
EXTRACT_SUFX=	.zip

MAINTAINER=	ports@FreeBSD.org
COMMENT=	LSI Logic's MegaRAID controlling software
WWW=		http://www.lsi.com/products/raid-controllers/pages/default.aspx

# Converted from RESTRICTED
LICENSE=	LSI
LICENSE_NAME=	LSI
LICENSE_TEXT=	Must be downloaded directly from the manufacturer
LICENSE_PERMS=	auto-accept

OPTIONS_DEFINE=	DOCS

USES=		dos2unix
DOS2UNIX_GLOB=	*.txt
NO_BUILD=	yes
NO_WRKSUBDIR=	yes
STRIP=

ONLY_FOR_ARCHS=	i386 amd64

PLIST_FILES=	sbin/megarc
PORTDOCS=	*

post-extract:
	@cd ${WRKSRC} && \
		${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} 'MegaRC 1.04.zip' -C ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/megarc ${STAGEDIR}${PREFIX}/sbin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/Release\ History.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=	has a distribution file that is not freely available.  The binary is shipped on the Megaraid Universal Software Suite CD which accompanies any boxed LSI Logic RAID storage adaptor.  Copy ${DISTNAME}${EXTRACT_SUFX} to ${DISTDIR} and try again.  For further instructions, see http://www.freebsdwiki.net/index.php/Megarc
.endif

.include <bsd.port.post.mk>