1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/sysutils/linux-megamgr/Makefile
2012-05-23 19:49:29 +00:00

52 lines
1.3 KiB
Makefile

# 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/downloads/Public/MegaRAID%20Common%20Files/
DISTNAME= ut_linux_mgr_5.20
MAINTAINER= ports@FreeBSD.org
COMMENT= LSI MegaRAID controller management utility
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>