>Number:         173189
>Category:       misc
>Synopsis:       Update megacli to 8.05.06 (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 29 10:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Steven Hartland
>Release:        8.3-RELEASE
>Organization:
Multiplay
>Environment:
FreeBSD dev 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #22: Mon Sep 17 17:18:32 UTC 
2012     root@dev:/usr/obj/usr/src/sys/MULTIPLAY  amd64
>Description:
Update megacli port to 8.05.06
>How-To-Repeat:
N/A
>Fix:
Apply the attached patch and rebuild distinfo.

Patch attached with submission follows:

--- Makefile.orig       2012-10-29 10:26:51.815241346 +0000
+++ Makefile    2012-10-29 10:38:05.575457405 +0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=      megacli
-PORTVERSION=   8.02.16
+PORTVERSION=   8.05.06
 CATEGORIES=    sysutils
 MASTER_SITES=  http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/ \
                CRITICAL
@@ -28,13 +28,20 @@
 PLIST_FILES=   sbin/MegaCli
 
 pre-fetch:
-       @${FETCH_BINARY} -o /dev/null 
http://www.lsi.com/magic.axd?x=e&file=http%3A//www.lsi.com/downloads/Public/MegaRAID%2520Common%2520Files/8.02.16_MegaCLI.zip
+       @${FETCH_BINARY} -o /dev/null 
http://www.lsi.com/magic.axd?x=e&file=http%3A//www.lsi.com/downloads/Public/MegaRAID%2520Common%2520Files/${PORT_VERSION}_MegaCLI.zip
 
 .include <bsd.port.pre.mk>
+post-extract:
+.if ${ARCH} == "i386"
+       @cd ${WRKSRC}/MegaCli_FreeBSD && ${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} 
MegaCli.zip
+.elif ${ARCH} == "amd64"
+       @cd ${WRKSRC}/MegaCli_FreeBSD && ${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} 
MegaCli64.zip
+.endif
+
 do-install:
 .if ${ARCH} == "i386"
-               ${INSTALL_PROGRAM} ${WRKSRC}/FREEBSD/MegaCli 
${PREFIX}/sbin/MegaCli
+               ${INSTALL_PROGRAM} ${WRKSRC}/MegaCli_FreeBSD/MegaCli 
${PREFIX}/sbin/MegaCli
 .elif ${ARCH} == "amd64"
-               ${INSTALL_PROGRAM} ${WRKSRC}/FREEBSD/MegaCli64 
${PREFIX}/sbin/MegaCli
+               ${INSTALL_PROGRAM} ${WRKSRC}/MegaCli_FreeBSD/MegaCli64 
${PREFIX}/sbin/MegaCli
 .endif
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to