diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-11-30 01:31:26 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-11-30 01:31:26 +0800 |
commit | ad3f0fad598da2ef957e44ee3f05b3d63f3127d6 (patch) | |
tree | 307468f350d4c9ed996465f92d59668cc0192286 | |
parent | fbdc2459d6e89851cd5dc98df211a339a9516204 (diff) | |
download | freebsd-ports-gnome-ad3f0fad598da2ef957e44ee3f05b3d63f3127d6.tar.gz freebsd-ports-gnome-ad3f0fad598da2ef957e44ee3f05b3d63f3127d6.tar.zst freebsd-ports-gnome-ad3f0fad598da2ef957e44ee3f05b3d63f3127d6.zip |
- 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)
-rw-r--r-- | sysutils/megacli/Makefile | 28 | ||||
-rw-r--r-- | sysutils/megacli/distinfo | 4 |
2 files changed, 11 insertions, 21 deletions
diff --git a/sysutils/megacli/Makefile b/sysutils/megacli/Makefile index 2510250ca467..b17d589af81a 100644 --- a/sysutils/megacli/Makefile +++ b/sysutils/megacli/Makefile @@ -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}/${DISTFILES} 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> diff --git a/sysutils/megacli/distinfo b/sysutils/megacli/distinfo index 2172bb2c40b3..4063865d54a7 100644 --- a/sysutils/megacli/distinfo +++ b/sysutils/megacli/distinfo @@ -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 |