Compare commits
No commits in common. "pristine-tar" and "master" have entirely different histories.
pristine-t
...
master
85
build_orig.sh
Normal file
85
build_orig.sh
Normal file
@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
# the directory of the script
|
||||
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
||||
echo "Working directory $DIR"
|
||||
|
||||
# the temp directory used, within $DIR
|
||||
WORK_DIR=`mktemp -d -p "$DIR"`
|
||||
echo "Creating temp working directory $WORK_DIR"
|
||||
|
||||
# deletes the temp directory
|
||||
function cleanup {
|
||||
rm -rf "$WORK_DIR"
|
||||
echo "Deleted temp working directory $WORK_DIR"
|
||||
}
|
||||
|
||||
# register the cleanup function to be called on the EXIT signal
|
||||
trap cleanup EXIT
|
||||
|
||||
# Download Files specified in files.diz
|
||||
while IFS=! read type app version outputfile url md5
|
||||
do
|
||||
echo "Downloading $app Version: $version"
|
||||
#use -O for output file. define $outputfile yourself
|
||||
wget --no-check-certificate --tries=1 -O $DIR/../$outputfile --timeout=5 "$url"
|
||||
# use $(..) instead of backticks.
|
||||
calculated_md5=$(md5sum "$DIR/../$outputfile" | cut -f 1 -d " ")
|
||||
# compare md5
|
||||
case "$calculated_md5" in
|
||||
"$md5" )
|
||||
echo "$DIR/../$outputfile md5 ok"
|
||||
;;
|
||||
*)
|
||||
echo "$DIR/../$outputfile md5 NOT ok"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done < "$DIR/files.diz"
|
||||
|
||||
# Extract to specified dir and set some variables
|
||||
while IFS=! read type app version outputfile url md5
|
||||
do
|
||||
mkdir -p $WORK_DIR/${type}
|
||||
pushd $WORK_DIR/${type}
|
||||
unzip $DIR/../$outputfile
|
||||
popd
|
||||
mkdir -p $WORK_DIR/${app}-${version}/${type}
|
||||
dos2unix $WORK_DIR/${type}/*.txt
|
||||
mv $WORK_DIR/${type}/*.txt $WORK_DIR/${app}-${version}
|
||||
mv $WORK_DIR/${type}/*.bin $WORK_DIR/${app}-${version}/${type}
|
||||
pushd $WORK_DIR/${app}-${version}/${type}
|
||||
case "${type}" in
|
||||
"amd64" )
|
||||
rm -f opt/MegaRAID/MegaCli/MegaCli
|
||||
;;
|
||||
"i386" )
|
||||
rm -f opt/MegaRAID/MegaCli/MegaCli64
|
||||
rm -f opt/MegaRAID/MegaCli/libstorelibir-2.so*
|
||||
;;
|
||||
*)
|
||||
echo "Wrong arch"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "${app}_${version}.orig.tar.gz" > $WORK_DIR/filename.txt
|
||||
echo "${app}-${version}" > $WORK_DIR/dirname.txt
|
||||
echo "${version}" > $WORK_DIR/version.txt
|
||||
popd
|
||||
done < "$DIR/files.diz"
|
||||
|
||||
FILENAME=`cat $WORK_DIR/filename.txt`
|
||||
DIRNAME=`cat $WORK_DIR/dirname.txt`
|
||||
echo "Creating $DIR/../$FILENAME "
|
||||
|
||||
pushd $WORK_DIR
|
||||
tar -czf $DIR/../$FILENAME $DIRNAME
|
||||
popd
|
||||
|
||||
#exit 1
|
||||
|
||||
VER=`cat $WORK_DIR/version.txt`
|
||||
echo "Importing $DIR/../$FILENAME as $VER into git"
|
||||
cleanup
|
||||
gbp import-orig --pristine-tar -u $VER $DIR/../$FILENAME
|
||||
|
||||
exit 0
|
23
debian/changelog
vendored
Normal file
23
debian/changelog
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
megamgr (5.20.1) UNRELEASED; urgency=medium
|
||||
|
||||
* Intial switch to new build host
|
||||
|
||||
-- Mario Fetka <mario.fetka@gmail.com> Fri, 10 Nov 2017 16:37:25 +0100
|
||||
|
||||
megamgr (5.20-3) unstable; urgency=low
|
||||
|
||||
* Fix typo in package's description.
|
||||
|
||||
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Thu, 02 Feb 2012 14:46:54 +0100
|
||||
|
||||
megamgr (5.20-2) unstable; urgency=low
|
||||
|
||||
* Update create-devices-nodes to handle kernels 2.6.25rc2+.
|
||||
|
||||
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Mon, 16 Feb 2009 19:33:05 +0100
|
||||
|
||||
megamgr (5.20-1) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Tue, 26 Aug 2008 10:49:33 +0200
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
7
|
20
debian/control
vendored
Normal file
20
debian/control
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
Source: megamgr
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.9.2
|
||||
Homepage: http://www.lsi.com/files/support/rsa/utilities/megamgr
|
||||
|
||||
Package: megamgr
|
||||
Architecture: i386 amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Manage LSI MegaRAID chip based cards
|
||||
This tool allow you to access the RAID card BIOS from Linux.
|
||||
.
|
||||
Useful to manage arrays or start maintenance operations.
|
||||
.
|
||||
If you have a MegaRAID card from DELL (PERC/CERC), look at
|
||||
dellmgr package instead.
|
||||
.
|
||||
This tool will not work on recent SAS cards.
|
20
debian/copyright
vendored
Normal file
20
debian/copyright
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
This package was debianized by Adam Cécile (Le_Vert) <gandalf@le-vert.net> on
|
||||
Tue, 26 Aug 2008 10:49:33 +0200.
|
||||
|
||||
It was downloaded from http://www.lsi.com/files/support/rsa/utilities/megamgr/
|
||||
|
||||
Upstream Author:
|
||||
|
||||
LSI
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) LSI
|
||||
|
||||
License:
|
||||
|
||||
LSI proprietary.
|
||||
|
||||
The Debian packaging is Copyright (C) 2008-2012 Adam Cécile (Le_Vert)
|
||||
<gandalf@le-vert.net> and is licensed under GNU General Public License
|
||||
version 2 (or later) see `/usr/share/common-licenses/GPL-2'.
|
2
debian/dirs
vendored
Normal file
2
debian/dirs
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
usr/sbin
|
||||
usr/lib/megamgr
|
47
debian/rules
vendored
Executable file
47
debian/rules
vendored
Executable file
@ -0,0 +1,47 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
DESTDIR = $(CURDIR)/debian/megamgr
|
||||
|
||||
build: build-arch build-indep
|
||||
build-arch:
|
||||
build-indep:
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean
|
||||
|
||||
install:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
install -D -m 755 $(CURDIR)/i386/megamgr.bin \
|
||||
$(DESTDIR)/usr/lib/megamgr/megamgr.real
|
||||
install -D -m 644 $(CURDIR)/debian/wrappers/create-device-node \
|
||||
$(DESTDIR)/usr/lib/megamgr/create-device-node
|
||||
install -D -m 755 $(CURDIR)/debian/wrappers/megamgr \
|
||||
$(DESTDIR)/usr/sbin/megamgr
|
||||
|
||||
|
||||
binary-indep: build install
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs ut_linux_mgr_5.20.txt
|
||||
dh_installdocs
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
21
debian/wrappers/create-device-node
vendored
Normal file
21
debian/wrappers/create-device-node
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# Author: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
|
||||
# License: Public domain
|
||||
|
||||
create_node() {
|
||||
# Since 2.6.25rc2 linux kernel, megadev0 is created dynamically by udev
|
||||
# See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90a95af85f22c82f87e5fb714bac7ee06673b0ff
|
||||
if [ ! -e /dev/megadev0 ]; then
|
||||
# Not available, try to create it by hand for kernel pre 2.6.25rc2
|
||||
grep -q 'megadev$' /proc/devices && MEGARAID="ok"
|
||||
if [ ! -z ${MEGARAID} ]; then
|
||||
MAJOR=`grep 'megadev$' /proc/devices | head -n 1 | awk '{ print $1 }'`
|
||||
mknod /dev/megadev0 c $MAJOR 0
|
||||
return $?
|
||||
fi
|
||||
fi
|
||||
if [ -e /dev/megadev0 ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
12
debian/wrappers/megamgr
vendored
Normal file
12
debian/wrappers/megamgr
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /usr/lib/megamgr/create-device-node
|
||||
|
||||
create_node
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
/usr/lib/megamgr/megamgr.real $@
|
||||
else
|
||||
echo "No LSI MegaRAID cards found."
|
||||
exit 1
|
||||
fi
|
1
files.diz
Normal file
1
files.diz
Normal file
@ -0,0 +1 @@
|
||||
i386!megamgr!5.20.1!ut_linux_mgr_5-20.zip!https://docs.broadcom.com/docs-and-downloads/legacy-raid-controllers/legacy-raid-controllers-common-files/ut_linux_mgr_5-20.zip!0417bd48936518322c3634a414b3c8d1
|
BIN
i386/megamgr.bin
Normal file
BIN
i386/megamgr.bin
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
f0cead5fb9e3e4f9dc97692d1e61c35b9714730e
|
68
ut_linux_mgr_5.20.txt
Normal file
68
ut_linux_mgr_5.20.txt
Normal file
@ -0,0 +1,68 @@
|
||||
************************************
|
||||
|
||||
LSI Logic MegaRAID Megamgr Release
|
||||
|
||||
************************************
|
||||
|
||||
Release Date: Sep-14-2004
|
||||
|
||||
Supported Controllers:
|
||||
================
|
||||
|
||||
MegaRAID SCSI 320-0
|
||||
MegaRAID SCSI 320-1
|
||||
MegaRAID SCSI 320-2
|
||||
MegaRAID SCSI 320-0X
|
||||
MegaRAID SCSI 320-2X
|
||||
MegaRAID SCSI 320-4X
|
||||
MegaRAID SCSI 320-2E
|
||||
MegaRAID SATA 150-4
|
||||
MegaRAID SATA 150-6
|
||||
MegaRAID SATA 300-4x
|
||||
MegaRAID SATA 300-8x
|
||||
|
||||
Component:
|
||||
==========
|
||||
Linux Megamgr Version : 5.20
|
||||
Release Date: 09/14/2004
|
||||
Products Supported: MegaRAID Controllers
|
||||
|
||||
|
||||
Version Numbers:
|
||||
Component Current Version PreviousVersion
|
||||
=============== ===============
|
||||
|
||||
Linux megamgr 5.20 5.19
|
||||
|
||||
|
||||
Bug Fixes: 2
|
||||
==========
|
||||
|
||||
1. As per the request made, now the application does not allow the user to change the value of Port Multiplier & Cmd Queue status.These two options are only informational to the user now and they can not be changed from the application
|
||||
|
||||
2. applicatio was displaying only 1 chnl on SATA-4x controller even if the port multiplier was enabled on it. This has been fixed in this release.
|
||||
|
||||
|
||||
Enhancements: 1
|
||||
=============
|
||||
|
||||
1. New options have been added in Adapter menu to Enable/Disable Portmultiplier and Enable/Disable Cmd Que
|
||||
|
||||
Component Features: 0
|
||||
===================
|
||||
|
||||
1. NONE
|
||||
|
||||
Known Restrictions: 0
|
||||
===================
|
||||
1. None
|
||||
|
||||
Known Bugs: 0
|
||||
===========
|
||||
|
||||
1. NONE
|
||||
|
||||
Installation Notes:
|
||||
===================
|
||||
|
||||
1. NONE
|
Loading…
Reference in New Issue
Block a user