aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/linux-megacli2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/linux-megacli2/Makefile')
-rw-r--r--sysutils/linux-megacli2/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/sysutils/linux-megacli2/Makefile b/sysutils/linux-megacli2/Makefile
new file mode 100644
index 000000000000..605658e42ecb
--- /dev/null
+++ b/sysutils/linux-megacli2/Makefile
@@ -0,0 +1,52 @@
+# Ports collection makefile for: linux-megacli
+# Date created: Wed, Nov 29th, 2006
+# Whom: Ruben van Staveren (ruben@verweg.com)
+#
+# $FreeBSD$
+#
+
+PORTNAME= megacli
+PORTVERSION= 1.01.09
+CATEGORIES= sysutils linux
+MASTER_SITES= http://lsi.com/files/support/rsa/MR_SAS_1.0/
+PKGNAMEPREFIX= linux-
+DISTNAME= Linux_MegaCli_${PORTVERSION}
+
+MAINTAINER= ruben@verweg.com
+COMMENT= LSI MegaRAID SAS controller management utility
+
+NO_WRKSUBDIR= yes
+USE_ZIP= yes
+RESTRICTED= Redistribution prohibited, see: http://lsi.com/cm/License.do
+ONLY_FOR_ARCHS= i386 amd64
+USE_LINUX= yes
+SUB_FILES= megacli.sh
+
+# From bsd.linux.rpm.mk
+RPM2CPIO?= ${LOCALBASE}/bin/rpm2cpio
+EXTRACT_DEPENDS+= ${RPM2CPIO}:${PORTSDIR}/archivers/rpm
+
+do-build:
+ @cd ${WRKSRC} && \
+ ${UNZIP_CMD} MegaCliLin.zip && \
+ ${RPM2CPIO} MegaCli-${PORTVERSION}-0.i386.rpm | ${CPIO} -id --quiet
+ @${BRANDELF} -t Linux ${WRKSRC}/usr/sbin/MegaCli
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/megacli.sh ${PREFIX}/sbin/megacli
+ ${INSTALL_PROGRAM} ${WRKSRC}/usr/sbin/MegaCli ${PREFIX}/libexec
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/Read-me.txt ${DOCSDIR}/readme.txt
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 602000
+IGNORE= needs at least FreeBSD 6.2 and mfi_linux.ko
+.endif
+
+.include <bsd.port.post.mk>