Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261634 - [new ebuild] sys-block/asm - Adaptec Storage Manager (ASM)
Summary: [new ebuild] sys-block/asm - Adaptec Storage Manager (ASM)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.adaptec.com/en-US/downloads/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-08 02:01 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2010-12-14 16:55 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
asm-5.20.17414.ebuild (asm-5.20.17414.ebuild,1.53 KB, text/plain)
2009-03-08 02:04 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
StorAgnt.sh (StorAgnt.sh,602 bytes, text/plain)
2009-03-08 02:06 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
StorMan.sh (StorMan.sh,578 bytes, text/plain)
2009-03-08 02:06 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
asm-6.10.18359 (asm-6.10.18359.ebuild,1.83 KB, text/plain)
2009-05-04 12:28 UTC, Jerome Venturi
Details
init script (asm-initd,1.60 KB, text/plain)
2009-05-04 12:30 UTC, Jerome Venturi
Details
Configuration file for init script (StorAgnt,121 bytes, text/plain)
2009-05-04 12:31 UTC, Jerome Venturi
Details
Updated StorMan.sh (StorMan.sh,683 bytes, text/plain)
2009-05-04 12:36 UTC, Jerome Venturi
Details
Ebuild for version 5.30.17509 (3405 controller) (asm-5.30.17509.ebuild,1.91 KB, text/plain)
2009-10-15 09:33 UTC, Konstantin Münning
Details
Updated start script for java GUI (StorMan.sh,228 bytes, text/plain)
2009-10-15 10:01 UTC, Konstantin Münning
Details
asm-5.20.17414.ebuild (asm-5.20.17414.ebuild,1.79 KB, text/plain)
2010-07-18 07:37 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
StorAgnt.sh (StorAgnt.sh,379 bytes, text/plain)
2010-07-18 07:38 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
StorMan.sh (StorMan.sh,354 bytes, text/plain)
2010-07-18 07:39 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
asm-initd (asm-initd,778 bytes, text/plain)
2010-07-18 07:39 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 02:01:45 UTC
Hi,

I have an Adaptec RAID 4805SAS for which I use this tool to manage the controller.
There are different versions for different controllers available on Adaptec's homepage but as I only have one controller, I did not test the ebuild with any other version of their ASM sorftware.

Reproducible: Always

Steps to Reproduce:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 02:04:41 UTC
Created attachment 184300 [details]
asm-5.20.17414.ebuild

This ebuild is fetch-restricted as Adaptec requires users to accept a license agreement when downloading their software.

One problem with this sotfware is that it writes log files into the direcory it got installed into. I tried to make it write into /var/log but I didn't suceed completely.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 02:06:11 UTC
Created attachment 184301 [details]
StorAgnt.sh

This is the start script for the Store Agent. I wrote it so I don't have to rely on the one from Adaptec which is quite ugly.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 02:06:54 UTC
Created attachment 184302 [details]
StorMan.sh

This is the start script for the Store Manager. I wrote it so I don't have to
rely on the one from Adaptec which is quite ugly.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 02:09:28 UTC
Reassigning to maintainer-wanted.
Comment 5 Gary Richards 2009-03-26 14:12:06 UTC
FWIW, this doesn't seem to work on an amd64 box. It installs fine, but if I try to run arcconf or hrconf, I get:

# /opt/bin/arcconf
/opt/bin/arcconf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I'm using -X in my use flags.
Comment 6 Gary Richards 2009-03-26 14:30:50 UTC
Hrm, I fixed it doing this:
Create /etc/env.d/99asm containing:
LDPATH=/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.6

then do env-update

I would assume there's a correct way to do this within an ebuild somehow?!
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-29 21:21:32 UTC
Which package do you have installed? =sys-devel/gcc-3.3* or sys-libs/libstdc++-v3?
Comment 8 Gary Richards 2009-03-30 07:53:36 UTC
The virtual/libstdc++:3.3 dependency seemed to pull in sys-devel/gcc-3.3.6-r1

Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-30 18:00:30 UTC
virtual/libstdc++:3.3 can pull both packages:

RDEPEND="|| ( =sys-libs/libstdc++-v3-bin-3.3* =sys-libs/libstdc++-v3-3.3* =sys-devel/gcc-3.3* )"

and I only tested my ebuild with =sys-libs/libstdc++-v3-bin-3.3*

Unfortunately I don't have access to that machine currently. I will look into this problem as soon as I get access to that machine back which might roughly take a month.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-30 18:01:42 UTC
Sorry wrong paste. I tested the ebuild only with =sys-libs/libstdc++-v3-3.3* (not the -bin package)
Comment 11 Jerome Venturi 2009-05-04 12:28:18 UTC
Created attachment 190300 [details]
asm-6.10.18359
Comment 12 Jerome Venturi 2009-05-04 12:29:12 UTC
Comment on attachment 190300 [details]
asm-6.10.18359

Hi,

Updated ebuild for the latest version (6.10.18359) which fix the dependency for =sys-libs/libstdc++-v3-bin-3.3* or =sys-libs/libstdc++-v3-3.3* or
=sys-devel/gcc-3.3*. Adaptec provide is own libstdc++.so.5. This version also fix the log problem too. This ebuild is based on the asm-5.20.17414.ebuild. I wrote an init script (remove also StorAgnt.sh).
Comment 13 Jerome Venturi 2009-05-04 12:30:20 UTC
Created attachment 190302 [details]
init script
Comment 14 Jerome Venturi 2009-05-04 12:31:36 UTC
Created attachment 190303 [details]
Configuration file for init script
Comment 15 Jerome Venturi 2009-05-04 12:36:50 UTC
Created attachment 190305 [details]
Updated StorMan.sh
Comment 16 Harald van Dijk (RETIRED) gentoo-dev 2009-07-18 13:08:58 UTC
I don't have the hardware for this, so just a few comments on the ebuild from me, because it came up on the forum:

> RDEPEND="( dev-java/sun-jdk:1.5[X=] ) || ( dev-java/sun-jdk:1.6[X=] )"

This would mean "we need sun-jdk:1.5, and also either sun-jdk:1.6", which is a bit strange. This would be much clearer if it were written as

# JDK 1.5 and 1.6 are both required
RDEPEND="dev-java/sun-jdk:1.5[X=] dev-java/sun-jdk:1.6[X=]"

but you probably want

# either JDK 1.5 or 1.6 is required
RDEPEND="|| ( dev-java/sun-jdk:1.6[X=] dev-java/sun-jdk:1.5[X=] )"


> einfo "${PN}_linux_x86_v${MY_PV}.rpm"

This should use ${MYARCH}.

> src_install() {
> 	cd "${S}" || die

src_install already starts in ${S}; you don't need cd here.
Comment 17 Johan Bergström 2009-07-20 12:11:08 UTC
I think java should be a use flag. Storman basically polls the output from "arcconf" which is a application that outputs in human readable and xml format. I use this application on most of my servers to poll output such as disk failures and so on. If java is disabled we could just copy this application (still deps on libstdc) to bin and get on with business.
Comment 18 Konstantin Münning 2009-10-07 09:24:00 UTC
IMHO instead of app-admin/ this ebuild should be in sys-block/ where other comparable ebuilds are located.
Comment 19 Konstantin Münning 2009-10-15 09:33:14 UTC
Created attachment 207196 [details]
Ebuild for version 5.30.17509 (3405 controller)

My ebuild for current version of ASM for 3405 controller based on asm-6.10.18359.ebuild but with fixed dependency (sys-libs/libstdc++-v3 was missing).
Comment 20 Konstantin Münning 2009-10-15 10:01:39 UTC
Created attachment 207200 [details]
Updated start script for java GUI

The other posted script does not work for me and on the two systems I had to test this simple script works fine. Has to be placed in the files subdirectory, replaces the other file.
Comment 21 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-18 07:37:59 UTC
Created attachment 239213 [details]
asm-5.20.17414.ebuild

Updated ebuild
Comment 22 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-18 07:38:30 UTC
Created attachment 239215 [details]
StorAgnt.sh
Comment 23 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-18 07:39:08 UTC
Created attachment 239217 [details]
StorMan.sh
Comment 24 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-18 07:39:24 UTC
Created attachment 239219 [details]
asm-initd
Comment 25 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-07-18 07:41:28 UTC
Okay, here's my latest ebuild plus additional files. Please give it some kind of review and report any odds you find as I'm planning to include this ebuild in portage.
Some wide testing would be nice but I'm afraid this kind of hardware cannot be found in many Gentoo-systems ;)
Comment 26 Michael Crawford (ali3nx) 2010-12-08 17:48:04 UTC
I have a 4U rackmount with adaptec 3405 controller running gentoo in full production mode and I could certainly use this ebuild.

bump for great justice and a portage commit or at least an overlay would be superb :)
Comment 27 Michael Crawford (ali3nx) 2010-12-08 17:53:30 UTC
Also wanted to mention there is a major version upgrade available at least for my raid controller.

http://www.adaptec.com/en-us/speed/raid/storage_manager/asm_linux_x64_v6_50_18579_tgz.htm

http://www.adaptec.com/en-us/speed/raid/storage_manager/asm_linux_x86_v6_50_18579_tgz.htm