Bug 184365 - [UPDATE] sysutils/megacli: update to 8.07.07
Summary: [UPDATE] sysutils/megacli: update to 8.07.07
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 01:20 UTC by takefu
Modified: 2013-11-29 17:40 UTC (History)
1 user (show)

See Also:


Attachments
megacli-8.07.07.patch (2.44 KB, patch)
2013-11-29 01:20 UTC, takefu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description takefu 2013-11-29 01:20:00 UTC
- Update to 8.07.07
fix StageDir

Port maintainer (samflanker@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_11 (mode: update, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-29 01:20:07 UTC
Maintainer of sysutils/megacli,

Please note that PR ports/184365 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184365

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-29 01:20:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Vladimir Laskov 2013-11-29 02:10:30 UTC
patch is approved
thanks

On Fri, Nov 29, 2013 at 5:20 AM, Edwin Groothuis <edwin@freebsd.org> wrote:
> Maintainer of sysutils/megacli,
>
> Please note that PR ports/184365 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184365
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-11-29 13:03:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-11-29 17:31:34 UTC
Author: sunpoet
Date: Fri Nov 29 17:31:26 2013
New Revision: 335205
URL: http://svnweb.freebsd.org/changeset/ports/335205

Log:
  - Update to 8.07.07
  - Support STAGEDIR
  - While I'm here:
    - Hack MASTER_SITES to remove unnecessary pre-fetch:
    - Add MEGACLI_ARCH to simplify ARCH manipulation
  
  PR:		ports/184365
  Submitted by:	Takefu <takefu@airport.fm>
  Approved by:	Venom <samflanker@gmail.com> (maintainer)

Modified:
  head/sysutils/megacli/Makefile   (contents, props changed)
  head/sysutils/megacli/distinfo   (contents, props changed)

Modified: head/sysutils/megacli/Makefile
==============================================================================
--- head/sysutils/megacli/Makefile	Fri Nov 29 17:30:23 2013	(r335204)
+++ head/sysutils/megacli/Makefile	Fri Nov 29 17:31:26 2013	(r335205)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	megacli
-PORTVERSION=	8.05.06
+PORTVERSION=	8.07.07
 CATEGORIES=	sysutils
-MASTER_SITES=	http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/ \
-		CRITICAL
+MASTER_SITES=	http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/${DISTNAME}${EXTRACT_SUFX}?source=1&
 DISTNAME=	${PORTVERSION}_MegaCLI
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	samflanker@gmail.com
 COMMENT=	SAS MegaRAID FreeBSD MegaCLI
@@ -17,28 +17,18 @@ FETCH_BEFORE_ARGS=	-o ${DISTDIR}/${DISTF
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-USE_ZIP=	yes
 NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
 
 PLIST_FILES=	sbin/MegaCli
 
-NO_STAGE=	yes
-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/${PORT_VERSION}_MegaCLI.zip
+MEGACLI_ARCH=	MegaCli${ARCH:S/i386//:S/amd64/64/}
 
-.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
+	@${MV} ${WRKSRC}/freebsd/MegaCLI.zip ${WRKSRC}/freebsd/MegaCli.zip
+	@${TAR} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/freebsd/${MEGACLI_ARCH}.zip -C${WRKSRC}/freebsd
 
 do-install:
-.if ${ARCH} == "i386"
-		${INSTALL_PROGRAM} ${WRKSRC}/MegaCli_FreeBSD/MegaCli ${PREFIX}/sbin/MegaCli
-.elif ${ARCH} == "amd64"
-		${INSTALL_PROGRAM} ${WRKSRC}/MegaCli_FreeBSD/MegaCli64 ${PREFIX}/sbin/MegaCli
-.endif
-.include <bsd.port.post.mk>
+	${INSTALL_SCRIPT} ${WRKSRC}/freebsd/${MEGACLI_ARCH} ${STAGEDIR}${PREFIX}/sbin/MegaCli
+
+.include <bsd.port.mk>

Modified: head/sysutils/megacli/distinfo
==============================================================================
--- head/sysutils/megacli/distinfo	Fri Nov 29 17:30:23 2013	(r335204)
+++ head/sysutils/megacli/distinfo	Fri Nov 29 17:31:26 2013	(r335205)
@@ -1,2 +1,2 @@
-SHA256 (8.05.06_MegaCLI.zip) = 7b310559b5e3a07cb02da6280e98ad4a95af258153ad0487db8c6187713e0f45
-SIZE (8.05.06_MegaCLI.zip) = 18874438
+SHA256 (8.07.07_MegaCLI.zip) = 52ba4e60eb6ff0c76dd14b1ffc32a9f198dd0b88ef8cf61575cfd35a04dc5f86
+SIZE (8.07.07_MegaCLI.zip) = 12391645
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-11-29 17:31:38 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!