From root@datatomb.karlsruhe.punkt.de  Tue Sep  5 19:51:34 2006
Return-Path: <root@datatomb.karlsruhe.punkt.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3211416A554
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Sep 2006 19:51:34 +0000 (UTC)
	(envelope-from root@datatomb.karlsruhe.punkt.de)
Received: from datatomb.karlsruhe.punkt.de (datatomb.karlsruhe.punkt.de [217.29.47.123])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8E2BB43F3C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Sep 2006 19:49:18 +0000 (GMT)
	(envelope-from root@datatomb.karlsruhe.punkt.de)
Received: from datatomb.karlsruhe.punkt.de (localhost [127.0.0.1])
	by datatomb.karlsruhe.punkt.de (8.13.8/8.13.8) with ESMTP id k85Jmu7u012883
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 Sep 2006 21:48:56 +0200 (CEST)
	(envelope-from root@datatomb.karlsruhe.punkt.de)
Received: (from root@localhost)
	by datatomb.karlsruhe.punkt.de (8.13.8/8.13.8/Submit) id k85Jmuab012882;
	Tue, 5 Sep 2006 21:48:56 +0200 (CEST)
	(envelope-from root)
Message-Id: <200609051948.k85Jmuab012882@datatomb.karlsruhe.punkt.de>
Date: Tue, 5 Sep 2006 21:48:56 +0200 (CEST)
From: "Patrick M. Hausen" <hausen@punkt.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: sysutils/linux-megamgr
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102917
>Category:       ports
>Synopsis:       New port: sysutils/linux-megamgr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bsam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 05 20:00:38 GMT 2006
>Closed-Date:    Thu Sep 07 06:19:15 GMT 2006
>Last-Modified:  Thu Sep 07 06:19:15 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->bsam 
Responsible-Changed-By: bsam 
Responsible-Changed-When: Wed Sep 6 20:20:32 UTC 2006 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102917 
State-Changed-From-To: open->closed 
State-Changed-By: bsam 
State-Changed-When: Thu Sep 7 06:18:57 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102917 
>Unformatted:
