1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Sometimes the LSI-server redirects to a EULA acceptance page, which

breaks the download. Provide download instructions in pre-fetch.

Also make buildable by non-root and clean up EOLs in the readme file.
This commit is contained in:
Mikhail Teterin 2012-04-22 02:25:01 +00:00
parent 64d2fcbb2f
commit b3dff3f74b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295234
2 changed files with 16 additions and 11 deletions

View File

@ -16,13 +16,16 @@ COMMENT= LSI MegaRAID controller management utility
NO_WRKSUBDIR= yes
USE_ZIP= yes
RESTRICTED= Redistribution prohibited, see: http://www.lsi.com/cm/License.do
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:
@${BRANDELF} -t Linux ${WRKSRC}/megamgr.bin
${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
@ -33,7 +36,6 @@ post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${DISTNAME}.txt ${DOCSDIR}/readme.txt
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
@ -41,4 +43,15 @@ post-install:
IGNORE= needs at least FreeBSD 6.1 and amr_linux.ko
.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.post.mk>

View File

@ -1,8 +0,0 @@
===================================================================
This port installed a commercial software product with a restricted
license. Please review the license terms at this URL:
http://www.lsi.com/cm/License.do
===================================================================