add debain packages

This commit is contained in:
Mario Fetka 2017-11-10 21:43:06 +01:00
parent 90889a47f4
commit cd6555da7b
9 changed files with 11862 additions and 0 deletions

85
build_orig.sh Normal file
View 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 -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}
tar -zxf $DIR/../$outputfile
unzip $DIR/../$outputfile
tar -zxf tdmCliLnx.tgz
popd
mkdir -p $WORK_DIR/${app}-${version}/${type}
dos2unix $WORK_DIR/${type}/*.txt
mv $WORK_DIR/${type}/*.txt $WORK_DIR/${app}-${version}
pushd $WORK_DIR/${app}-${version}/${type}
case "${type}" in
"amd64" )
mv $WORK_DIR/${type}/debian8/x86_64/tw_cli $WORK_DIR/${app}-${version}/${type}
;;
"i386" )
mv $WORK_DIR/${type}/debian8/x86/tw_cli $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

11490
debian/CLIGuide.pdf.uu vendored Normal file

File diff suppressed because it is too large Load Diff

36
debian/changelog vendored Normal file
View File

@ -0,0 +1,36 @@
tw-cli (2:2.00.11.022.0) UNRELEASED; urgency=medium
* new version with debian 8 beta package
-- Mario Fetka <mario.fetka@gmail.com> Fri, 10 Nov 2017 21:41:19 +0100
tw-cli (2:2.00.11.020+10.2.1-1) unstable; urgency=low
* New upstream release.
* Do not use separate tarball for each architecture anymore.
* Improve debian/copyright to explain how to generate sources tarball.
* Update licence and copyright information.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Mon, 30 Jan 2012 16:00:10 +0100
tw-cli-x86-64 (2:2.00.09.012+9.5.2-1) unstable; urgency=low
* New upstream release.
* Bump epoch... Once again, thanks to 3Ware insane versionning.
* PDF user guide updated to 9.5.2 release.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Tue, 07 Jul 2009 19:34:46 +0200
tw-cli-x86-64 (1:2.02.08.008+9.5.1.1-1) unstable; urgency=low
* New upstream release.
* Better versionning.
* PDF user guide updated to 9.5.1.1 release.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Sun, 21 Dec 2008 23:00:30 +0100
tw-cli-x86-64 (9.5.0.1-1) unstable; urgency=low
* Initial release.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Thu, 21 Aug 2008 14:18:31 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
5

16
debian/control vendored Normal file
View File

@ -0,0 +1,16 @@
Source: tw-cli
Section: admin
Priority: optional
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
Build-Depends: debhelper (>= 5), sharutils
Standards-Version: 3.9.2
Homepage: http://www.lsi.com/channel/support/products/Pages/3wareSAS9750-8e.aspx
Package: tw-cli
Architecture: amd64 i386
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: 3Ware management tool (tw-cli)
This package contains tw-cli, the management tool for 3Ware Eskalad
RAID cards.
.
It should works fine for 9000, 8000 as well as 7000 series.

169
debian/copyright vendored Normal file
View File

@ -0,0 +1,169 @@
This package was debianized by Adam Cécile (Le_Vert) <gandalf@le-vert.net> on
Thu, 21 Aug 2008 14:18:31 +0200.
It was downloaded from:
http://www.lsi.com/channel/support/products/Pages/3wareSAS9750-8e.aspx
Upstream Author:
LSI Corporation
Copyright:
Copyright (C) 2011 LSI Corporation
Copyright (c) 2004, 2005 Applied Micro Circuits Corporation (AMCC)
Copyright (C) 2002, 2003, 2004 3ware, Inc.
License:
STOP!
BEFORE YOU INSTALL OR USE THIS SOFTWARE
Carefully read this Software License Agreement. Installing or using this
software (the "Software") and the related documentation, (the
"Documentation"), indicates that you agree to abide by this Software
License Agreement. If you do not agree with it, promptly
return the Software and we will refund the purchase price.
Software License Agreement
THE SOFTWARE AND DOCUMENTATION PROVIDED HEREIN IS PROPRIETARY TO LSI
CORPORATION AND ITS LICENSORS. LSI CORPORATION IS WILLING TO LICENSE THE
SOFTWARE AND DOCUMENTATION TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT
ALL OF THE TERMS CONTAINED IN THIS SOFTWARE LICENSE AGREEMENT. BY USING
THIS SOFTWARE, YOU, THE END-USER, AGREE TO THE LICENSE TERMS BELOW. IF YOU
DO NOT AGREE TO THESE TERMS, YOU MAY NOT USE THE SOFTWARE.
1. Grant of License
Conditioned upon compliance with the terms and conditions of this Software
License Agreement ("Agreement"), LSI Corporation ("LSI") grants you, the
original licensee, a nonexclusive and nontransferable limited license to
use (including installation on multiple computers) for your internal
business purposes the Software and the Documentation, ("Permitted Use").
2. License Conditions; Confidentiality
The Software and Documentation are confidential information of LSI and its
licensors. Except as expressly permitted herein, you may not disclose or
give copies of the Software or Documentation to others and you may not let
others gain access to the same. You may not post the Software or
Documentation, or otherwise make available, in any form, on the Internet or
in other public places or media. You may not modify, adapt, translate,
rent, lease, loan, distribute or resell for profit, or create derivative
works based upon, the Software or Documentation or any part of thereof, but
you may transfer the original media containing the Software and
Documentation on a one-time basis provided you retain no copies of the
Software and Documentation and the recipient assumes all of the terms of
this Agreement. You may not reverse engineer, decompile, disassemble or
otherwise attempt to derive source code from the Software except to the
extent allowed by law.
3. No Warranty
LSI grants a limited warranty only to the original licensee, that the
Software will perform substantially in accordance with the Documentation
prepared by LSI for a period of ninety (90) days from the date of receipt
by the original licensee. LSI's entire liability and the licensee's
exclusive remedy for breach of the limited warranty above shall be, at
LSI's sole option and discretion, either: (a) the repair or replacement of
the non-conforming Software which is returned to LSI and determined by LSI
to be non-conforming, or (b) the return of the price the original licensee
paid solely for the Software. This limited warranty is void if the
non-conformance of the Software results from accident, abuse, negligence,
misapplication, or failure to use the Software in accordance with the
Documentation. Any replacement Software will be warranted to the original
licensee for the remainder of the original warranty period, or thirty (30)
days, whichever is longer. EXCEPT AS SPECIFIED EXPRESSLY IN THIS LIMITED
WARRANTY, ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND
WARRANTIES INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTY OR CONDITION
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT,
SATISFACTORY QUALITY, NON-INTERFERENCE, ACCURACY OF INFORMATIONAL CONTENT,
OR ARISING FROM A COURSE OF DEALING, LAW, USAGE, OR TRADE PRACTICE, ARE
HEREBY EXCLUDED TO THE EXTENT ALLOWED BY APPLICABLE LAW AND ARE EXPRESSLY
DISCLAIMED BY LSI, ITS SUPPLIERS AND LICENSORS. TO THE EXTENT AN IMPLIED
WARRANTY CANNOT BE EXCLUDED, SUCH WARRANTY IS LIMITED IN DURATION TO THE
EXPRESS WARRANTY PERIOD. BECAUSE SOME STATES OR JURISDICTIONS DO NOT ALLOW
LIMITATIONS ON HOW LONG AN IMPLIED WARRANTY LASTS, THE ABOVE LIMITATION MAY
NOT APPLY. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS, AND YOU MAY ALSO
HAVE OTHER RIGHTS WHICH VARY FROM JURISDICTION TO JURISDICTION. This
disclaimer and exclusion shall apply even if the express warranty set forth
above fails of its essential purpose.
4. LIMITATION OF LIABILITY AND REMEDIES
IN NO EVENT SHALL LSI OR ITS LICENSORS BE LIABLE TO YOU FOR ANY INDIRECT,
CONSEQUENTIAL, EXEMPLARY, INCIDENTAL OR SPECIAL DAMAGES ARISING FROM THIS
AGREEMENT OR THE USE OF THE SOFTWARE OR DOCUMENTATION (INCLUDING, WITHOUT
LIMITATION, DAMAGE FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
LOSS OF BUSINESS INFORMATION, LOSS OF GOODWILL, OR OTHER PECUNIARY LOSS),
WHETHER RESULTING FROM LSI'S NEGLIGENCE OR OTHERWISE, EVEN IF LSI WAS
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. LSI'S MAXIMUM LIABILITY FOR ANY
DAMAGES ARISING UNDER THIS AGREEMENT AND THE USE OF THE SOFTWARE AND
DOCUMENTATION WILL NOT EXCEED AN AMOUNT EQUAL TO THE LICENSE FEES YOU PAID
TO LSI FOR THE SOFTWARE AND DOCUMENTATION. THE LAWS OF SOME JURISDICTIONS
DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY, AND THE ABOVE
EXCLUSION MAY NOT APPLY TO YOU.
5. U.S. Government End User Purchasers
The Software and Documentation qualify as "commercial items," as that term
is defined at Federal Acquisition Regulation ("FAR") (48 C.F.R.) 2.101,
consisting of "commercial computer software" and "commercial computer
software documentation" as such terms are used in FAR 12.212. Consistent
with FAR 12.212 and DoD FAR Supp. 227.7202-1 through 227.7202-4, and
notwithstanding any other FAR or other contractual clause to the contrary,
you may provide to Government end user or, if this Agreement is direct,
Government end user will acquire, the Software and Documentation with only
those rights set forth in this Agreement. Use of either the Software or
Documentation or both constitutes agreement by the Government that the
Software and Documentation are "commercial computer software" and
"commercial computer software documentation," and constitutes acceptance of
the rights and restrictions herein.
6. Term And Termination
You may terminate this Agreement at any time, and it will automatically
terminate if you fail to comply with it. If terminated, you must
immediately destroy the Documentation and the Software and all copies you
have made.
7. Audit Rights
LSI shall have the right on reasonable notice, at its own cost and no more
than once per year, directly or through its independent auditors, to
inspect, examine, take extracts, and make copies from, your records to the
extent reasonably necessary to verify your compliance with the terms and
conditions of this Agreement. This right shall apply during the term of
this Agreement and for one (1) year thereafter.
8. Export
You may not export this Software or Documentation, unless you have complied
with applicable United States and foreign government laws.
9. General
You assume full responsibility for the legal and responsible use of the
Software and Documentation. You agree that this Agreement is the complete
agreement between you and LSI (and that any verbal or written statements
that are not reflected in this Agreement and any prior agreements, are
superseded by this Agreement). To be effective, any amendment of this
Agreement must be in writing and signed by both you and LSI. Should any
provisions of this Agreement be held to be unenforceable, then such
provision shall be separable from this Agreement and shall not affect the
remainder of the Agreement. This Agreement shall be governed by California
law, not including its choice of law provisions. The United Nations
Convention on the International Sale of Goods shall not be applied to this
Agreement. All rights in the Software and Documentation not specifically
granted in this Agreement are reserved by LSI or its licensors. The English
language version of this Agreement shall be the official version. The terms
and conditions of this Software License Agreement shall be binding upon you
and your respective heirs, successors and assigns.
10. Survival
The provisions of Sections 2, 3, 4, 7, 8 and 9 shall survive any
termination of this Agreement.
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'.
This source package has been repacked to include binary and documentation
files extracted from the ISO cd.
Here is MD5 of the package used to create this source package:
b7d718ede4ebbc7d31e7cf5c95d5a33d 10.2.1-Codeset-Complete.iso

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
*.txt

60
debian/rules vendored Executable file
View File

@ -0,0 +1,60 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DESTDIR=$(CURDIR)/debian/tw-cli/usr
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
build: build-arch build-indep
build-arch:
build-indep:
clean:
dh_testdir
dh_testroot
rm -f debian/CLIGuide.pdf
dh_clean
install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
ifeq ($(DEB_BUILD_ARCH),amd64)
install -D -m 0755 $(CURDIR)/amd64/tw_cli \
$(DESTDIR)/sbin/tw-cli
endif
ifeq ($(DEB_BUILD_ARCH),i386)
install -D -m 0755 $(CURDIR)/i386/tw_cli \
$(DESTDIR)/sbin/tw-cli
endif
install -D -m 0755 $(CURDIR)/tw_cli.8.nroff \
$(DESTDIR)/share/man/man8/tw-cli.8
install -D -m 0755 $(CURDIR)/tw_cli.8.html \
$(DESTDIR)/share/doc/tw-cli/tw_cli.html
# To create the uu file:
# uuencode debian/CLIGuide.pdf debian/CLIGuide.pdf > debian/CLIGuide.pdf.uu
uudecode debian/CLIGuide.pdf.uu
install -D -m 0644 $(CURDIR)/debian/CLIGuide.pdf \
$(DESTDIR)/share/doc/tw-cli/user_guide.pdf
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
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

4
files.diz Normal file
View File

@ -0,0 +1,4 @@
amd64!tw-cli!2.00.11.022.0!368_tw_cli_debian8_beta.tgz!https://docs.broadcom.com/docs-and-downloads/kb-documents/lsi/368_tw_cli_debian8_beta.tgz!bab255da67e94683d8a900fe630b2cac
i386!tw-cli!2.00.11.022.0!368_tw_cli_debian8_beta.tgz!https://docs.broadcom.com/docs-and-downloads/kb-documents/lsi/368_tw_cli_debian8_beta.tgz!bab255da67e94683d8a900fe630b2cac
amd64!tw-cli!2.00.11.022.0!3DM2_CLI-linux_10-2-2-1_9-5-5-1.zip!https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/3DM2_CLI-linux_10-2-2-1_9-5-5-1.zip!3889909bc63c7f65be89006d22a55b28
i386!tw-cli!2.00.11.022.0!3DM2_CLI-linux_10-2-2-1_9-5-5-1.zip!https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/3DM2_CLI-linux_10-2-2-1_9-5-5-1.zip!3889909bc63c7f65be89006d22a55b28