From 167060a6adac4582b336968f0373839b5d2e8708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20C=C3=A9cile=20=28Le=5FVert=29?= Date: Wed, 14 Aug 2013 22:59:30 +0200 Subject: [PATCH] Import adaptec-storage-manager-linux-64bit --- .../README.source | 17 ++ .../adaptec-storage-manager-agent.dirs | 3 + .../adaptec-storage-manager-agent.docs | 1 + .../adaptec-storage-manager-agent.init | 109 +++++++++ .../adaptec-storage-manager-agent.install | 1 + .../adaptec-storage-manager-agent.links | 8 + .../adaptec-storage-manager-agent.postinst | 16 ++ .../adaptec-storage-manager-agent.postrm | 14 ++ .../adaptec-storage-manager-common.dirs | 1 + .../adaptec-storage-manager-common.docs | 1 + .../adaptec-storage-manager-common.install | 2 + .../adaptec-storage-manager-gui.dirs | 2 + .../adaptec-storage-manager-gui.docs | 1 + .../adaptec-storage-manager-gui.install | 2 + .../adaptec-storage-manager-gui.postinst | 14 ++ .../adaptec-universal-storage-mib.docs | 1 + ...ptec-universal-storage-snmpd.README.Debian | 28 +++ .../adaptec-universal-storage-snmpd.default | 5 + .../adaptec-universal-storage-snmpd.docs | 1 + .../adaptec-universal-storage-snmpd.init | 110 +++++++++ .../adaptec-universal-storage-snmpd.links | 2 + .../adaptec-storage-manager-agent | 4 + .../arcconf.dirs | 1 + .../arcconf.docs | 1 + .../arcconf.install | 1 + .../changelog | 66 ++++++ .../compat | 1 + .../control | 80 +++++++ .../copyright | 215 ++++++++++++++++++ .../gui-wrapper/adaptec-storage-manager-gui | 11 + .../hrconf.dirs | 1 + .../hrconf.docs | 1 + .../hrconf.install | 1 + .../patches/000-Adaptec_mib_patch.diff | 38 ++++ .../patches/series | 1 + .../adaptec-storage-manager-linux-64bit/rules | 71 ++++++ .../source/format | 1 + 37 files changed, 833 insertions(+) create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/README.source create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.dirs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.init create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.install create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.links create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postinst create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postrm create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.dirs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.install create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.dirs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.install create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.postinst create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-mib.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.README.Debian create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.default create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.init create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.links create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/agent-wrapper/adaptec-storage-manager-agent create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.dirs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.install create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/changelog create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/compat create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/control create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/copyright create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/gui-wrapper/adaptec-storage-manager-gui create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.dirs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.docs create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.install create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/patches/000-Adaptec_mib_patch.diff create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/patches/series create mode 100755 packaging/debian/adaptec-storage-manager-linux-64bit/rules create mode 100644 packaging/debian/adaptec-storage-manager-linux-64bit/source/format diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/README.source b/packaging/debian/adaptec-storage-manager-linux-64bit/README.source new file mode 100644 index 0000000..6e51412 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/README.source @@ -0,0 +1,17 @@ +adaptec-storage-manager-linux-64bit (7.31.18856-1) unstable; urgency=low + + Sources have been repacked from the following upstream archive: + + f9f13c1f9223da6138abc2c8bdadd54a asm_linux_x64_v7_31_18856.tgz + + Contained RPM package has been cleaned and turned into a tarball. + See debian/rules repack target for more informations. + + Upstream licence has been reformated using the following command: + + cat /tmp/1 | sed 's!$!\n!' | \ + sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ + awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ + vim - -c '%!fold -s -w76' -c '%s/^/ /' + + -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:10:02 +0200 diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.dirs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.dirs new file mode 100644 index 0000000..7e9a389 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.dirs @@ -0,0 +1,3 @@ +usr/sbin +var/lib/adaptec-storage-manager-agent +var/log/adaptec-storage-manager-agent diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.init b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.init new file mode 100644 index 0000000..6023856 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.init @@ -0,0 +1,109 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: adaptec-storage-manager-agent +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Adaptec Storage Manager Agent +# Description: Manage and monitor Adaptec RAID HBAs with one main +# storage-manager-gui. +### END INIT INFO + +# Author: Adam Cécile (Le_Vert) + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Adaptec Storage Manager Agent" +NAME=adaptec-storage-manager-agent +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # other if daemon could not be started + PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` + if [ -z "$PID" ]; then + $DAEMON $DAEMON_ARGS & + else + return 1 + fi +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # other if a failure occurred + PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` + if [ ! -z "$PID" ]; then + kill $PID + else + return 1 + fi +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.install b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.install new file mode 100644 index 0000000..973289f --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.install @@ -0,0 +1 @@ +debian/agent-wrapper/adaptec-storage-manager-agent usr/sbin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.links b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.links new file mode 100644 index 0000000..385c1a3 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.links @@ -0,0 +1,8 @@ +var/lib/adaptec-storage-manager-agent/RaidAgnt.pps etc/adaptec-storage-manager-agent.conf +var/lib/adaptec-storage-manager-agent/RaidErr.log var/log/adaptec-storage-manager-agent/RaidErr.log +var/lib/adaptec-storage-manager-agent/RaidErrA.log var/log/adaptec-storage-manager-agent/RaidErrA.log +var/lib/adaptec-storage-manager-agent/RaidEvtA.log var/log/adaptec-storage-manager-agent/RaidEvtA.log +var/lib/adaptec-storage-manager-agent/RaidJob.ser var/log/adaptec-storage-manager-agent/RaidJob.ser +var/lib/adaptec-storage-manager-agent/RaidNLst.ser var/log/adaptec-storage-manager-agent/RaidNLst.ser +var/lib/adaptec-storage-manager-agent/RaidSLst.ser var/log/adaptec-storage-manager-agent/RaidSLst.ser +var/lib/adaptec-storage-manager-agent/RaidSMTP.ser var/log/adaptec-storage-manager-agent/RaidSMTP.ser diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postinst b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postinst new file mode 100644 index 0000000..a3aafab --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +case "$1" in + + configure) + chown root:adm /var/log/adaptec-storage-manager-agent + chmod 750 /var/log/adaptec-storage-manager-agent + # Dirty hack + test -e /bin/sort || ln -s /usr/bin/sort /bin/sort + ;; + +esac + +#DEBHELPER# diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postrm b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postrm new file mode 100644 index 0000000..61d3210 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postrm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + + purge) + # Remove lib dir + rm -rf /var/lib/adaptec-storage-manager-agent + ;; + +esac + +#DEBHELPER# diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.dirs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.dirs new file mode 100644 index 0000000..55ec361 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.dirs @@ -0,0 +1 @@ +usr/lib/adaptec-storage-manager diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.install b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.install new file mode 100644 index 0000000..23b0936 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.install @@ -0,0 +1,2 @@ +StorMan/RaidMan.jar usr/lib/adaptec-storage-manager +StorMan/libSTOR*.so usr/lib/adaptec-storage-manager diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.dirs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.dirs new file mode 100644 index 0000000..2e984d6 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/adaptec-storage-manager-gui diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.install b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.install new file mode 100644 index 0000000..0e057ff --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.install @@ -0,0 +1,2 @@ +StorMan/help usr/share/adaptec-storage-manager-gui +debian/gui-wrapper/adaptec-storage-manager-gui usr/bin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.postinst b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.postinst new file mode 100644 index 0000000..0c69033 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + + configure) + # Dirty hack + test -e /bin/sort || ln -s /usr/bin/sort /bin/sort + ;; + +esac + +#DEBHELPER# diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-mib.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-mib.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-mib.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.README.Debian b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.README.Debian new file mode 100644 index 0000000..36f15fd --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.README.Debian @@ -0,0 +1,28 @@ +adaptec-universal-storage-snmpd for Debian +========================================== + +Required SNMPd configuration +---------------------------- + +After installing this package, some additional configuration is required to +connect it to snmp daemon. + +Please add the following lines /etc/snmp/snmpd.conf: + master agentx + agentxsocket /var/agentx/master + +Then you need to enable aus-snmpd. Set ENABLE to true in + /etc/default/adaptec-universal-storage-snmpd + +You can now restart both snmpd and adaptec-universal-storage-snmpd services. + +All information can be read by running (may depends of your SNMPd config): + snmpwalk -v2c -c public -m ADAPTEC-UNIVERSAL-STORAGE-MIB 127.0.0.1 .1.3.6.1.4.1.795 + +You SHOULD really install adaptec-universal-storage-mib package to get +"human-readable" information. + +Starting Squeeze release, Debian doesn't include default snmpb mibs anymore. +Please install "snmp-mibs-downloader" package. + + -- Adam Cécile (Le_Vert) Fri, 13 Feb 2009 23:54:46 +0100 diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.default b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.default new file mode 100644 index 0000000..39dfb9f --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.default @@ -0,0 +1,5 @@ +# This connector requires additional configuration to work. +# Please read /usr/share/doc/adaptec-universal-storage-snmpd/README.Debian +# And then set ENABLE to "true". + +ENABLE=false diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.init b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.init new file mode 100644 index 0000000..969ed01 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.init @@ -0,0 +1,110 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: adaptec-universal-storage-snmpd +# Required-Start: $local_fs $remote_fs snmpd +# Required-Stop: $local_fs $remote_fs snmpd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Adaptec Storage Manager SNMP connector +# Description: aus-snmpd connects the SNMP daemon to Adaptec Storage +# Manager +### END INIT INFO + +# Author: Adam Cécile (Le_Vert) + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Adaptec Storage Manager SNMP connector" +NAME=adaptec-universal-storage-snmpd +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME +ENABLE=true + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# If not enabled then exit gracefully +[ "$ENABLE" = "true" ] || exit 0 + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + # Sleep five seconds to let snmpd and asm start + sleep 5 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --make-pidfile --background -- -f \ + || return 2 +} + +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal 9 + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.links b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.links new file mode 100644 index 0000000..5d0512f --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.links @@ -0,0 +1,2 @@ +# Hardcoded into the binary :/ +/var/lib/adaptec-storage-manager-agent/RaidAgnt.pps /usr/StorMan/RaidAgnt.pps diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/agent-wrapper/adaptec-storage-manager-agent b/packaging/debian/adaptec-storage-manager-linux-64bit/agent-wrapper/adaptec-storage-manager-agent new file mode 100644 index 0000000..ab0758e --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/agent-wrapper/adaptec-storage-manager-agent @@ -0,0 +1,4 @@ +#!/bin/sh + +# Now we can run storage manager withing this directory +cd /var/lib/adaptec-storage-manager-agent; LD_LIBRARY_PATH=/usr/lib/adaptec-storage-manager:$LD_LIBRARY_PATH java -Djava.net.preferIPv4Stack=true -Djava.compiler=NONE -cp /usr/lib/adaptec-storage-manager/RaidMan.jar com.ibm.sysmgt.raidmgr.agent.ManagementAgent $* & diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.dirs b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.dirs new file mode 100644 index 0000000..236670a --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.install b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.install new file mode 100644 index 0000000..4e21443 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.install @@ -0,0 +1 @@ +StorMan/arcconf usr/sbin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/changelog b/packaging/debian/adaptec-storage-manager-linux-64bit/changelog new file mode 100644 index 0000000..c92b09f --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/changelog @@ -0,0 +1,66 @@ +adaptec-storage-manager-linux-64bit (7.31.18856-1) unstable; urgency=low + + * New upstream release. + * Rewrite debian/copyright to use new machine readable format. + + -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:10:02 +0200 + +adaptec-storage-manager-linux-64bit (7.30.18837-1) unstable; urgency=low + + * New upstream release (Closes: #91). + * Fix SNMP mib and its README.Debian (Closes: #95). + + -- Adam Cécile (Le_Vert) Sat, 28 Jan 2012 16:26:10 +0100 + +adaptec-storage-manager-linux-64bit (7.00.18781-1) unstable; urgency=low + + * New upstream release (Closes: #28, #29). + * Fix SNMP agent packaging. + + -- Adam Cécile (Le_Vert) Sat, 10 Sep 2011 23:25:17 +0200 + +adaptec-storage-manager-linux-64bit (6.50.18570-1) unstable; urgency=low + + * New upstream release. + * Rewrite most of the packaging to fit current standards. + * Drop Sarge compatibility. + * Force IPV4, IPV6 support is broken. + + -- Adam Cécile (Le_Vert) Wed, 18 Aug 2010 11:54:15 +0200 + +adaptec-storage-manager-linux-64bit (6.10.18451-1) unstable; urgency=low + + * New upstream release. + * Two new awesome packages added: + - adaptec-universal-storage-snmpd: contains a connector between SNMP + daemon and Adaptec Storage Manager + - adaptec-universal-storage-mibs: the associated MIB + It was only available on i386 before. + * Update download link and homepage. + * Update my own copyright statement. + * Bump Standards-Version to 3.8.2. + + -- Adam Cécile (Le_Vert) Fri, 10 Jul 2009 14:56:30 +0200 + +adaptec-storage-manager-linux-64bit (6.10.18359-1) unstable; urgency=low + + * New upstream release. + * New repack target in debian/rules. + * Add libstdc++5 build-dep (required for Lenny build). + * Add libwrap0 build-dep (was missing). + + -- Adam Cécile (Le_Vert) Sat, 14 Feb 2009 10:35:30 +0100 + +adaptec-storage-manager-linux-64bit (6.10.18350-1) unstable; urgency=low + + * New upstream release. + * Replace libstdc++5-3.3-dev bdep by libstdc++5 rdep (dev packages doesn't + exist anymore in Debian Lenny). + + -- Adam Cécile (Le_Vert) Mon, 22 Dec 2008 21:01:05 +0100 + +adaptec-storage-manager-linux-64bit (5.20.17414-1) unstable; urgency=low + + * Initial release. + + -- Adam Cécile (Le_Vert) Wed, 13 Feb 2008 13:48:34 +0100 diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/compat b/packaging/debian/adaptec-storage-manager-linux-64bit/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/compat @@ -0,0 +1 @@ +5 diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/control b/packaging/debian/adaptec-storage-manager-linux-64bit/control new file mode 100644 index 0000000..50a83af --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/control @@ -0,0 +1,80 @@ +Source: adaptec-storage-manager-linux-64bit +Section: admin +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5), libwrap0, libstdc++5, quilt +Homepage: http://www.adaptec.com/en-US/support/raid/sas_raid/SAS-5805Z/ +Standards-Version: 3.9.3 + +Package: arcconf +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: adaptec-storage-manager-gui | adaptec-storage-manager-agent +Description: Adaptec AACRaid HBAs command line tool + Management and monitoring command line tool by Adaptec for the + Adaptec Advanced Raid HBAs (aacraid). + . + It replace the old afacli command line utility. + . + Adaptec AACRaid controllers are also used under theses names: + Dell PERC2, 2/Si, 3/Si, 3/Di, HP NetRAID-4M, IBM ServeRAID + & ICP SCSI driver + +Package: hrconf +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: adaptec-storage-manager-gui | adaptec-storage-manager-agent +Description: Adaptec HostRaid HBAs command line tool + Management and monitoring command line tool by Adaptec for the + Adaptec HostRaid HBAs. + +Package: adaptec-storage-manager-common +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, sun-java6-jre | sun-java5-jre +Description: Common files for storage-manager-gui and storage-manager-agent + This package contains shared files between storage-manager-gui and + storage-manager-agent. + . + You should not install this package directly. + +Package: adaptec-storage-manager-gui +Architecture: amd64 +Depends: ${misc:Depends}, adaptec-storage-manager-common (= ${binary:Version}) +Suggests: arcconf | hrconf, storage-manager-agent +Description: Adaptec Storage Manager Java UI + Graphical interface to monitor and manage RAID arrays + on Adaptec HBAs. + . + This utility can be used to aggregate several servers with + RAID HBAs if they run storage-manager-agent or standalone. + +Package: adaptec-storage-manager-agent +Architecture: amd64 +Depends: ${misc:Depends}, adaptec-storage-manager-common (= ${binary:Version}), lsb-base +Suggests: arcconf | hrconf, adaptec-storage-manager-gui +Description: Adaptec Storage Manager Agent + Installing this agent on all your servers with Adaptec RAID HBAs + will allow you to monitor and manage them with one main + storage-manager-gui. + . + In exemple, install this agent on your server and then install + storage-manager-gui on you primary workstation. + +Package: adaptec-universal-storage-snmpd +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, adaptec-storage-manager-agent (= ${binary:Version}), lsb-base, snmpd +Recommends: adaptec-universal-storage-mib +Suggests: arcconf | hrconf, adaptec-storage-manager-gui +Description: Adaptec Storage Manager SNMP daemon + This agent connects Adaptec Storage Manager to your SNMP daemon, so you can + monitor your RAID system through SNMP. + . + This package contains aus-snmpd tool. + +Package: adaptec-universal-storage-mib +Architecture: all +Depends: ${misc:Depends} +Suggests: adaptec-storage-manager-snmpd +Description: Adaptec Universal SNMP mib + This package contains the SNMP mib that describes Adaptec Storage + Manager's OIDs. diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/copyright b/packaging/debian/adaptec-storage-manager-linux-64bit/copyright new file mode 100644 index 0000000..c6d3e64 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/copyright @@ -0,0 +1,215 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: adaptec-storage-manager +Source: http://www.adaptec.com/en-us/downloads/storage_manager/sm/productid=sas-6805tq&dn=adaptec+raid+6805tq.html + +Files: * +Copyright: Copyright (C) 2003-2012 Adaptec by PMC +License: Proprietary + ADAPTEC, INC. + DOWNLOADABLE SOFTWARE LICENSE + . + This License is granted by Adaptec, Inc., referred to in this License as + "ADAPTEC" or "we" or "us." ADAPTEC reserves the right to record all + activities and to use any information obtained in accordance with the + privacy policy which you can access below. + . + Directions to Obtain Your File: + . + CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS AS WELL AS THE EXPORT + COMPLIANCE REQUIREMENTS SET OUT BELOW. YOU MUST ANSWER THE REQUIRED + QUESTION TRUTHFULLY TO LET US KNOW WHETHER YOU HAVE READ AND UNDERSTOOD THE + TERMS AND CONDITIONS AND EXPORT COMPLIANCE REQUIREMENTS AND WHETHER YOU + AGREE TO COMPLY. YOU MUST CLICK A FURTHER BUTTON TO CONFIRM YOUR ANSWER AND + IF YOU ANSWER IN THE AFFIRMATIVE, A BINDING LICENSE AGREEMENT ("LICENSE") + WILL BE CONCLUDED BETWEEN US. YOU MAY THEN PROCEED TO DOWNLOAD THE SOFTWARE. + . + IF YOU DO NOT AGREE TO THESE TERMS, CONDITIONS, AND EXPORT COMPLIANCE + REQUIREMENTS THEN DO NOT DOWNLOAD THE SOFTWARE. IF YOU WISH TO CANCEL THIS + LICENSE AT ANY TIME YOU MAY DO SO BY DESTROYING ALL COPIES AND PARTIAL + COPIES OF THE SOFTWARE WHICH YOU HAVE DOWNLOADED. + . + YOU ALSO AGREE THAT YOU HAVE ALL NECESSARY INFORMATION IN ORDER TO ENTER + INTO THIS LICENSE WHETHER UNDER AN APPLICABLE EUROPEAN E-COMMERCE DIRECTIVE + OR OTHERWISE. IF YOU DO NOT AGREE TO THESE TERMS, CONDITIONS, AND + REQUIREMENTS, DO NOT DOWNLOAD ANY FILES. + . + Please retain a copy of the License for your files or you may contact + ADAPTEC's Legal Department at the address listed below for a further copy. + This license may be concluded in English or the language in which it is + drafted by ADAPTEC and appears to you online, as applicable. If you are a + consumer residing in Europe (a "European Consumer") then this License shall + not affect your statutory rights under the local laws in Europe. + . + This License grants you a non-exclusive license to use the ADAPTEC Software + and related documentation ("Software") on the following terms, conditions, + and export compliance requirements: + . + If you are NOT an individual consumer residing in Europe then the following + terms, conditions and export compliance requirements apply and are a part + of your license: ALL SECTIONS EXCEPT AS SPECIFIED HEREIN. + . + If you are an individual consumer residing in Europe ("European Consumer") + then the following terms, conditions and export compliance requirements + apply and are made part of your License: 1, 2, 3, 4, applicable parts of 6, + 7, 9 and the first paragraph of export compliance. IF YOU ARE A EUROPEAN + CONSUMER THIS LICENSE SHALL NOT AFFECT YOUR RIGHTS UNDER THE STATUTORY LAWS + OF EUROPE. + . + Your right to use the Software.You may use the Software in machine readable + form (i.e. the form you download from us) within a single working location. + You may copy the Software in the same form solely for back-up purposes or + use within a single working location. You must reproduce ADAPTEC's + copyright notice and proprietary legends. These requirements apply to + European Consumers. + . + Restrictions. This Software contains trade secrets and in order to protect + them you may not: (1) distribute copies of the Software in any manner, + including, but not limited to, distribution through web site posting; (2) + decompile, reverse engineer, disassemble, or otherwise reduce the Software + to a human perceivable form; (3) MODIFY, ADAPT OR TRANSLATE THE SOFTWARE + INTO ANY OTHER FORM; (4) RENT, LEASE, LOAN, RESELL FOR PROFIT, OR CREATE + DERIVATIVE WORKS BASED UPON THE SOFTWARE OR ANY PART OF IT. These + requirements apply to European Consumers. + . + Ownership. The Software is copyrighted by, proprietary to and a trade + secret of ADAPTEC. ADAPTEC retains the title, ownership and intellectual + property rights in and to the Software and all subsequent copies regardless + of the form or media. The Software is protected by the copyright laws of + the United States, the European Union, and international copyright + treaties. This License is not a sale of the Software. These terms apply to + European consumers. + . + Termination. This License is effective until terminated. This License will + terminate automatically without notice if you fail to comply with any of + the provisions. Upon termination you shall destroy all copies of the + Software including any partial copies. This provision applies to European + Consumers. + . + Disclaimer of Warranty. IF YOU ARE A EUROPEAN CONSUMER THEN THIS SECTION 5 + DOES NOT APPLY TO YOU AND DOES NOT FORM PART OF YOUR LICENSE WITH US. + PROCEED TO SECTION 6. THE SOFTWARE IS LICENSED TO YOU "AS IS." YOU ACCEPT + ALL RISKS WHICH MAY ARISE FROM THE DOWNLOADING OF THE SOFTWARE, INCLUDING + BUT NOT LIMITED TO ERRORS IN TRANSMISSION OR CORRUPTION OF EXISTING DATA OR + SOFTWARE. ADAPTEC MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY + DISCLAIMS ANY WARRANTY OF NON INFRINGEMENT OF THIRD PARTIES' RIGHTS, + WARRANTIES OF SATISFACTORY QUALITY AND OF FITNESS FOR A PARTICULAR PURPOSE. + Some states do not allow the exclusion of implied warranties or limitations + of how long an implied warranty may last, so the above exclusion may not + apply to you. You may also have other rights which vary from state to state. + . + Limitation of Liability. FOR EUROPEAN CONSUMERS: WE WILL NOT BE LIABLE TO + YOU WHERE YOU SUFFER LOSS WHICH WAS NOT FORESEEABLE TO YOU AND TO US WHEN + YOU DOWNLOADED THE SOFTWARE (EVEN IF IT RESULTS FROM OUR FAILURE TO COMPLY + WITH THIS LICENSE OR OUR NEGLIGENCE); WHERE YOU SUFFER ANY BUSINESS LOSS + INCLUDING LOSS OF REVENUE, PROFITS OR ANTICIPATED SAVINGS (WHETHER THOSE + LOSSES ARE THE DIRECT OR INDIRECT RESULT OF OUR DEFAULT); OR WHERE YOUR + LOSS DOES NOT RESULT FROM OUR FAILURE TO COMPLY WITH THIS LICENSE OR OUR + NEGLIGENCE. THE SOFTWARE HAS BEEN MADE AVAILABLE TO YOU FREE OF CHARGE. YOU + MAY AT ANY TIME DOWNLOAD A FURTHER COPY OF THE SOFTWARE FREE OF CHARGE TO + REPLACE YOUR ORIGINAL COPY OF THE SOFTWARE (CONSEQUENTLY, WE AND OUR + SUPPLIERS WILL ONLY BE LIABLE TO YOU UP TO A MAXIMUM TOTAL LIMIT OF TWO + THOUSAND DOLLARS U.S. OR ITS EURO EQUIVALENT AT THE TIME A CLAIM IS MADE). + OUR MAXIMUM FINANCIAL RESPONSIBILITY TO YOU AND THAT OF OUR SUPPLIERS WILL + NOT EXCEED THIS LIMIT EVEN IF THE ACTUAL LOSS YOU SUFFER IS MORE THAN THAT. + HOWEVER, NOTHING IN THIS LICENSE SHALL RESTRICT ANY PARTY'S LIABILITY FOR + FRAUD, DEATH OR PERSONAL INJURY ARISING FROM ITS NEGLIGENCE OR FOR FRAUD OR + ANY FRAUDULENT MISREPRESENTATION. + . + ALL OTHERS DOWNLOADING THE SOFTWARE: THE SOFTWARE IS PROVIDED FREE OF + CHARGE TO YOU, THEREFORE UNDER NO CIRCUMSTANCES EXCEPT AS DESCRIBED HEREIN + AND UNDER NO LEGAL THEORY, TORT (INCLUDING NEGLIGENCE), CONTRACT, OR + OTHERWISE, SHALL ADAPTEC OR ITS SUPPLIERS OR RESELLERS BE LIABLE TO YOU OR + ANY OTHER PERSON FOR ANY ECONOMIC LOSS (INCLUDING LOSS OF PROFIT) OR FOR + ANY LOSS OF DATA, LOSS OF BUSINESS, LOSS OF GOODWILL, LOSS OF ANTICIPATED + SAVINGS (IN EACH CASE WHETHER DIRECT OR INDIRECT) OR FOR ANY OTHER DIRECT + OR INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER + EVEN IF ADAPTEC SHALL HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + HOWEVER, NOTHING IN THIS LICENSE SHALL RESTRICT ANY PARTY'S LIABILITY FOR + FRAUD, DEATH OR PERSONAL INJURY ARISING FROM ITS NEGLIGENCE OR FOR FRAUD OR + ANY FRAUDULENT MISREPRESENTATION. + . + Export. By downloading, you acknowledge that the laws and regulations of + the United States and relevant countries within the European Union, + restrict the export and re-export of the Software. Further, you agree that + you will not export or re-export the Software or media in any form without + the appropriate United States and foreign government approval. If you are a + European Consumer you must not export Software outside the country in which + you download it without our prior written permission. (See below for + details on Export Compliance Requirements.) + . + U.S. Government Restricted Rights. IF YOU ARE A EUROPEAN CONSUMER THEN THIS + CLAUSE WILL NOT APPLY TO YOU AND DOES NOT FORM PART OF YOUR LICENSE + AGREEMENT WITH US. PLEASE PROCEED TO SECTION 9. If the Software is acquired + under the terms of a United States GSA contract, use, reproduction or + disclosure is subject to the restrictions set forth in the applicable ADP + Schedule contract. If the Software is acquired under the terms of a DoD or + civilian agency contract, use, duplication or disclosure by the Government + is subject to the restrictions of this License in accordance with 48 C.F.R. + 12.212 of the Federal Acquisition Regulations and its successors and 48 + C.F.R. 227.7202-1 of the DoD FAR Supplement and its successors. (See below + for details on Export Compliance Requirements.) + . + General. California residents entered into and to be performed within + California, except as governed by Federal law. Should any provision of this + License be declared unenforceable in any jurisdiction, then such provision + shall be deemed to be severable from this License and shall not affect the + remainder hereof. All rights in the Software not specifically granted in + this License are reserved by Adaptec. + . + EXPORT COMPLIANCE REQUIREMENTS + . + Export of any information from the Adaptec web site (including Confidential + Information obtained through Adaptec Access) outside of the United States + is subject to all U.S. export control laws. You will abide by such laws and + also to the provision of the U.S. Export-Re-export Requirements and + Enhanced Proliferation Control Initiative set forth here. You and your + organization will not sell, license, or otherwise provide or ship Adaptec + products or technical data (or the direct product thereof) for export or + re-export to the embargoed or restricted* countries listed below: + . + Afghanistan (Taliban controlled area), Cuba, Iran, Iraq, North Korea*, + Sudan, and Syria* + . + You agree not to transfer, export or re-export Adaptec products, technology + or software to your customers or any intermediate entity in the chain of + supply if our products will be used in the design, development, production, + stockpiling or use of missiles, chemical or biological weapons or for + nuclear end uses without obtaining prior authorization from the U.S. + Government. + . + You also agree that unless you receive prior authorization from the U.S. + Department of Commerce, you shall not transfer, export or re-export, + directly or indirectly, any Adaptec technology or software (or the direct + product of such technology or software or any part thereof, or any process + or service which is the direct product of such technology or software) to + any Sanctioned and/or Embargoed entity listed on: + . + http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm + . + If you have any questions concerning this License, contact: + . + Adaptec, Inc. + Legal Department + 691 South Milpitas Boulevard + Milpitas, California 95035 + +Files: debian/* +Copyright: Copyright (C) 2008-2012 Adam Cécile (Le_Vert) +License: GPL-2.0+ + +License: GPL-2.0+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/gui-wrapper/adaptec-storage-manager-gui b/packaging/debian/adaptec-storage-manager-linux-64bit/gui-wrapper/adaptec-storage-manager-gui new file mode 100644 index 0000000..e70fad2 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/gui-wrapper/adaptec-storage-manager-gui @@ -0,0 +1,11 @@ +#!/bin/sh + +# Well, everything must be in current directory +# Let's create this one first +test -d $HOME/.adaptec-storage-manager-gui || mkdir $HOME/.adaptec-storage-manager-gui + +# We should have doc here +test -L $HOME/.adaptec-storage-manager-gui/help || ln -s /usr/share/adaptec-storage-manager-gui/help $HOME/.adaptec-storage-manager-gui/help + +# Now we can run storage manager withing this directory +cd $HOME/.adaptec-storage-manager-gui; LD_LIBRARY_PATH=/usr/lib/adaptec-storage-manager:$LD_LIBRARY_PATH java -Djava.net.preferIPv4Stack=true -Djava.compiler=NONE -cp /usr/lib/adaptec-storage-manager/RaidMan.jar com.ibm.sysmgt.raidmgr.mgtGUI.Launch $* diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.dirs b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.dirs new file mode 100644 index 0000000..236670a --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.docs b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.docs new file mode 100644 index 0000000..6353704 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.docs @@ -0,0 +1 @@ +StorMan/README.TXT diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.install b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.install new file mode 100644 index 0000000..6b4fbe0 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.install @@ -0,0 +1 @@ +StorMan/hrconf usr/sbin diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/patches/000-Adaptec_mib_patch.diff b/packaging/debian/adaptec-storage-manager-linux-64bit/patches/000-Adaptec_mib_patch.diff new file mode 100644 index 0000000..eb2d7dc --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/patches/000-Adaptec_mib_patch.diff @@ -0,0 +1,38 @@ +--- 1/StorMan/aus.mib 2012-01-28 16:43:00.000000000 +0100 ++++ /tmp/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt 2012-01-28 17:58:10.929553485 +0100 +@@ -177,7 +177,7 @@ + { + unknown(0), + okay(1), +- charging/notReady(2), ++ charging(2), + failed(3), + notInstalled(4) + } +@@ -568,7 +568,7 @@ + SYNTAX INTEGER + { + Dynamic(0), +- OLTP/Database(3) ++ OLTPDatabase(3) + } + ACCESS read-only + STATUS mandatory +@@ -3054,7 +3054,7 @@ + ausArrayMaxCachePreferredCacheSetting OBJECT-TYPE + SYNTAX INTEGER + { +- Not Supported(0), ++ NotSupported(0), + Disabled(1), + Enabled(2) + } +@@ -3068,7 +3068,7 @@ + ausArrayMaxCacheSetting OBJECT-TYPE + SYNTAX INTEGER + { +- Not Supported(0), ++ NotSupported(0), + Disabled(1), + Enabled(2) + } diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/patches/series b/packaging/debian/adaptec-storage-manager-linux-64bit/patches/series new file mode 100644 index 0000000..885baa5 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/patches/series @@ -0,0 +1 @@ +000-Adaptec_mib_patch.diff diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/rules b/packaging/debian/adaptec-storage-manager-linux-64bit/rules new file mode 100755 index 0000000..3146d63 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/rules @@ -0,0 +1,71 @@ +#!/usr/bin/make -f + +# Quilt patch system +include /usr/share/quilt/quilt.make + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Example: +# debian/rules repack FILE=../repack/manager/StorMan-7.31.x86_64.rpm VERSION=7.31.18856 +repack: + BASE_NAME=adaptec-storage-manager-linux-64bit &&\ + ABS_FILE=`readlink -f $(FILE)` &&\ + TMP_DIR=`mktemp -d` &&\ +# VERSION=`basename $(FILE) | sed 's!^.*StorMan\-\(.*\)\.x86_64\.rpm$$!\1!'` &&\ + cd $$TMP_DIR && rpm2cpio $$ABS_FILE | cpio -i --make-directories &&\ + rm -vf $$TMP_DIR/usr/StorMan/sun-jre*.tgz &&\ + cd $$TMP_DIR && tar czf $$BASE_NAME-$$VERSION.tar.gz usr &&\ + mv $$TMP_DIR/$$BASE_NAME-$$VERSION.tar.gz /tmp/ &&\ + rm -rf $$TMP_DIR &&\ + echo "-----------------------------------------" &&\ + echo /tmp/$$BASE_NAME-$$VERSION.tar.gz + +build: build-arch build-indep patch +build-arch: +build-indep: + +clean: unpatch + dh_testdir + dh_testroot + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install -D -m 755 StorMan/aus-snmpd \ + $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd + # Do not try to fix the MIBS path. It segfaults when something is found... + # Otherwise it just shows warning but seem to work as expected. + # + # Fix mibs path INSIDE the binary itself (OMG :/) + #sed -i 's!/usr/local/share/snmp/mibs!/usr/share/./././snmp/mibs!' \ + # $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd + install -D -m 644 StorMan/aus.mib \ + $(CURDIR)/debian/adaptec-universal-storage-mib/usr/share/snmp/mibs/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt + dh_install + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installinit -Nadaptec-universal-storage-snmpd + # Priority 21, so it will start after snmpd + dh_installinit -padaptec-universal-storage-snmpd -- defaults 21 + dh_link + dh_compress + dh_fixperms + dh_makeshlibs + dh_strip + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install diff --git a/packaging/debian/adaptec-storage-manager-linux-64bit/source/format b/packaging/debian/adaptec-storage-manager-linux-64bit/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/packaging/debian/adaptec-storage-manager-linux-64bit/source/format @@ -0,0 +1 @@ +1.0