Date: Tue, 5 Sep 2006 21:48:56 +0200 (CEST) From: "Patrick M. Hausen" <hausen@punkt.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/102917: New port: sysutils/linux-megamgr Message-ID: <200609051948.k85Jmuab012882@datatomb.karlsruhe.punkt.de> Resent-Message-ID: <200609052000.k85K0d6u094297@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102917 >Category: ports >Synopsis: New port: sysutils/linux-megamgr >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 05 20:00:38 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Patrick M. Hausen >Release: FreeBSD 6.1-STABLE i386 >Organization: punkt.de GmbH >Environment: System: FreeBSD datatomb.karlsruhe.punkt.de 6.1-STABLE FreeBSD 6.1-STABLE #2: Tue Sep 5 13:20:53 CEST 2006 root@datatomb.karlsruhe.punkt.de:/usr/obj/usr/src/sys/GENERIC i386 Intel SSR212CC storage enclosure or any other system with a RAID controller supported by amr(4) >Description: I created a port for the Linux console based mgmt utility for controllers supported by amr(4). FreeBSD 6.1 and later, because amr_linux.ko is needed. >How-To-Repeat: Install, have an appropriate amount of fun ;-) >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # linux-megamgr # linux-megamgr/files # linux-megamgr/files/megamgr.sh.in # linux-megamgr/Makefile # linux-megamgr/distinfo # linux-megamgr/pkg-descr # linux-megamgr/pkg-message # linux-megamgr/pkg-plist # echo c - linux-megamgr mkdir -p linux-megamgr > /dev/null 2>&1 echo c - linux-megamgr/files mkdir -p linux-megamgr/files > /dev/null 2>&1 echo x - linux-megamgr/files/megamgr.sh.in sed 's/^X//' >linux-megamgr/files/megamgr.sh.in << 'END-of-linux-megamgr/files/megamgr.sh.in' X#!/bin/sh X X# check for root user X# Xif [ `id -u` -ne 0 ] Xthen X echo You must be root to run `basename $0`. X exit 1 Xfi X X# check for active amr_linux.ko X# Xif ! kldstat -q -m amr_linux Xthen X if kldload amr_linux X then X echo 'amr_linux module loaded.' X else X echo 'amr_linux module failed to load.' X exit 1 X fi Xfi X Xexec %%PREFIX%%/libexec/megamgr.bin END-of-linux-megamgr/files/megamgr.sh.in echo x - linux-megamgr/Makefile sed 's/^X//' >linux-megamgr/Makefile << 'END-of-linux-megamgr/Makefile' X# Ports collection makefile for: linux-megamgr X# Date created: Tue, Sep 5th, 2006 X# Whom: Patrick M. Hausen (pmh@hausen.com) X# X# $FreeBSD$ X# X XPORTNAME= linux-megamgr XPORTVERSION= 5.20 XCATEGORIES= sysutils linux XMASTER_SITES= http://www.lsi.com/files/support/rsa/utilities/megamgr/ XDISTNAME= ut_linux_mgr_5.20 X XMAINTAINER= pmh@hausen.com XCOMMENT= LSI MegaRAID controller management utility X XNO_WRKSUBDIR= yes XUSE_ZIP= yes XRESTRICTED= Redistribution prohibited, see: http://www.lsi.com/cm/License.do XONLY_FOR_ARCHS= i386 XUSE_LINUX= yes XSUB_FILES= megamgr.sh X Xdo-build: X @${BRANDELF} -t Linux ${WRKSRC}/megamgr.bin X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/megamgr.sh ${PREFIX}/sbin/megamgr X ${INSTALL_PROGRAM} ${WRKSRC}/megamgr.bin ${PREFIX}/libexec X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/${DISTNAME}.txt ${DOCSDIR}/readme.txt X.endif X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} < 601000 XIGNORE= needs at least FreeBSD 6.1 and amd_linux.ko X.endif X X.include <bsd.port.post.mk> END-of-linux-megamgr/Makefile echo x - linux-megamgr/distinfo sed 's/^X//' >linux-megamgr/distinfo << 'END-of-linux-megamgr/distinfo' XMD5 (ut_linux_mgr_5.20.zip) = 0417bd48936518322c3634a414b3c8d1 XSHA256 (ut_linux_mgr_5.20.zip) = e7313ed8f59897f132ffed55ed606f19dc72a5d529e6b647cb157a39f0d79123 XSIZE (ut_linux_mgr_5.20.zip) = 253549 END-of-linux-megamgr/distinfo echo x - linux-megamgr/pkg-descr sed 's/^X//' >linux-megamgr/pkg-descr << 'END-of-linux-megamgr/pkg-descr' XLSI Logic MegaRAID Megamgr Release X XThis is the Linux console based management utility for the LSI XMegaRAID family of controllers. X XFreeBSD >= 6.1 supports running this tool by the means of the Xamr_linux.ko kernel module and the /dev/megadev0 device. X XAuthor: LSI Logic Corporation XWWW: http://www.lsi.com/ END-of-linux-megamgr/pkg-descr echo x - linux-megamgr/pkg-message sed 's/^X//' >linux-megamgr/pkg-message << 'END-of-linux-megamgr/pkg-message' X X=================================================================== XThis port installed a commercial software product with a restricted Xlicense. Please review the license terms at this URL: X X http://www.lsi.com/cm/License.do X X=================================================================== END-of-linux-megamgr/pkg-message echo x - linux-megamgr/pkg-plist sed 's/^X//' >linux-megamgr/pkg-plist << 'END-of-linux-megamgr/pkg-plist' Xsbin/megamgr Xlibexec/megamgr.bin X%%PORTDOCS%%%%DOCSDIR%%/readme.txt X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-linux-megamgr/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609051948.k85Jmuab012882>