Permalink
Browse files

Add Adaptec Storage Manager (ASM).

  • Loading branch information...
1 parent 888a01c commit d1fd34065d44f8f32350c960c254ba03a926b5fc Sune Kloppenborg Jeppesen committed Sep 26, 2012
View
@@ -0,0 +1,10 @@
+AUX StorAgnt.sh 379 RMD160 f21274e0a2ad2935e1d3e0b25f9fb3112c30d685 SHA1 ff8e40135d347dfb5f4a5f6926238562f4e59cc2 SHA256 7cc8ce53e06713a1514b3db38039e037022d7e9be06e235e9eefa63ae22621dc
+AUX StorMan.sh 354 RMD160 4aa41a04f102b89f1923bd601a05f8854a52a7fd SHA1 0f02bd99a366ff08da2469f3b4b5d0ca5ecd318c SHA256 09f60e8ac951964c7b6f2757161371e79985572fbd4430a9ef7c22905c25d452
+AUX asm-initd 778 RMD160 35ec25d24749a621610afa2283ee412dc23b7f25 SHA1 4fc335e1b2a30a4e739a28792c8a45106dece13d SHA256 4d7cef6a683c9cda0dfd253653cd1db8f59d4141c72af98c2a401ba74211c268
+DIST asm_linux_x64_v5_20_17414.rpm 47596537 RMD160 d2f9b0eef13f890e046d4898ca66d64569bbc621 SHA1 74111b695cdacf42fe243f49b561ad2fdd3ea540 SHA256 a57012ea8bcbd99a751e0e7be54fc891e3ba154d97a3a54ed9c2b5fa4236ecf7
+DIST asm_linux_x64_v6_50_18579.tgz 59224440 RMD160 ba7864124caf6529c8982360ab132b95bf891e80 SHA1 dcb27613069f32bac5228bb7e9b58a18c8d8840d SHA256 3df3f8e924952b54a3fecd7a9128e377117301c86655f7e1413539c3b886d051
+DIST asm_linux_x86_v5_20_17414.rpm 54859558 RMD160 67a21a1154dde7341630f0aeca1327a91d7eb828 SHA1 1121fcef25219cdffe625ac463d77aae6756aefb SHA256 1d0dd5b1b90d22f710e688f3f81ee799967ed5b694b89410b4264c29214b528b
+DIST asm_linux_x86_v6_50_18579.tgz 65299091 RMD160 ea70c1a982f51cbfb56b900c87e84e5a12c11189 SHA1 a52c7da963eac1f47217fa13f188254f437dce90 SHA256 8f822648afa7f2c711367ffad2a10984fdd780a553144c6fa005748b85a04f39
+EBUILD asm-5.20.17414.ebuild 1836 RMD160 3a48131c0dea6695cfc48fd4791586985767ee0f SHA1 6f15c2052db4ccfb9f3e1d2c2acea7720eb81734 SHA256 67906259c01be2faa8f014b732985209bfcfc7552336f7f44a01263d7730d209
+EBUILD asm-6.50.18579.ebuild 1836 RMD160 52191879d1ba084b1c9911e70607a0400a5a86ca SHA1 2bff83f4d4ae22a584d55101eb2757b675e2e5ba SHA256 d6391aa8ccb3e81bc988d7053827a10c74fed5c4fe48090e106a2724179d9c25
+MISC UcliEvt.log 37 RMD160 d54a718966b702732bcbe329c25879558faa6ba6 SHA1 5a82cb5b86967b0d536f1abe23b9b472444fac66 SHA256 b715009cbe6160ec80c57b70c77dafc5f799d66b9d4d9f5bc4c581aad89c5f02
@@ -0,0 +1,2 @@
+0
+Fri Feb 25 22:28:16 2011 arcconf
@@ -0,0 +1,80 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit multilib rpm versionator
+
+MY_PV="$(replace_all_version_separators _ ${PV})"
+
+DESCRIPTION="Adaptec Storage Manager (ASM)"
+HOMEPAGE="http://www.adaptec.com/en-US/downloads/"
+SRC_URI="amd64? ( http://download.adaptec.com/raid/storage_manager/${PN}_linux_x64_v${MY_PV}.rpm )
+ x86? ( http://download.adaptec.com/raid/storage_manager/${PN}_linux_x86_v${MY_PV}.rpm )"
+LICENSE="Adaptec"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="X"
+RESTRICT="strip"
+
+RDEPEND="virtual/libstdc++:3.3
+ X? ( || ( dev-java/sun-jdk:1.6[X] dev-java/sun-jdk:1.5[X] ) )"
+
+S="${WORKDIR}/usr/StorMan"
+
+src_unpack() {
+ rpm_src_unpack
+}
+
+src_configure() {
+ # binpkg - nothing to do here
+ :;
+}
+
+src_compile() {
+ # binpkg - nothing to do here
+ :;
+}
+
+src_install() {
+ cd "${S}" || die
+
+ if use X ; then
+ insinto /opt/StorMan
+ doins index.html *.jar *.pps *.so || die
+ # StorMan needs the help inside of /opt/StorMan
+ doins -r help || die
+
+ into /opt
+ dobin "${FILESDIR}"/Stor{Agnt,Man}.sh || die
+ sed "s:%LIBDIR%:/usr/$(get_libdir):" \
+ -i "${D}"/opt/bin/Stor{Agnt,Man}.sh \
+ || die
+
+ sed 's:\(\.log=\):\1/var/log:g' \
+ -i "${D}"/opt/StorMan/RaidLog.pps \
+ || die
+ fi
+
+ into /opt/StorMan
+ dobin {arc,hr}conf || die
+ dosym ../StorMan/bin/arcconf /opt/bin/arcconf || die
+ dosym ../StorMan/bin/hrconf /opt/bin/hrconf || die
+
+ newinitd "${FILESDIR}/${PN}-initd" StorAgnt || die
+ sed "s:%LIBDIR%:/usr/$(get_libdir):" \
+ -i "${D}"/etc/init.d/StorAgnt || die
+
+ dodoc README.TXT || die
+
+}
+
+pkg_postinst() {
+ elog "An init script has been installed for your conveniance"
+ elog "The Adapatec Storage Agent can be start with /etc/init.d/StorAgnt start"
+
+ if use X ; then
+ elog "You can start the GUI from /opt/bin/StorMan.sh"
+ fi
+}
@@ -0,0 +1,80 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit multilib rpm versionator
+
+MY_PV="$(replace_all_version_separators _ ${PV})"
+
+DESCRIPTION="Adaptec Storage Manager (ASM)"
+HOMEPAGE="http://www.adaptec.com/en-US/downloads/"
+SRC_URI="amd64? ( http://download.adaptec.com/raid/storage_manager/${PN}_linux_x64_v${MY_PV}.tgz )
+ x86? ( http://download.adaptec.com/raid/storage_manager/${PN}_linux_x86_v${MY_PV}.tgz )"
+LICENSE="Adaptec"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="X"
+RESTRICT="strip"
+
+RDEPEND="virtual/libstdc++:3.3
+ X? ( || ( dev-java/sun-jdk:1.6[X] dev-java/sun-jdk:1.5[X] ) )"
+
+S="${WORKDIR}/usr/StorMan"
+
+src_unpack() {
+ rpm_src_unpack
+}
+
+src_configure() {
+ # binpkg - nothing to do here
+ :;
+}
+
+src_compile() {
+ # binpkg - nothing to do here
+ :;
+}
+
+src_install() {
+ cd "${S}" || die
+
+ if use X ; then
+ insinto /opt/StorMan
+ doins index.html *.jar *.pps *.so || die
+ # StorMan needs the help inside of /opt/StorMan
+ doins -r help || die
+
+ into /opt
+ dobin "${FILESDIR}"/Stor{Agnt,Man}.sh || die
+ sed "s:%LIBDIR%:/usr/$(get_libdir):" \
+ -i "${D}"/opt/bin/Stor{Agnt,Man}.sh \
+ || die
+
+ sed 's:\(\.log=\):\1/var/log:g' \
+ -i "${D}"/opt/StorMan/RaidLog.pps \
+ || die
+ fi
+
+ into /opt/StorMan
+ dobin {arc,hr}conf || die
+ dosym ../StorMan/bin/arcconf /opt/bin/arcconf || die
+ dosym ../StorMan/bin/hrconf /opt/bin/hrconf || die
+
+ newinitd "${FILESDIR}/${PN}-initd" StorAgnt || die
+ sed "s:%LIBDIR%:/usr/$(get_libdir):" \
+ -i "${D}"/etc/init.d/StorAgnt || die
+
+ dodoc README.TXT || die
+
+}
+
+pkg_postinst() {
+ elog "An init script has been installed for your conveniance"
+ elog "The Adapatec Storage Agent can be start with /etc/init.d/StorAgnt start"
+
+ if use X ; then
+ elog "You can start the GUI from /opt/bin/StorMan.sh"
+ fi
+}
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Launcher script for Storage Manager daemon
+
+# Simplified for Gentoo usage from original Adaptec's StorAgnt.sh script
+
+
+INSTDIR=/opt/StorMan
+
+LD_LIBRARY_PATH=$INSTDIR:$LD_LIBRARY_PATH
+LD_PRELOAD=%LIBDIR%/libstdc++.so.5
+export LD_LIBRARY_PATH LD_PRELOAD
+
+cd $INSTDIR
+
+java -Djava.compiler=NONE -cp $INSTDIR/RaidMan.jar com.ibm.sysmgt.raidmgr.agent.ManagementAgent $*
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Launcher script for Adaptec Storage Manager GUI
+
+# Simplified for Gentoo usage from original Adaptec's StorMan.sh script
+
+
+INSTDIR=/opt/StorMan
+
+LD_LIBRARY_PATH=$INSTDIR:$LD_LIBRARY_PATH
+LD_PRELOAD=%LIBDIR%/libstdc++.so.5
+export LD_LIBRARY_PATH LD_PRELOAD
+
+cd $INSTDIR
+
+java -cp $INSTDIR/RaidMan.jar com.ibm.sysmgt.raidmgr.mgtGUI.Launch $*
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: $
+
+pidfile=/var/run/storagnt.pid
+description="Adaptec Storage Agent"
+name="StorAgnt"
+instdir=/opt/StorMan
+
+depend() {
+ after net
+}
+
+start() {
+ ebegin "Starting Adaptec Storage Agent"
+ cd /opt/StorMan || return 1
+ start-stop-daemon --quiet --start --make-pidfile \
+ --pidfile "${pidfile}" --background --exec java \
+ -- -Djava.compiler=NONE -cp /opt/StorMan/RaidMan.jar \
+ com.ibm.sysmgt.raidmgr.agent.ManagementAgent $*
+ eend $? "Failed to start Adaptec Storage Agent"
+}
+
+stop() {
+ ebegin "Stopping Adaptec Storage Agent"
+ start-stop-daemon --stop --quiet --pidfile "${pidfile}"
+ eend $? "Failed to stop Adaptec Storage Agent"
+}

0 comments on commit d1fd340

Please sign in to comment.