aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2012-04-22 10:25:01 +0800
committermi <mi@FreeBSD.org>2012-04-22 10:25:01 +0800
commit7337c69b7cde62dd6d950c6f423250fdbefa8f0e (patch)
tree8d7b0993cd1ba53cbf1dd46201ee18e1f05429d8
parent079a29cea523575dc8e3cb54513ba134d00ac0e8 (diff)
downloadfreebsd-ports-gnome-7337c69b7cde62dd6d950c6f423250fdbefa8f0e.tar.gz
freebsd-ports-gnome-7337c69b7cde62dd6d950c6f423250fdbefa8f0e.tar.zst
freebsd-ports-gnome-7337c69b7cde62dd6d950c6f423250fdbefa8f0e.zip
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.
-rw-r--r--sysutils/linux-megamgr/Makefile19
-rw-r--r--sysutils/linux-megamgr/pkg-message8
2 files changed, 16 insertions, 11 deletions
diff --git a/sysutils/linux-megamgr/Makefile b/sysutils/linux-megamgr/Makefile
index 8ec0811ddf14..1566b4d7dfc8 100644
--- a/sysutils/linux-megamgr/Makefile
+++ b/sysutils/linux-megamgr/Makefile
@@ -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>
diff --git a/sysutils/linux-megamgr/pkg-message b/sysutils/linux-megamgr/pkg-message
deleted file mode 100644
index 67c8180025ed..000000000000
--- a/sysutils/linux-megamgr/pkg-message
+++ /dev/null
@@ -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
-
-===================================================================