Bug 98803 - [new port] sysutils/amrstat
Summary: [new port] sysutils/amrstat
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bjoern A. Zeeb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-11 12:50 UTC by Bjoern A. Zeeb
Modified: 2006-12-30 15:50 UTC (History)
1 user (show)

See Also:


Attachments
file.shar (6.23 KB, text/plain)
2006-06-11 12:50 UTC, Bjoern A. Zeeb
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern A. Zeeb 2006-06-11 12:50:09 UTC
	new port sysutils/amrstat:

	This port provides an utility for getting information from
	LSI Logic's MegaRAID RAID controllers.

	It also includes a daily periodic script that (optionally)
	also makes use of sysutils/megarc.

Fix: The port source is also available as tarball from
http://sources.zabbadoz.net/freebsd/ports/experimental/ \
	sysutils-amrstat-20060611-01.tar
Comment 1 Erwin Lansing freebsd_committer freebsd_triage 2006-06-11 12:56:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->erwin

I'll take it.
Comment 2 Erwin Lansing freebsd_committer freebsd_triage 2006-06-11 13:42:48 UTC
State Changed
From-To: open->closed

Port added, thanks!
Comment 3 Oleg Gawriloff 2006-12-30 12:24:49 UTC
Supplied binary file in archive runs on 5.4 without problem.
uname -a
FreeBSD albatros.telecom.by 5.4-RELEASE-p13 FreeBSD 5.4-RELEASE-p13 #1: Mon
Jun  5 14:04:54 EEST 2006
root@albatros.telecom.by:/usr/src/sys/i386/compile/ALBATROS  i386

sudo ./amrstat -g
Product                 <MegaRAID SATA 150-6D>
Firmware                713N
BIOS                    G119
SCSI channels           1
Fibre loops             0
Memory size             64 MB
Battery status          not present, charge unknown
Logical volume 0        optimal (372.61 GB, RAID0)
Logical volume 1        optimal (372.61 GB, RAID0)
Logical volume 2        optimal (372.61 GB, RAID0)
Logical volume 3        optimal (372.61 GB, RAID0)
Logical volume 4        optimal (372.61 GB, RAID0)
Logical volume 5        optimal (372.61 GB, RAID0)
Physical drive 0:0      online
Physical drive 0:1      online
Physical drive 0:2      online
Physical drive 0:3      online
Physical drive 0:4      online
Physical drive 0:5      online

But does not compiles:
cc -O -pipe -march=pentiumpro -static -Wall -Werror -I/usr/src/sys/dev/amr
-o amrstat amrstat.c
amrstat.c: In function `describe_drive':
amrstat.c:539: error: structure has no member named `ae_pdrivestate'
amrstat.c:550: error: structure has no member named `ae_pdrivestate'
amrstat.c:556: error: structure has no member named `ae_pdrivestate'
*** Error code 1

Stop in /usr/local/src/amrstat.

Signed, Oleg Gawriloff.
Comment 4 Bjoern A. Zeeb 2006-12-30 15:06:45 UTC
On Sat, 30 Dec 2006, Oleg Gawriloff wrote:

Hi,

> Supplied binary file in archive runs on 5.4 without problem.

depending on which bindary you refer to you might be lucky or not.
I don't know about the current state of amr(4) in RELENG_5 to be
honest and I won't be able to test/verify/... anything.

> uname -a
> FreeBSD albatros.telecom.by 5.4-RELEASE-p13 FreeBSD 5.4-RELEASE-p13 #1: Mon
> Jun  5 14:04:54 EEST 2006
> root@albatros.telecom.by:/usr/src/sys/i386/compile/ALBATROS  i386
>
> sudo ./amrstat -g
> ...
>
> But does not compiles:
> cc -O -pipe -march=pentiumpro -static -Wall -Werror -I/usr/src/sys/dev/amr
> -o amrstat amrstat.c
> amrstat.c: In function `describe_drive':
> amrstat.c:539: error: structure has no member named `ae_pdrivestate'
> amrstat.c:550: error: structure has no member named `ae_pdrivestate'
> amrstat.c:556: error: structure has no member named `ae_pdrivestate'
> *** Error code 1
>
> Stop in /usr/local/src/amrstat.

yes, we know. That's why the port has:

.if ${OSVERSION} < 600105
IGNORE=	does not build on FreeBSD 6.0 or earlier
.endif

Basically noone was interested in backporting amrstat to also compile
on 5.x (and maybe some src/sys/dev/amr changes would still be needed
too).

If you want to backport and can test it you can send patches to
Jung-uk Kim (jkim@) and me (or just a follow up to the PR) and
I'll of course update the port if it looks ok:-)


Greetings
Bjoern

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2006-12-30 15:07:25 UTC
Responsible Changed
From-To: erwin->bz

Change responsible to me so I get follow-ups.