summaryrefslogtreecommitdiff
path: root/sysutils/linux-megamgr/Makefile
blob: 0f5e58c2055c15482888c7e751d4ca63f4022e2b (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
# Created by: Patrick M. Hausen (pmh@hausen.com)
#
# $FreeBSD$
#

PORTNAME=		linux-megamgr
PORTVERSION=		5.20
CATEGORIES=		sysutils linux
MASTER_SITES=		http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/
DISTNAME=		ut_linux_mgr_5.20

MAINTAINER=		ports@FreeBSD.org
COMMENT=		LSI MegaRAID controller management utility

BROKEN=			Does not fetch

NO_WRKSUBDIR=		yes
USE_ZIP=		yes
RESTRICTED=		Redistribution seems to be prohibited
ONLY_FOR_ARCHS=		i386 amd64
USE_LINUX=		yes
SUB_FILES=		megamgr.sh
USE_DOS2UNIX=		ut_linux_mgr_5.20.txt

do-build:
	${CHMOD} 755 ${WRKSRC}/megamgr.bin
	${BRANDELF} -t Linux ${WRKSRC}/megamgr.bin
	${REINPLACE_CMD} -E -e 's,[[:blank:]]+$$,,' ${WRKSRC}/ut_linux_mgr_5.20.txt

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/megamgr.sh ${PREFIX}/sbin/megamgr
	${INSTALL_PROGRAM} ${WRKSRC}/megamgr.bin ${PREFIX}/libexec

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/${DISTNAME}.txt ${DOCSDIR}/readme.txt
.endif

pre-fetch:
	#
	# You may need to accept LSI's End-User License Agreement
	# before downloading. If the automatic fetching fails,
	# please, paste the following URL into your browser:
	#
	#	${MASTER_SITES}${_DISTFILES}
	#
	# and save the downloaded file into ${DISTDIR}/
	#

.include <bsd.port.mk>