aboutsummaryrefslogtreecommitdiff
path: root/sysutils/linux-megamgr/Makefile
blob: a0243958232410f462484653ea084e4c1ec90e6b (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
# Ports collection makefile for:  linux-megamgr
# Date created:			  Tue, Sep 5th, 2006
# Whom:				  Patrick M. Hausen (pmh@hausen.com)
#
# $FreeBSD$
#

PORTNAME=		linux-megamgr
PORTVERSION=		5.20
CATEGORIES=		sysutils linux
MASTER_SITES=		http://www.lsi.com/files/support/rsa/utilities/megamgr/
DISTNAME=		ut_linux_mgr_5.20

MAINTAINER=		pmh@hausen.com
COMMENT=		LSI MegaRAID controller management utility

NO_WRKSUBDIR=		yes
USE_ZIP=		yes
RESTRICTED=		Redistribution prohibited, see: http://www.lsi.com/cm/License.do
ONLY_FOR_ARCHS=		i386
USE_LINUX=		yes
SUB_FILES=		megamgr.sh

do-build:
	@${BRANDELF} -t Linux ${WRKSRC}/megamgr.bin

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
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 601000
IGNORE=			needs at least FreeBSD 6.1 and amd_linux.ko
.endif

.include <bsd.port.post.mk>