Intial commit
This commit is contained in:
parent
2c8a634c8f
commit
595d7e83bc
84
build_orig.sh
Normal file
84
build_orig.sh
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
#!/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 -c --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}/*/*.pdf $WORK_DIR/${app}-${version}
|
||||||
|
pushd $WORK_DIR/${app}-${version}/${type}
|
||||||
|
case "${type}" in
|
||||||
|
"amd64" )
|
||||||
|
mv $WORK_DIR/${type}/*/*/sas3ircu/sas3ircu_linux_x64_rel/sas3ircu $WORK_DIR/${app}-${version}/${type}
|
||||||
|
;;
|
||||||
|
"i386" )
|
||||||
|
mv $WORK_DIR/${type}/*/*/sas3ircu/sas3ircu_linux_x86_rel/sas3ircu $WORK_DIR/${app}-${version}/${type}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
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 @@
|
|||||||
|
sas3ircu (16.00.00.00.0) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* New pacakgebased on sas2ircu package
|
||||||
|
|
||||||
|
-- Mario Fetka <mario.fetka@gmail.com> Sat, 11 Nov 2017 19:13:19 +0100
|
||||||
|
|
||||||
|
sas3ircu (16.00.00.00-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release.
|
||||||
|
|
||||||
|
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Thu, 25 Jul 2013 00:22:04 +0200
|
||||||
|
|
||||||
|
sas3ircu (13.00.00.00-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release (Closes: #205).
|
||||||
|
|
||||||
|
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Tue, 17 Jul 2012 21:27:50 +0200
|
||||||
|
|
||||||
|
sas3ircu (5.00.00.00-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Wed, 08 Dec 2010 15:41:51 +0100
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
5
|
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Source: sas3ircu
|
||||||
|
Section: admin
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
|
||||||
|
Build-Depends: debhelper (>= 5)
|
||||||
|
Standards-Version: 3.9.4
|
||||||
|
|
||||||
|
Package: sas3ircu
|
||||||
|
Architecture: i386 amd64
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: LSI Logic Fusion MPT SAS3 command line management tool
|
||||||
|
Tool to read and setup LSI Logic Fusion MTP SAS3 HW RAID HBAs (mpt2sas
|
||||||
|
driver).
|
26
debian/copyright
vendored
Normal file
26
debian/copyright
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
This package was debianized by Adam Cécile (Le_Vert) <gandalf@le-vert.net> on
|
||||||
|
Wed, 08 Dec 2010 15:41:51 +0100.
|
||||||
|
|
||||||
|
It was downloaded from:
|
||||||
|
http://www.lsi.com/support/Pages/download-search.aspx
|
||||||
|
(enter "sas2ircu" in the search box)
|
||||||
|
|
||||||
|
Upstream Author:
|
||||||
|
|
||||||
|
LSI Corporation
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
Copyright (C) 2009-2012 LSI Corporation
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
LSI Corporation, All Rights Reserved.
|
||||||
|
|
||||||
|
The Debian packaging is Copyright (C) 2010-2013 Adam Cécile (Le_Vert)
|
||||||
|
<gandalf@le-vert.net> and is licensed under the GPL,
|
||||||
|
see `/usr/share/common-licenses/GPL'.
|
||||||
|
|
||||||
|
Sources have been repacked (windows, solaris... binaries removed,
|
||||||
|
PDF userguide added) from:
|
||||||
|
fd59a542e22eb3ed0ea7210d5ce8f22e SAS2IRCU_P16.zip
|
1
debian/dirs
vendored
Normal file
1
debian/dirs
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/sbin
|
2
debian/docs
vendored
Normal file
2
debian/docs
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.pdf
|
||||||
|
*.txt
|
44
debian/rules
vendored
Executable file
44
debian/rules
vendored
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||||
|
|
||||||
|
build:
|
||||||
|
build-arch:
|
||||||
|
build-indep:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_clean
|
||||||
|
|
||||||
|
install:
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_clean -k
|
||||||
|
dh_installdirs
|
||||||
|
ifeq ($(DEB_BUILD_ARCH),amd64)
|
||||||
|
install $(CURDIR)/amd64/sas3ircu $(CURDIR)/debian/sas3ircu/usr/sbin/sas3ircu
|
||||||
|
endif
|
||||||
|
ifeq ($(DEB_BUILD_ARCH),i386)
|
||||||
|
install $(CURDIR)/i386/sas3ircu $(CURDIR)/debian/sas3ircu/usr/sbin/sas3ircu
|
||||||
|
endif
|
||||||
|
|
||||||
|
binary-indep:
|
||||||
|
binary-arch: build install
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_installchangelogs
|
||||||
|
dh_installdocs
|
||||||
|
dh_compress
|
||||||
|
dh_fixperms
|
||||||
|
dh_installdeb
|
||||||
|
dh_shlibdeps
|
||||||
|
dh_gencontrol
|
||||||
|
dh_md5sums
|
||||||
|
dh_builddeb
|
||||||
|
|
||||||
|
binary: binary-arch
|
||||||
|
.PHONY: build clean binary-indep binary-arch binary install
|
2
files.diz
Normal file
2
files.diz
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
i386!sas3ircu!16.00.00.00.0!SAS3IRCU_P15.zip!https://docs.broadcom.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_12g_p15/SAS3IRCU_P15.zip!fa08e5225f5f2846e84ad3b3bfd1d586
|
||||||
|
amd64!sas3ircu!16.00.00.00.0!SAS3IRCU_P15.zip!https://docs.broadcom.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_12g_p15/SAS3IRCU_P15.zip!fa08e5225f5f2846e84ad3b3bfd1d586
|
Loading…
Reference in New Issue
Block a user