├── LICENSE ├── README.md ├── black.sh ├── packaging └── debian │ ├── 3dm2 │ ├── 3dm2.8 │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── init │ ├── links │ ├── manpages │ ├── postrm │ └── rules │ ├── 3ware-status │ ├── 3ware-status.3ware-statusd.init │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ └── rules │ ├── aacraid-status │ ├── README.Debian │ ├── aacraid-status.aacraid-statusd.init │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ └── rules │ ├── adaptec-storage-manager-linux-32bit │ ├── README.source │ ├── adaptec-storage-manager-agent.dirs │ ├── adaptec-storage-manager-agent.docs │ ├── adaptec-storage-manager-agent.init │ ├── adaptec-storage-manager-agent.install │ ├── adaptec-storage-manager-agent.links │ ├── adaptec-storage-manager-agent.postinst │ ├── adaptec-storage-manager-agent.postrm │ ├── adaptec-storage-manager-common.dirs │ ├── adaptec-storage-manager-common.docs │ ├── adaptec-storage-manager-common.install │ ├── adaptec-storage-manager-gui.dirs │ ├── adaptec-storage-manager-gui.docs │ ├── adaptec-storage-manager-gui.install │ ├── adaptec-storage-manager-gui.postinst │ ├── adaptec-universal-storage-mib.docs │ ├── adaptec-universal-storage-snmpd.README.Debian │ ├── adaptec-universal-storage-snmpd.default │ ├── adaptec-universal-storage-snmpd.docs │ ├── adaptec-universal-storage-snmpd.init │ ├── adaptec-universal-storage-snmpd.links │ ├── agent-wrapper │ │ └── adaptec-storage-manager-agent │ ├── arcconf.dirs │ ├── arcconf.docs │ ├── arcconf.install │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── gui-wrapper │ │ └── adaptec-storage-manager-gui │ ├── hrconf.dirs │ ├── hrconf.docs │ ├── hrconf.install │ ├── patches │ │ ├── 000-Adaptec_mib_patch.diff │ │ └── series │ ├── rules │ └── source │ │ └── format │ ├── adaptec-storage-manager-linux-64bit │ ├── README.source │ ├── adaptec-storage-manager-agent.dirs │ ├── adaptec-storage-manager-agent.docs │ ├── adaptec-storage-manager-agent.init │ ├── adaptec-storage-manager-agent.install │ ├── adaptec-storage-manager-agent.links │ ├── adaptec-storage-manager-agent.postinst │ ├── adaptec-storage-manager-agent.postrm │ ├── adaptec-storage-manager-common.dirs │ ├── adaptec-storage-manager-common.docs │ ├── adaptec-storage-manager-common.install │ ├── adaptec-storage-manager-gui.dirs │ ├── adaptec-storage-manager-gui.docs │ ├── adaptec-storage-manager-gui.install │ ├── adaptec-storage-manager-gui.postinst │ ├── adaptec-universal-storage-mib.docs │ ├── adaptec-universal-storage-snmpd.README.Debian │ ├── adaptec-universal-storage-snmpd.default │ ├── adaptec-universal-storage-snmpd.docs │ ├── adaptec-universal-storage-snmpd.init │ ├── adaptec-universal-storage-snmpd.links │ ├── agent-wrapper │ │ └── adaptec-storage-manager-agent │ ├── arcconf.dirs │ ├── arcconf.docs │ ├── arcconf.install │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── gui-wrapper │ │ └── adaptec-storage-manager-gui │ ├── hrconf.dirs │ ├── hrconf.docs │ ├── hrconf.install │ ├── patches │ │ ├── 000-Adaptec_mib_patch.diff │ │ └── series │ ├── rules │ └── source │ │ └── format │ ├── arcconf-1.05 │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ └── rules │ ├── arcconf-1.07 │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ └── rules │ ├── arcconf-1.08 │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ └── rules │ ├── arcconf-2.02 │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ └── rules │ ├── cciss-vol-status │ ├── NEWS │ ├── README.Debian │ ├── cciss-vol-status.cciss-vol-statusd.init │ ├── cciss-vol-status.examples │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── cron.daily-example │ ├── docs │ ├── gbp.conf │ ├── patches │ │ ├── fix-manpage │ │ ├── new-ids │ │ └── series │ ├── rules │ ├── source │ │ └── format │ └── watch │ ├── dellmgr │ ├── Dellmgr-changes.txt │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── rules │ └── wrappers │ │ ├── create-device-node │ │ └── dellmgr │ ├── hpacucli │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ ├── hpacucli.wrapper │ ├── hpacuscripting.wrapper │ ├── rules │ ├── source │ │ └── format │ └── upstream_changelog │ ├── lsiutil │ ├── README │ ├── changelog │ ├── changes.txt │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ ├── rules │ └── user_guide.pdf.uu │ ├── megacli │ ├── README.source │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ ├── megacli.wrapper │ ├── rules │ ├── source │ │ └── format │ └── user_guide.pdf │ ├── megaclisas-status │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ ├── megaclisas-status.megaclisas-statusd.init │ └── rules │ ├── megactl │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ ├── examples │ ├── install │ ├── man │ │ ├── megactl.8 │ │ ├── megasasctl.8 │ │ └── megatrace.8 │ ├── manpages │ ├── patches │ │ ├── 000-No_absolute_pathes_in_examples.dpatch │ │ ├── 001-Drop_obsolete_asm_user.h.dpatch │ │ ├── 002-No_enclosure_support.dpatch │ │ ├── 003-Fix_disk_enumeration_loop.dpatch │ │ ├── 004-Fix_build_on_recent_distros.dpatch │ │ └── 00list │ ├── preinst │ ├── rules │ ├── watch │ └── wrappers │ │ ├── create-devices-nodes │ │ ├── megactl │ │ ├── megasasctl │ │ └── megatrace │ ├── megaide-status │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ ├── megaide-status.megaide-statusd.init │ └── rules │ ├── megamgr │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── rules │ └── wrappers │ │ ├── create-device-node │ │ └── megamgr │ ├── megaraid-status │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ ├── megaraid-status.megaraid-statusd.init │ ├── megaraid-status.megaraidsas-statusd.init │ └── rules │ ├── mpt-status │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── docs │ ├── includes │ │ ├── mpi.h │ │ ├── mpi_cnfg.h │ │ ├── mpi_ioc.h │ │ ├── mpi_raid.h │ │ ├── mpi_type.h │ │ └── mptctl.h │ ├── manpages │ ├── mpt-status.init │ ├── mpt-status.install │ ├── patches │ │ ├── 0001-include.headers.patch │ │ ├── 00list │ │ ├── fix_debug_crash.patch │ │ └── use_dpkg-buildflags.patch │ ├── rules │ ├── source │ │ └── format │ └── watch │ ├── sas2ircu-status │ ├── README.Debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── install │ ├── manpages │ ├── rules │ ├── sas2ircu-status.8 │ └── sas2ircu-status.sas2ircu-statusd.init │ ├── sas2ircu │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ └── rules │ ├── spy │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── dirs │ ├── docs │ ├── megaide-spyd.init │ └── rules │ └── tw-cli │ ├── CLIGuide.pdf.uu │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ └── rules ├── pyproject.toml └── wrapper-scripts ├── 3ware-status ├── aacraid-status ├── megaclisas-status ├── megaide-status ├── megaide-status.conf ├── megaraid-status ├── megaraidsas-status └── sas2ircu-status /README.md: -------------------------------------------------------------------------------- 1 | HWRaid 2 | ====== 3 | 4 | Free code from http://hwraid.le-vert.net 5 | -------------------------------------------------------------------------------- /black.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | black wrapper-scripts/* 4 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/3dm2.8: -------------------------------------------------------------------------------- 1 | .TH 3DM2 8 "2012-01-30" "2.11.00.019+10.2.1" "3Ware Disk Management" 2 | 3 | .SH NAME 4 | 3dm2 \- 3ware 3DM 2 Disk Management Utility. 5 | 6 | .SH SYNOPSIS 7 | .B 3dm2 8 | 9 | .SH DESCRIPTION 10 | 3ware Disk Manager 2 (3DM 2), allows you to view the status of and manage 3ware 11 | RAID controllers and associated drives. 3DM 2 runs as a daemon. When it is 12 | running, you can use your browser to view status and perform administrative 13 | tasks locally or remotely. 14 | .PP 15 | This version of 3DM2 supports all known 3Ware controllers. 16 | 17 | .SH OPTIONS 18 | .B 3dm2 19 | has no options. 20 | 21 | .SH CONFIGURATION 22 | In /etc/3dm2/3dm2.conf, the following defaults are set: 23 | .TP 24 | 3DM 2 is listening on . 25 | .TP 26 | Default password for both the user and the administrator is '3ware'. 27 | .TP 28 | Remote access is disabled for security reasons (change 'RemoteAccess 0' to 'RemoteAcces 1' to enable it and restart the 3dm2 daemon). 29 | .PP 30 | 31 | .SH AUTHOR 32 | 3dm2 was written by the AMCC 3DM 2 Development Team. 33 | .PP 34 | This manual page was written by Jonas Genannt for 35 | the Debian project (but may be used by others). 36 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/README.Debian: -------------------------------------------------------------------------------- 1 | 3dm2 for Debian 2 | ---------------- 3 | 4 | 3DM2 is listening on as default. 5 | Please note that, for evident security reason, it's not available from any 6 | remote computer. 7 | You can change this behavior by modifying /etc/3dm2/3dm2.conf and by setting 8 | RemoteAccess to 1. After modifying the value, please, do restart the service. 9 | 10 | Default passwords for both user and administrator are '3ware'. 11 | PLEASE CHANGE THESE PASSWORDS *BEFORE* ENABLING REMOTE ACCESS ! 12 | 13 | -- Adam Cécile (Le_Vert) Mon, 30 Jan 2012 14:28:34 +0100 14 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/changelog: -------------------------------------------------------------------------------- 1 | 3dm2 (2.11.00.019+10.2.1+KB16625-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to add unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 19:29:55 +0200 6 | 7 | 3dm2 (2.11.00.019+10.2.1+KB16625-1) unstable; urgency=low 8 | 9 | * New upstream release: 10 | - Update binaries according to: 11 | http://kb.lsi.com/KnowledgebaseArticle16625.aspx (Closes: #226). 12 | 13 | -- Adam Cécile (Le_Vert) Mon, 24 Sep 2012 21:41:47 +0200 14 | 15 | 3dm2 (2.11.00.019+10.2.1-1) unstable; urgency=low 16 | 17 | * New upstream release. 18 | * Do not use separate tarball for each architecture anymore. 19 | * Improve debian/copyright to explain how to generate sources tarball. 20 | * Update licence and copyright information. 21 | 22 | -- Adam Cécile (Le_Vert) Mon, 30 Jan 2012 14:28:34 +0100 23 | 24 | 3dm2-x86-64 (2.11.00.016+10.2-1) unstable; urgency=low 25 | 26 | * New upstream release. 27 | 28 | -- Adam Cécile (Le_Vert) Mon, 19 Sep 2011 22:04:56 +0200 29 | 30 | 3dm2-x86-64 (2.09.00.009+9.5.2-2) unstable; urgency=low 31 | 32 | * Disable logger which breaks daemon's start. 33 | 34 | -- Adam Cécile (Le_Vert) Wed, 08 Jul 2009 19:24:27 +0200 35 | 36 | 3dm2-x86-64 (2.09.00.009+9.5.2-1) unstable; urgency=low 37 | 38 | * New upstream release. 39 | 40 | -- Adam Cécile (Le_Vert) Tue, 07 Jul 2009 19:57:18 +0200 41 | 42 | 3dm2-x86-64 (2.08.00.008+9.5.1.1-1) unstable; urgency=low 43 | 44 | * New upstream release. 45 | * Better versionning. 46 | 47 | -- Adam Cécile (Le_Vert) Mon, 22 Dec 2008 13:04:31 +0100 48 | 49 | 3dm2-x86-64 (2.07.00.009-1) unstable; urgency=low 50 | 51 | * Initial release. 52 | 53 | -- Adam Cécile (Le_Vert) Tue, 26 Aug 2008 14:10:59 +0200 54 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/control: -------------------------------------------------------------------------------- 1 | Source: 3dm2 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.2 7 | Homepage: http://www.3ware.com 8 | 9 | Package: 3dm2 10 | Architecture: amd64 i386 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, default-mta | exim4 | postfix | sendmail | mail-transport-agent 12 | Description: 3ware 3DM2 RAID HBAs Management Utility 13 | 3ware Disk Manager 2 (3DM2), allows you to view the status of and manage 14 | 3ware RAID controllers and associated drives. 15 | . 16 | 3DM2 runs as a daemon. When it is running, you can use your browser to view 17 | status and perform administrative tasks locally or remotely. 18 | . 19 | It can also be used to report RAID failures by mail. 20 | . 21 | This package supports all known 3Ware controller. 22 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | etc/3dm2 3 | usr/share/3dm2 4 | usr/share/doc/3dm2 5 | var/lock/subsys 6 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/links: -------------------------------------------------------------------------------- 1 | usr/share/doc/3dm2/html/en/OLH_3DM_2_First.html usr/share/doc/3dm2/html/en/index.html 2 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/manpages: -------------------------------------------------------------------------------- 1 | debian/3dm2.8 2 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | case "$1" in 4 | 5 | remove) 6 | # Remove lock if still exists 7 | rm -f /var/lock/subsys/3dm2 8 | ;; 9 | 10 | purge) 11 | # Remove conf and ssl cert 12 | rm -rf /etc/3dm2 13 | ;; 14 | 15 | esac 16 | 17 | #DEBHELPER# 18 | -------------------------------------------------------------------------------- /packaging/debian/3dm2/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DESTDIR = $(CURDIR)/debian/3dm2 7 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | build: build-arch build-indep 20 | build-arch: 21 | build-indep: 22 | 23 | clean: 24 | dh_testdir 25 | dh_testroot 26 | dh_clean 27 | 28 | install: build 29 | dh_testdir 30 | dh_testroot 31 | dh_clean -k 32 | dh_installdirs 33 | # Install data 34 | ifeq ($(DEB_BUILD_ARCH),amd64) 35 | install -m 755 $(CURDIR)/3dm2.x86_64 \ 36 | $(DESTDIR)/usr/sbin/3dm2 37 | endif 38 | ifeq ($(DEB_BUILD_ARCH),i386) 39 | install -m 755 $(CURDIR)/3dm2.x86 \ 40 | $(DESTDIR)/usr/sbin/3dm2 41 | endif 42 | install -m 600 $(CURDIR)/3dm2.conf \ 43 | $(DESTDIR)/etc/3dm2/3dm2.conf 44 | cp -a $(CURDIR)/msg $(DESTDIR)/usr/share/3dm2/ 45 | cp -a $(CURDIR)/help $(DESTDIR)/usr/share/doc/3dm2/html 46 | find $(DESTDIR)/usr/share -type f -exec chmod 644 {} \; 47 | # Fix default conf file 48 | sed -i 's!^EmailEnable .*$$!EmailEnable 1!' \ 49 | $(DESTDIR)/etc/3dm2/3dm2.conf 50 | sed -i 's!^EmailSender .*$$!EmailSender 3dm2!' \ 51 | $(DESTDIR)/etc/3dm2/3dm2.conf 52 | sed -i 's!^EmailServer .*$$!EmailServer 127.0.0.1!' \ 53 | $(DESTDIR)/etc/3dm2/3dm2.conf 54 | sed -i 's!^EmailRecipient .*$$!EmailRecipient root!' \ 55 | $(DESTDIR)/etc/3dm2/3dm2.conf 56 | sed -i 's!^RemoteAccess .*$$!RemoteAccess 0!' \ 57 | $(DESTDIR)/etc/3dm2/3dm2.conf 58 | sed -i 's!^MsgPath .*$$!MsgPath /usr/share/3dm2/msg!' \ 59 | $(DESTDIR)/etc/3dm2/3dm2.conf 60 | sed -i 's!^Help .*$$!Help /usr/share/doc/3dm2/html!' \ 61 | $(DESTDIR)/etc/3dm2/3dm2.conf 62 | sed -i 's!^Logger .*$$!Logger 0!' \ 63 | $(DESTDIR)/etc/3dm2/3dm2.conf 64 | 65 | binary-indep: build install 66 | binary-arch: build install 67 | dh_testdir 68 | dh_testroot 69 | dh_installchangelogs 70 | dh_installdocs 71 | dh_installinit 72 | dh_installman 73 | dh_link 74 | dh_strip 75 | dh_compress -Xusr/share/doc/3dm2/html 76 | dh_fixperms -Xetc/3dm2/3dm2.conf 77 | dh_makeshlibs 78 | dh_installdeb 79 | dh_shlibdeps 80 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 81 | dh_md5sums 82 | dh_builddeb 83 | 84 | binary: binary-indep binary-arch 85 | .PHONY: build clean binary-indep binary-arch binary install 86 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for 3ware-status package 2 | -------------------------------------- 3 | 4 | Possible configuration: 5 | ----------------------- 6 | 7 | If you want to change the default configuration of the init script you 8 | can create the file /etc/default/3ware-statusd and specify the following 9 | values. 10 | 11 | MAILTO= 12 | PERIOD= 13 | REMIND= 14 | 15 | Use MAILTO to specify which user shall get the status mails 16 | (default is root). 17 | 18 | With PERIOD you can fix the seconds between each check. 19 | 20 | And REMIND specifies the seconds between each reminder. 21 | 22 | 23 | -- Adam Cécile (Le_Vert) Wed, 10 Oct 2007 10:19:28 +0200 24 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/changelog: -------------------------------------------------------------------------------- 1 | 3ware-status (0.6) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 20:38:34 +0200 6 | 7 | 3ware-status (0.5) unstable; urgency=medium 8 | 9 | * Fix a nasty typo (Closes: #279). 10 | * Don't treat verifying array as a failure (Closes: #273). 11 | 12 | -- Adam Cécile (Le_Vert) Sat, 25 Jan 2014 23:31:20 +0100 13 | 14 | 3ware-status (0.4) unstable; urgency=low 15 | 16 | * Now handle different tw-cli output for 9000 series cards. 17 | * Will now fail if tw-cli binary cannot be found. 18 | * Add --nagios parameter (run through nrpe). 19 | * Import initscript changes from mpt-status 1.2.0-7 package. 20 | 21 | -- Adam Cécile (Le_Vert) Thu, 02 Feb 2012 11:31:45 +0100 22 | 23 | 3ware-status (0.3) unstable; urgency=low 24 | 25 | * Do not fail with empty ports. 26 | 27 | -- Adam Cécile (Le_Vert) Mon, 16 Aug 2010 09:27:55 +0200 28 | 29 | 3ware-status (0.2) unstable; urgency=low 30 | 31 | * Switch logical disk id and disk id. 32 | 33 | -- Adam Cécile (Le_Vert) Wed, 10 Oct 2007 10:55:57 +0200 34 | 35 | 3ware-status (0.1) unstable; urgency=low 36 | 37 | * Intial release. 38 | 39 | -- Adam Cécile (Le_Vert) Wed, 10 Oct 2007 10:19:28 +0200 40 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/control: -------------------------------------------------------------------------------- 1 | Source: 3ware-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.2 7 | 8 | Package: 3ware-status 9 | Architecture: all 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, python, lsb-base, daemon, bsd-mailx | mailx, tw-cli (>= 9.5.0) 11 | Description: get RAID status out of 3ware Eskalad HW RAID controllers 12 | The 3ware-status software is a query tool to access the running 13 | configuration and status of 3Ware HBAs. 3ware-status allows you to 14 | monitor the health and status of your RAID setup. 15 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Wed, 10 Oct 2007 10:19:28 +0200. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: 7 | Copyright (C) 2007-2012 Adam Cécile (Le_Vert) 8 | 9 | License: 10 | 11 | This program is free software; you can redistribute it and/or 12 | modify it under the terms of the GNU General Public License, version 2 13 | as published by the Free Software Foundation. 14 | 15 | This program is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 18 | See the GNU General Public License for details. 19 | 20 | 21 | On Debian GNU/Linux systems, the complete text of the GNU General Public 22 | License version 2 (or later) see `/usr/share/common-licenses/GPL-2'. 23 | 24 | This package is highly based on Steffen Joeris works done 25 | for the mpt-status package. 26 | Thanks a lot Steffen! 27 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/install: -------------------------------------------------------------------------------- 1 | 3ware-status usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/3ware-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: build-arch build-indep 17 | build-arch: 18 | build-indep: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: build 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | 31 | 32 | binary-arch: build install 33 | binary-indep: build install 34 | dh_testdir 35 | dh_testroot 36 | dh_installchangelogs 37 | dh_installdocs 38 | dh_install 39 | dh_installinit --name 3ware-statusd \ 40 | --update-rcd-params="start 21 2 3 4 5 . stop 19 0 1 6 ." 41 | dh_link 42 | dh_strip 43 | dh_compress 44 | dh_fixperms 45 | dh_installdeb 46 | dh_shlibdeps 47 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 48 | dh_md5sums 49 | dh_builddeb 50 | 51 | binary: binary-indep binary-arch 52 | .PHONY: build clean binary-indep binary-arch binary install 53 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for aacraid-status package 2 | ---------------------------------------- 3 | 4 | Possible configuration: 5 | ---------------------- 6 | 7 | If you want to change the default configuration of the init script you 8 | can create the file /etc/default/aacraid-statusd and specify the following 9 | values. 10 | 11 | MAILTO= 12 | PERIOD= 13 | REMIND= 14 | 15 | Use MAILTO to specify which user shall get the status mails 16 | (default is root). 17 | 18 | With PERIOD you can fix the seconds between each check. 19 | 20 | And REMIND specifies the seconds between each reminder. 21 | 22 | 23 | -- Adam Cécile (Le_Vert) Mon, 24 Sep 2007 15:55:09 +0200 24 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/control: -------------------------------------------------------------------------------- 1 | Source: aacraid-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: aacraid-status 9 | Architecture: all 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, python, lsb-base, daemon, bsd-mailx | mailx, arcconf (>= 7.30.18837) 11 | Description: get RAID status out of Adaptec AACRaid HW RAID controllers 12 | The aacraid-status software is a query tool to access the running 13 | configuration and status of Adaptec SCSI HBAs. aacraid-status allows you to 14 | monitor the health and status of your RAID setup. 15 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Mon, 24 Sep 2007 15:55:09 +0200. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: 7 | Copyright (C) 2007-2009 Adam Cécile (Le_Vert) 8 | 9 | License: 10 | 11 | This program is free software: you can redistribute it and/or modify 12 | it under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 2 of the License, or 14 | (at your option) any later version. 15 | 16 | This program is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 19 | See the GNU General Public License for details. 20 | 21 | On Debian GNU/Linux systems, the complete text of the GNU General 22 | Public License can be found in `/usr/share/common-licenses/GPL'. 23 | 24 | This package is highly based on Steffen Joeris works done 25 | for the mpt-status package. 26 | Thanks a lot Steffen! 27 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/install: -------------------------------------------------------------------------------- 1 | aacraid-status usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/aacraid-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: 17 | build-arch: 18 | build-indep: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | 31 | binary-arch: install 32 | binary-indep: install 33 | dh_testdir 34 | dh_testroot 35 | dh_installchangelogs 36 | dh_installdocs 37 | dh_install 38 | # Must be run after afacli-makedev 39 | dh_installinit --name aacraid-statusd \ 40 | --update-rcd-params="start 21 2 3 4 5 . stop 19 0 1 6 ." 41 | dh_link 42 | dh_strip 43 | dh_compress 44 | dh_fixperms 45 | dh_installdeb 46 | dh_shlibdeps 47 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 48 | dh_md5sums 49 | dh_builddeb 50 | 51 | binary: binary-indep binary-arch 52 | .PHONY: build clean binary-indep binary-arch binary install 53 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/README.source: -------------------------------------------------------------------------------- 1 | adaptec-storage-manager-linux-64bit (7.31.18856-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | 2bdfd5e999a86ac5bd8c7b43d858fdfd asm_linux_x86_v7_31_18856.tgz 6 | 7 | Contained RPM package has been cleaned and turned into a tarball. 8 | See debian/rules repack target for more informations. 9 | 10 | Upstream licence has been reformated using the following command: 11 | 12 | cat /tmp/1 | sed 's!$!\n!' | \ 13 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 14 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 15 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 16 | 17 | -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:28:47 +0200 18 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | var/lib/adaptec-storage-manager-agent 3 | var/log/adaptec-storage-manager-agent 4 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.init: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: adaptec-storage-manager-agent 4 | # Required-Start: $remote_fs 5 | # Required-Stop: $remote_fs 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: Adaptec Storage Manager Agent 9 | # Description: Manage and monitor Adaptec RAID HBAs with one main 10 | # storage-manager-gui. 11 | ### END INIT INFO 12 | 13 | # Author: Adam Cécile (Le_Vert) 14 | 15 | # PATH should only include /usr/* if it runs after the mountnfs.sh script 16 | PATH=/sbin:/usr/sbin:/bin:/usr/bin 17 | DESC="Adaptec Storage Manager Agent" 18 | NAME=adaptec-storage-manager-agent 19 | DAEMON=/usr/sbin/$NAME 20 | DAEMON_ARGS="" 21 | PIDFILE=/var/run/$NAME.pid 22 | SCRIPTNAME=/etc/init.d/$NAME 23 | 24 | # Exit if the package is not installed 25 | [ -x "$DAEMON" ] || exit 0 26 | 27 | # Define LSB log_* functions. 28 | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 29 | . /lib/lsb/init-functions 30 | 31 | # Read configuration variable file if it is present 32 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME 33 | 34 | # 35 | # Function that starts the daemon/service 36 | # 37 | do_start() 38 | { 39 | # Return 40 | # 0 if daemon has been started 41 | # 1 if daemon was already running 42 | # other if daemon could not be started 43 | PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` 44 | if [ -z "$PID" ]; then 45 | $DAEMON $DAEMON_ARGS & 46 | else 47 | return 1 48 | fi 49 | } 50 | 51 | # 52 | # Function that stops the daemon/service 53 | # 54 | do_stop() 55 | { 56 | # Return 57 | # 0 if daemon has been stopped 58 | # 1 if daemon was already stopped 59 | # other if a failure occurred 60 | PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` 61 | if [ ! -z "$PID" ]; then 62 | kill $PID 63 | else 64 | return 1 65 | fi 66 | } 67 | 68 | case "$1" in 69 | start) 70 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 71 | do_start 72 | case "$?" in 73 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 74 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 75 | esac 76 | ;; 77 | stop) 78 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 79 | do_stop 80 | case "$?" in 81 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 82 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 83 | esac 84 | ;; 85 | restart|force-reload) 86 | log_daemon_msg "Restarting $DESC" "$NAME" 87 | do_stop 88 | case "$?" in 89 | 0|1) 90 | do_start 91 | case "$?" in 92 | 0) log_end_msg 0 ;; 93 | 1) log_end_msg 1 ;; # Old process is still running 94 | *) log_end_msg 1 ;; # Failed to start 95 | esac 96 | ;; 97 | *) 98 | # Failed to stop 99 | log_end_msg 1 100 | ;; 101 | esac 102 | ;; 103 | *) 104 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 105 | exit 3 106 | ;; 107 | esac 108 | 109 | : 110 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.install: -------------------------------------------------------------------------------- 1 | debian/agent-wrapper/adaptec-storage-manager-agent usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.links: -------------------------------------------------------------------------------- 1 | var/lib/adaptec-storage-manager-agent/RaidAgnt.pps etc/adaptec-storage-manager-agent.conf 2 | var/lib/adaptec-storage-manager-agent/RaidErr.log var/log/adaptec-storage-manager-agent/RaidErr.log 3 | var/lib/adaptec-storage-manager-agent/RaidErrA.log var/log/adaptec-storage-manager-agent/RaidErrA.log 4 | var/lib/adaptec-storage-manager-agent/RaidEvtA.log var/log/adaptec-storage-manager-agent/RaidEvtA.log 5 | var/lib/adaptec-storage-manager-agent/RaidJob.ser var/log/adaptec-storage-manager-agent/RaidJob.ser 6 | var/lib/adaptec-storage-manager-agent/RaidNLst.ser var/log/adaptec-storage-manager-agent/RaidNLst.ser 7 | var/lib/adaptec-storage-manager-agent/RaidSLst.ser var/log/adaptec-storage-manager-agent/RaidSLst.ser 8 | var/lib/adaptec-storage-manager-agent/RaidSMTP.ser var/log/adaptec-storage-manager-agent/RaidSMTP.ser 9 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | configure) 8 | chown root:adm /var/log/adaptec-storage-manager-agent 9 | chmod 750 /var/log/adaptec-storage-manager-agent 10 | # Dirty hack 11 | test -e /bin/sort || ln -s /usr/bin/sort /bin/sort 12 | ;; 13 | 14 | esac 15 | 16 | #DEBHELPER# 17 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-agent.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | purge) 8 | # Remove lib dir 9 | rm -rf /var/lib/adaptec-storage-manager-agent 10 | ;; 11 | 12 | esac 13 | 14 | #DEBHELPER# 15 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-common.dirs: -------------------------------------------------------------------------------- 1 | usr/lib/adaptec-storage-manager 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-common.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-common.install: -------------------------------------------------------------------------------- 1 | StorMan/RaidMan.jar usr/lib/adaptec-storage-manager 2 | StorMan/libSTOR*.so usr/lib/adaptec-storage-manager 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-gui.dirs: -------------------------------------------------------------------------------- 1 | usr/bin 2 | usr/share/adaptec-storage-manager-gui 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-gui.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-gui.install: -------------------------------------------------------------------------------- 1 | StorMan/help usr/share/adaptec-storage-manager-gui 2 | debian/gui-wrapper/adaptec-storage-manager-gui usr/bin 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-storage-manager-gui.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | configure) 8 | # Dirty hack 9 | test -e /bin/sort || ln -s /usr/bin/sort /bin/sort 10 | ;; 11 | 12 | esac 13 | 14 | #DEBHELPER# 15 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-mib.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-snmpd.README.Debian: -------------------------------------------------------------------------------- 1 | adaptec-universal-storage-snmpd for Debian 2 | ========================================== 3 | 4 | Required SNMPd configuration 5 | ---------------------------- 6 | 7 | After installing this package, some additional configuration is required to 8 | connect it to snmp daemon. 9 | 10 | Please add the following lines /etc/snmp/snmpd.conf: 11 | master agentx 12 | agentxsocket /var/agentx/master 13 | 14 | Then you need to enable aus-snmpd. Set ENABLE to true in 15 | /etc/default/adaptec-universal-storage-snmpd 16 | 17 | You can now restart both snmpd and adaptec-universal-storage-snmpd services. 18 | 19 | All information can be read by running (may depends of your SNMPd config): 20 | snmpwalk -v2c -c public -m ADAPTEC-UNIVERSAL-STORAGE-MIB 127.0.0.1 .1.3.6.1.4.1.795 21 | 22 | You SHOULD really install adaptec-universal-storage-mib package to get 23 | "human-readable" information. 24 | 25 | Starting Squeeze release, Debian doesn't include default snmpb mibs anymore. 26 | Please install "snmp-mibs-downloader" package. 27 | 28 | -- Adam Cécile (Le_Vert) Fri, 13 Feb 2009 23:54:46 +0100 29 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-snmpd.default: -------------------------------------------------------------------------------- 1 | # This connector requires additional configuration to work. 2 | # Please read /usr/share/doc/adaptec-universal-storage-snmpd/README.Debian 3 | # And then set ENABLE to "true". 4 | 5 | ENABLE=false 6 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-snmpd.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-snmpd.init: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: adaptec-universal-storage-snmpd 4 | # Required-Start: $local_fs $remote_fs snmpd 5 | # Required-Stop: $local_fs $remote_fs snmpd 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: Adaptec Storage Manager SNMP connector 9 | # Description: aus-snmpd connects the SNMP daemon to Adaptec Storage 10 | # Manager 11 | ### END INIT INFO 12 | 13 | # Author: Adam Cécile (Le_Vert) 14 | 15 | # PATH should only include /usr/* if it runs after the mountnfs.sh script 16 | PATH=/sbin:/usr/sbin:/bin:/usr/bin 17 | DESC="Adaptec Storage Manager SNMP connector" 18 | NAME=adaptec-universal-storage-snmpd 19 | DAEMON=/usr/sbin/$NAME 20 | PIDFILE=/var/run/$NAME.pid 21 | SCRIPTNAME=/etc/init.d/$NAME 22 | ENABLE=true 23 | 24 | # Exit if the package is not installed 25 | [ -x "$DAEMON" ] || exit 0 26 | 27 | # Read configuration variable file if it is present 28 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME 29 | 30 | # If not enabled then exit gracefully 31 | [ "$ENABLE" = "true" ] || exit 0 32 | 33 | # Load the VERBOSE setting and other rcS variables 34 | . /lib/init/vars.sh 35 | 36 | # Define LSB log_* functions. 37 | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 38 | . /lib/lsb/init-functions 39 | 40 | do_start() 41 | { 42 | # Return 43 | # 0 if daemon has been started 44 | # 1 if daemon was already running 45 | # 2 if daemon could not be started 46 | # Sleep five seconds to let snmpd and asm start 47 | sleep 5 48 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ 49 | || return 1 50 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --make-pidfile --background -- -f \ 51 | || return 2 52 | } 53 | 54 | do_stop() 55 | { 56 | # Return 57 | # 0 if daemon has been stopped 58 | # 1 if daemon was already stopped 59 | # 2 if daemon could not be stopped 60 | # other if a failure occurred 61 | start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal 9 62 | RETVAL="$?" 63 | [ "$RETVAL" = 2 ] && return 2 64 | # Many daemons don't delete their pidfiles when they exit. 65 | rm -f $PIDFILE 66 | return "$RETVAL" 67 | } 68 | 69 | case "$1" in 70 | start) 71 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 72 | do_start 73 | case "$?" in 74 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 75 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 76 | esac 77 | ;; 78 | stop) 79 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 80 | do_stop 81 | case "$?" in 82 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 83 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 84 | esac 85 | ;; 86 | restart|force-reload) 87 | log_daemon_msg "Restarting $DESC" "$NAME" 88 | do_stop 89 | case "$?" in 90 | 0|1) 91 | do_start 92 | case "$?" in 93 | 0) log_end_msg 0 ;; 94 | 1) log_end_msg 1 ;; # Old process is still running 95 | *) log_end_msg 1 ;; # Failed to start 96 | esac 97 | ;; 98 | *) 99 | # Failed to stop 100 | log_end_msg 1 101 | ;; 102 | esac 103 | ;; 104 | *) 105 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 106 | exit 3 107 | ;; 108 | esac 109 | 110 | : 111 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/adaptec-universal-storage-snmpd.links: -------------------------------------------------------------------------------- 1 | # Hardcoded into the binary :/ 2 | /var/lib/adaptec-storage-manager-agent/RaidAgnt.pps /usr/StorMan/RaidAgnt.pps 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/agent-wrapper/adaptec-storage-manager-agent: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Now we can run storage manager withing this directory 4 | 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 $* & 5 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/arcconf.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/arcconf.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/arcconf.install: -------------------------------------------------------------------------------- 1 | StorMan/arcconf usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/changelog: -------------------------------------------------------------------------------- 1 | adaptec-storage-manager-linux-32bit (7.31.18856-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | * Add alternative for JRE for newer distributions. 5 | 6 | -- Adam Cecile Tue, 02 Jul 2019 21:38:02 +0200 7 | 8 | adaptec-storage-manager-linux-32bit (7.31.18856-1) unstable; urgency=low 9 | 10 | * New upstream release. 11 | * Rewrite debian/copyright to use new machine readable format. 12 | 13 | -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:28:47 +0200 14 | 15 | adaptec-storage-manager-linux-32bit (7.30.18837-1) unstable; urgency=low 16 | 17 | * New upstream release (Closes: #91). 18 | * Fix SNMP mib and its README.Debian (Closes: #95). 19 | 20 | -- Adam Cécile (Le_Vert) Sat, 28 Jan 2012 16:43:27 +0100 21 | 22 | adaptec-storage-manager-linux-32bit (7.00.18781-1) unstable; urgency=low 23 | 24 | * New upstream release (Closes: #28, #29). 25 | * Fix SNMP agent packaging. 26 | 27 | -- Adam Cécile (Le_Vert) Sat, 10 Sep 2011 23:20:24 +0200 28 | 29 | adaptec-storage-manager-linux-32bit (6.50.18570-1) unstable; urgency=low 30 | 31 | * New upstream release. 32 | * Rewrite most of the packaging to fit current standards. 33 | * Drop Sarge compatibility. 34 | * Force IPV4, IPV6 support is broken. 35 | 36 | -- Adam Cécile (Le_Vert) Wed, 18 Aug 2010 11:37:48 +0200 37 | 38 | adaptec-storage-manager-linux-32bit (6.10.18451-1) unstable; urgency=low 39 | 40 | * New upstream release. 41 | * Update download link and homepage. 42 | * Update my own copyright statement. 43 | * Bump Standards-Version to 3.8.2. 44 | 45 | -- Adam Cécile (Le_Vert) Fri, 10 Jul 2009 15:08:49 +0200 46 | 47 | adaptec-storage-manager-linux-32bit (6.10.18359-1) unstable; urgency=low 48 | 49 | * New upstream release. 50 | * New repack target in debian/rules. 51 | * Add libstdc++5 build-dep (required for Lenny build). 52 | * Add libwrap0 build-dep (was missing). 53 | * Two new awesome packages added: 54 | - adaptec-universal-storage-snmpd: contains a connector between SNMP 55 | daemon and Adaptec Storage Manager 56 | - adaptec-universal-storage-mibs: the associated MIB 57 | 58 | -- Adam Cécile (Le_Vert) Fri, 13 Feb 2009 23:54:46 +0100 59 | 60 | adaptec-storage-manager-linux-32bit (6.10.18350-1) unstable; urgency=low 61 | 62 | * New upstream release. 63 | * Replace libstdc++5-3.3-dev bdep by libstdc++5 rdep (dev packages doesn't 64 | exist anymore in Debian Lenny). 65 | 66 | -- Adam Cécile (Le_Vert) Mon, 22 Dec 2008 21:16:50 +0100 67 | 68 | adaptec-storage-manager-linux-32bit (5.20.17414-1) unstable; urgency=low 69 | 70 | * Initial release. 71 | 72 | -- Adam Cécile (Le_Vert) Wed, 13 Feb 2008 13:48:34 +0100 73 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/gui-wrapper/adaptec-storage-manager-gui: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Well, everything must be in current directory 4 | # Let's create this one first 5 | test -d $HOME/.adaptec-storage-manager-gui || mkdir $HOME/.adaptec-storage-manager-gui 6 | 7 | # We should have doc here 8 | test -L $HOME/.adaptec-storage-manager-gui/help || ln -s /usr/share/adaptec-storage-manager-gui/help $HOME/.adaptec-storage-manager-gui/help 9 | 10 | # Now we can run storage manager withing this directory 11 | 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 $* 12 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/hrconf.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/hrconf.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/hrconf.install: -------------------------------------------------------------------------------- 1 | StorMan/hrconf usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/patches/000-Adaptec_mib_patch.diff: -------------------------------------------------------------------------------- 1 | --- 1/StorMan/aus.mib 2012-01-28 16:43:00.000000000 +0100 2 | +++ /tmp/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt 2012-01-28 17:58:10.929553485 +0100 3 | @@ -177,7 +177,7 @@ 4 | { 5 | unknown(0), 6 | okay(1), 7 | - charging/notReady(2), 8 | + charging(2), 9 | failed(3), 10 | notInstalled(4) 11 | } 12 | @@ -568,7 +568,7 @@ 13 | SYNTAX INTEGER 14 | { 15 | Dynamic(0), 16 | - OLTP/Database(3) 17 | + OLTPDatabase(3) 18 | } 19 | ACCESS read-only 20 | STATUS mandatory 21 | @@ -3054,7 +3054,7 @@ 22 | ausArrayMaxCachePreferredCacheSetting OBJECT-TYPE 23 | SYNTAX INTEGER 24 | { 25 | - Not Supported(0), 26 | + NotSupported(0), 27 | Disabled(1), 28 | Enabled(2) 29 | } 30 | @@ -3068,7 +3068,7 @@ 31 | ausArrayMaxCacheSetting OBJECT-TYPE 32 | SYNTAX INTEGER 33 | { 34 | - Not Supported(0), 35 | + NotSupported(0), 36 | Disabled(1), 37 | Enabled(2) 38 | } 39 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/patches/series: -------------------------------------------------------------------------------- 1 | 000-Adaptec_mib_patch.diff 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Quilt patch system 4 | include /usr/share/quilt/quilt.make 5 | 6 | # Uncomment this to turn on verbose mode. 7 | #export DH_VERBOSE=1 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | # Example: 20 | # debian/rules repack FILE=../repack/manager/StorMan-7.31.i386.rpm VERSION=7.31.18856 21 | repack: 22 | BASE_NAME=adaptec-storage-manager-linux-32bit &&\ 23 | ABS_FILE=`readlink -f $(FILE)` &&\ 24 | TMP_DIR=`mktemp -d` &&\ 25 | # VERSION=`basename $(FILE) | sed 's!^.*StorMan\-\(.*\)\.i386\.rpm$$!\1!'` &&\ 26 | cd $$TMP_DIR && rpm2cpio $$ABS_FILE | cpio -i --make-directories &&\ 27 | rm -vf $$TMP_DIR/usr/StorMan/sun-jre*.tgz &&\ 28 | cd $$TMP_DIR && tar czf $$BASE_NAME-$$VERSION.tar.gz usr &&\ 29 | mv $$TMP_DIR/$$BASE_NAME-$$VERSION.tar.gz /tmp/ &&\ 30 | rm -rf $$TMP_DIR &&\ 31 | echo "-----------------------------------------" &&\ 32 | echo /tmp/$$BASE_NAME-$$VERSION.tar.gz 33 | 34 | build: build-arch build-indep patch 35 | build-arch: 36 | build-indep: 37 | 38 | clean: unpatch 39 | dh_testdir 40 | dh_testroot 41 | dh_clean 42 | 43 | install: 44 | dh_testdir 45 | dh_testroot 46 | dh_clean -k 47 | dh_installdirs 48 | install -D -m 755 StorMan/aus-snmpd \ 49 | $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd 50 | # Do not try to fix the MIBS path. It segfaults when something is found... 51 | # Otherwise it just shows warning but seem to work as expected. 52 | # 53 | # Fix mibs path INSIDE the binary itself (OMG :/) 54 | #sed -i 's!/usr/local/share/snmp/mibs!/usr/share/./././snmp/mibs!' \ 55 | # $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd 56 | install -D -m 644 StorMan/aus.mib \ 57 | $(CURDIR)/debian/adaptec-universal-storage-mib/usr/share/snmp/mibs/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt 58 | dh_install 59 | 60 | binary-indep: build install 61 | binary-arch: build install 62 | dh_testdir 63 | dh_testroot 64 | dh_installchangelogs 65 | dh_installdocs 66 | dh_installinit -Nadaptec-universal-storage-snmpd 67 | # Priority 21, so it will start after snmpd 68 | dh_installinit -padaptec-universal-storage-snmpd -- defaults 21 69 | dh_link 70 | dh_compress 71 | dh_fixperms 72 | dh_makeshlibs 73 | dh_strip 74 | dh_installdeb 75 | dh_shlibdeps 76 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 77 | dh_md5sums 78 | dh_builddeb 79 | 80 | binary: binary-arch binary-indep 81 | .PHONY: build clean binary-indep binary-arch binary install 82 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-32bit/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/README.source: -------------------------------------------------------------------------------- 1 | adaptec-storage-manager-linux-64bit (7.31.18856-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | f9f13c1f9223da6138abc2c8bdadd54a asm_linux_x64_v7_31_18856.tgz 6 | 7 | Contained RPM package has been cleaned and turned into a tarball. 8 | See debian/rules repack target for more informations. 9 | 10 | Upstream licence has been reformated using the following command: 11 | 12 | cat /tmp/1 | sed 's!$!\n!' | \ 13 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 14 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 15 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 16 | 17 | -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:10:02 +0200 18 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | var/lib/adaptec-storage-manager-agent 3 | var/log/adaptec-storage-manager-agent 4 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.init: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: adaptec-storage-manager-agent 4 | # Required-Start: $remote_fs 5 | # Required-Stop: $remote_fs 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: Adaptec Storage Manager Agent 9 | # Description: Manage and monitor Adaptec RAID HBAs with one main 10 | # storage-manager-gui. 11 | ### END INIT INFO 12 | 13 | # Author: Adam Cécile (Le_Vert) 14 | 15 | # PATH should only include /usr/* if it runs after the mountnfs.sh script 16 | PATH=/sbin:/usr/sbin:/bin:/usr/bin 17 | DESC="Adaptec Storage Manager Agent" 18 | NAME=adaptec-storage-manager-agent 19 | DAEMON=/usr/sbin/$NAME 20 | DAEMON_ARGS="" 21 | PIDFILE=/var/run/$NAME.pid 22 | SCRIPTNAME=/etc/init.d/$NAME 23 | 24 | # Exit if the package is not installed 25 | [ -x "$DAEMON" ] || exit 0 26 | 27 | # Define LSB log_* functions. 28 | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 29 | . /lib/lsb/init-functions 30 | 31 | # Read configuration variable file if it is present 32 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME 33 | 34 | # 35 | # Function that starts the daemon/service 36 | # 37 | do_start() 38 | { 39 | # Return 40 | # 0 if daemon has been started 41 | # 1 if daemon was already running 42 | # other if daemon could not be started 43 | PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` 44 | if [ -z "$PID" ]; then 45 | $DAEMON $DAEMON_ARGS & 46 | else 47 | return 1 48 | fi 49 | } 50 | 51 | # 52 | # Function that stops the daemon/service 53 | # 54 | do_stop() 55 | { 56 | # Return 57 | # 0 if daemon has been stopped 58 | # 1 if daemon was already stopped 59 | # other if a failure occurred 60 | PID=`ps aux | grep '/usr/lib/adaptec-storage-manager/RaidMan.jar' | grep -v grep | awk '{ print $2 }' | tr "\n" " "` 61 | if [ ! -z "$PID" ]; then 62 | kill $PID 63 | else 64 | return 1 65 | fi 66 | } 67 | 68 | case "$1" in 69 | start) 70 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 71 | do_start 72 | case "$?" in 73 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 74 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 75 | esac 76 | ;; 77 | stop) 78 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 79 | do_stop 80 | case "$?" in 81 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 82 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 83 | esac 84 | ;; 85 | restart|force-reload) 86 | log_daemon_msg "Restarting $DESC" "$NAME" 87 | do_stop 88 | case "$?" in 89 | 0|1) 90 | do_start 91 | case "$?" in 92 | 0) log_end_msg 0 ;; 93 | 1) log_end_msg 1 ;; # Old process is still running 94 | *) log_end_msg 1 ;; # Failed to start 95 | esac 96 | ;; 97 | *) 98 | # Failed to stop 99 | log_end_msg 1 100 | ;; 101 | esac 102 | ;; 103 | *) 104 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 105 | exit 3 106 | ;; 107 | esac 108 | 109 | : 110 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.install: -------------------------------------------------------------------------------- 1 | debian/agent-wrapper/adaptec-storage-manager-agent usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.links: -------------------------------------------------------------------------------- 1 | var/lib/adaptec-storage-manager-agent/RaidAgnt.pps etc/adaptec-storage-manager-agent.conf 2 | var/lib/adaptec-storage-manager-agent/RaidErr.log var/log/adaptec-storage-manager-agent/RaidErr.log 3 | var/lib/adaptec-storage-manager-agent/RaidErrA.log var/log/adaptec-storage-manager-agent/RaidErrA.log 4 | var/lib/adaptec-storage-manager-agent/RaidEvtA.log var/log/adaptec-storage-manager-agent/RaidEvtA.log 5 | var/lib/adaptec-storage-manager-agent/RaidJob.ser var/log/adaptec-storage-manager-agent/RaidJob.ser 6 | var/lib/adaptec-storage-manager-agent/RaidNLst.ser var/log/adaptec-storage-manager-agent/RaidNLst.ser 7 | var/lib/adaptec-storage-manager-agent/RaidSLst.ser var/log/adaptec-storage-manager-agent/RaidSLst.ser 8 | var/lib/adaptec-storage-manager-agent/RaidSMTP.ser var/log/adaptec-storage-manager-agent/RaidSMTP.ser 9 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | configure) 8 | chown root:adm /var/log/adaptec-storage-manager-agent 9 | chmod 750 /var/log/adaptec-storage-manager-agent 10 | # Dirty hack 11 | test -e /bin/sort || ln -s /usr/bin/sort /bin/sort 12 | ;; 13 | 14 | esac 15 | 16 | #DEBHELPER# 17 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-agent.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | purge) 8 | # Remove lib dir 9 | rm -rf /var/lib/adaptec-storage-manager-agent 10 | ;; 11 | 12 | esac 13 | 14 | #DEBHELPER# 15 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.dirs: -------------------------------------------------------------------------------- 1 | usr/lib/adaptec-storage-manager 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-common.install: -------------------------------------------------------------------------------- 1 | StorMan/RaidMan.jar usr/lib/adaptec-storage-manager 2 | StorMan/libSTOR*.so usr/lib/adaptec-storage-manager 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.dirs: -------------------------------------------------------------------------------- 1 | usr/bin 2 | usr/share/adaptec-storage-manager-gui 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.install: -------------------------------------------------------------------------------- 1 | StorMan/help usr/share/adaptec-storage-manager-gui 2 | debian/gui-wrapper/adaptec-storage-manager-gui usr/bin 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-storage-manager-gui.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | 7 | configure) 8 | # Dirty hack 9 | test -e /bin/sort || ln -s /usr/bin/sort /bin/sort 10 | ;; 11 | 12 | esac 13 | 14 | #DEBHELPER# 15 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-mib.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.README.Debian: -------------------------------------------------------------------------------- 1 | adaptec-universal-storage-snmpd for Debian 2 | ========================================== 3 | 4 | Required SNMPd configuration 5 | ---------------------------- 6 | 7 | After installing this package, some additional configuration is required to 8 | connect it to snmp daemon. 9 | 10 | Please add the following lines /etc/snmp/snmpd.conf: 11 | master agentx 12 | agentxsocket /var/agentx/master 13 | 14 | Then you need to enable aus-snmpd. Set ENABLE to true in 15 | /etc/default/adaptec-universal-storage-snmpd 16 | 17 | You can now restart both snmpd and adaptec-universal-storage-snmpd services. 18 | 19 | All information can be read by running (may depends of your SNMPd config): 20 | snmpwalk -v2c -c public -m ADAPTEC-UNIVERSAL-STORAGE-MIB 127.0.0.1 .1.3.6.1.4.1.795 21 | 22 | You SHOULD really install adaptec-universal-storage-mib package to get 23 | "human-readable" information. 24 | 25 | Starting Squeeze release, Debian doesn't include default snmpb mibs anymore. 26 | Please install "snmp-mibs-downloader" package. 27 | 28 | -- Adam Cécile (Le_Vert) Fri, 13 Feb 2009 23:54:46 +0100 29 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.default: -------------------------------------------------------------------------------- 1 | # This connector requires additional configuration to work. 2 | # Please read /usr/share/doc/adaptec-universal-storage-snmpd/README.Debian 3 | # And then set ENABLE to "true". 4 | 5 | ENABLE=false 6 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.init: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: adaptec-universal-storage-snmpd 4 | # Required-Start: $local_fs $remote_fs snmpd 5 | # Required-Stop: $local_fs $remote_fs snmpd 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: Adaptec Storage Manager SNMP connector 9 | # Description: aus-snmpd connects the SNMP daemon to Adaptec Storage 10 | # Manager 11 | ### END INIT INFO 12 | 13 | # Author: Adam Cécile (Le_Vert) 14 | 15 | # PATH should only include /usr/* if it runs after the mountnfs.sh script 16 | PATH=/sbin:/usr/sbin:/bin:/usr/bin 17 | DESC="Adaptec Storage Manager SNMP connector" 18 | NAME=adaptec-universal-storage-snmpd 19 | DAEMON=/usr/sbin/$NAME 20 | PIDFILE=/var/run/$NAME.pid 21 | SCRIPTNAME=/etc/init.d/$NAME 22 | ENABLE=true 23 | 24 | # Exit if the package is not installed 25 | [ -x "$DAEMON" ] || exit 0 26 | 27 | # Read configuration variable file if it is present 28 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME 29 | 30 | # If not enabled then exit gracefully 31 | [ "$ENABLE" = "true" ] || exit 0 32 | 33 | # Load the VERBOSE setting and other rcS variables 34 | . /lib/init/vars.sh 35 | 36 | # Define LSB log_* functions. 37 | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 38 | . /lib/lsb/init-functions 39 | 40 | do_start() 41 | { 42 | # Return 43 | # 0 if daemon has been started 44 | # 1 if daemon was already running 45 | # 2 if daemon could not be started 46 | # Sleep five seconds to let snmpd and asm start 47 | sleep 5 48 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ 49 | || return 1 50 | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --make-pidfile --background -- -f \ 51 | || return 2 52 | } 53 | 54 | do_stop() 55 | { 56 | # Return 57 | # 0 if daemon has been stopped 58 | # 1 if daemon was already stopped 59 | # 2 if daemon could not be stopped 60 | # other if a failure occurred 61 | start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal 9 62 | RETVAL="$?" 63 | [ "$RETVAL" = 2 ] && return 2 64 | # Many daemons don't delete their pidfiles when they exit. 65 | rm -f $PIDFILE 66 | return "$RETVAL" 67 | } 68 | 69 | case "$1" in 70 | start) 71 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 72 | do_start 73 | case "$?" in 74 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 75 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 76 | esac 77 | ;; 78 | stop) 79 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 80 | do_stop 81 | case "$?" in 82 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 83 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 84 | esac 85 | ;; 86 | restart|force-reload) 87 | log_daemon_msg "Restarting $DESC" "$NAME" 88 | do_stop 89 | case "$?" in 90 | 0|1) 91 | do_start 92 | case "$?" in 93 | 0) log_end_msg 0 ;; 94 | 1) log_end_msg 1 ;; # Old process is still running 95 | *) log_end_msg 1 ;; # Failed to start 96 | esac 97 | ;; 98 | *) 99 | # Failed to stop 100 | log_end_msg 1 101 | ;; 102 | esac 103 | ;; 104 | *) 105 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 106 | exit 3 107 | ;; 108 | esac 109 | 110 | : 111 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/adaptec-universal-storage-snmpd.links: -------------------------------------------------------------------------------- 1 | # Hardcoded into the binary :/ 2 | /var/lib/adaptec-storage-manager-agent/RaidAgnt.pps /usr/StorMan/RaidAgnt.pps 3 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/agent-wrapper/adaptec-storage-manager-agent: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Now we can run storage manager withing this directory 4 | 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 $* & 5 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/arcconf.install: -------------------------------------------------------------------------------- 1 | StorMan/arcconf usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/changelog: -------------------------------------------------------------------------------- 1 | adaptec-storage-manager-linux-64bit (7.31.18856-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | * Add alternative for JRE for newer distributions. 5 | 6 | -- Adam Cecile Tue, 02 Jul 2019 21:50:07 +0200 7 | 8 | adaptec-storage-manager-linux-64bit (7.31.18856-1) unstable; urgency=low 9 | 10 | * New upstream release. 11 | * Rewrite debian/copyright to use new machine readable format. 12 | 13 | -- Adam Cécile (Le_Vert) Tue, 21 Aug 2012 23:10:02 +0200 14 | 15 | adaptec-storage-manager-linux-64bit (7.30.18837-1) unstable; urgency=low 16 | 17 | * New upstream release (Closes: #91). 18 | * Fix SNMP mib and its README.Debian (Closes: #95). 19 | 20 | -- Adam Cécile (Le_Vert) Sat, 28 Jan 2012 16:26:10 +0100 21 | 22 | adaptec-storage-manager-linux-64bit (7.00.18781-1) unstable; urgency=low 23 | 24 | * New upstream release (Closes: #28, #29). 25 | * Fix SNMP agent packaging. 26 | 27 | -- Adam Cécile (Le_Vert) Sat, 10 Sep 2011 23:25:17 +0200 28 | 29 | adaptec-storage-manager-linux-64bit (6.50.18570-1) unstable; urgency=low 30 | 31 | * New upstream release. 32 | * Rewrite most of the packaging to fit current standards. 33 | * Drop Sarge compatibility. 34 | * Force IPV4, IPV6 support is broken. 35 | 36 | -- Adam Cécile (Le_Vert) Wed, 18 Aug 2010 11:54:15 +0200 37 | 38 | adaptec-storage-manager-linux-64bit (6.10.18451-1) unstable; urgency=low 39 | 40 | * New upstream release. 41 | * Two new awesome packages added: 42 | - adaptec-universal-storage-snmpd: contains a connector between SNMP 43 | daemon and Adaptec Storage Manager 44 | - adaptec-universal-storage-mibs: the associated MIB 45 | It was only available on i386 before. 46 | * Update download link and homepage. 47 | * Update my own copyright statement. 48 | * Bump Standards-Version to 3.8.2. 49 | 50 | -- Adam Cécile (Le_Vert) Fri, 10 Jul 2009 14:56:30 +0200 51 | 52 | adaptec-storage-manager-linux-64bit (6.10.18359-1) unstable; urgency=low 53 | 54 | * New upstream release. 55 | * New repack target in debian/rules. 56 | * Add libstdc++5 build-dep (required for Lenny build). 57 | * Add libwrap0 build-dep (was missing). 58 | 59 | -- Adam Cécile (Le_Vert) Sat, 14 Feb 2009 10:35:30 +0100 60 | 61 | adaptec-storage-manager-linux-64bit (6.10.18350-1) unstable; urgency=low 62 | 63 | * New upstream release. 64 | * Replace libstdc++5-3.3-dev bdep by libstdc++5 rdep (dev packages doesn't 65 | exist anymore in Debian Lenny). 66 | 67 | -- Adam Cécile (Le_Vert) Mon, 22 Dec 2008 21:01:05 +0100 68 | 69 | adaptec-storage-manager-linux-64bit (5.20.17414-1) unstable; urgency=low 70 | 71 | * Initial release. 72 | 73 | -- Adam Cécile (Le_Vert) Wed, 13 Feb 2008 13:48:34 +0100 74 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/gui-wrapper/adaptec-storage-manager-gui: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Well, everything must be in current directory 4 | # Let's create this one first 5 | test -d $HOME/.adaptec-storage-manager-gui || mkdir $HOME/.adaptec-storage-manager-gui 6 | 7 | # We should have doc here 8 | test -L $HOME/.adaptec-storage-manager-gui/help || ln -s /usr/share/adaptec-storage-manager-gui/help $HOME/.adaptec-storage-manager-gui/help 9 | 10 | # Now we can run storage manager withing this directory 11 | 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 $* 12 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.docs: -------------------------------------------------------------------------------- 1 | StorMan/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/hrconf.install: -------------------------------------------------------------------------------- 1 | StorMan/hrconf usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/patches/000-Adaptec_mib_patch.diff: -------------------------------------------------------------------------------- 1 | --- 1/StorMan/aus.mib 2012-01-28 16:43:00.000000000 +0100 2 | +++ /tmp/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt 2012-01-28 17:58:10.929553485 +0100 3 | @@ -177,7 +177,7 @@ 4 | { 5 | unknown(0), 6 | okay(1), 7 | - charging/notReady(2), 8 | + charging(2), 9 | failed(3), 10 | notInstalled(4) 11 | } 12 | @@ -568,7 +568,7 @@ 13 | SYNTAX INTEGER 14 | { 15 | Dynamic(0), 16 | - OLTP/Database(3) 17 | + OLTPDatabase(3) 18 | } 19 | ACCESS read-only 20 | STATUS mandatory 21 | @@ -3054,7 +3054,7 @@ 22 | ausArrayMaxCachePreferredCacheSetting OBJECT-TYPE 23 | SYNTAX INTEGER 24 | { 25 | - Not Supported(0), 26 | + NotSupported(0), 27 | Disabled(1), 28 | Enabled(2) 29 | } 30 | @@ -3068,7 +3068,7 @@ 31 | ausArrayMaxCacheSetting OBJECT-TYPE 32 | SYNTAX INTEGER 33 | { 34 | - Not Supported(0), 35 | + NotSupported(0), 36 | Disabled(1), 37 | Enabled(2) 38 | } 39 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/patches/series: -------------------------------------------------------------------------------- 1 | 000-Adaptec_mib_patch.diff 2 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Quilt patch system 4 | include /usr/share/quilt/quilt.make 5 | 6 | # Uncomment this to turn on verbose mode. 7 | #export DH_VERBOSE=1 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | # Example: 20 | # debian/rules repack FILE=../repack/manager/StorMan-7.31.x86_64.rpm VERSION=7.31.18856 21 | repack: 22 | BASE_NAME=adaptec-storage-manager-linux-64bit &&\ 23 | ABS_FILE=`readlink -f $(FILE)` &&\ 24 | TMP_DIR=`mktemp -d` &&\ 25 | # VERSION=`basename $(FILE) | sed 's!^.*StorMan\-\(.*\)\.x86_64\.rpm$$!\1!'` &&\ 26 | cd $$TMP_DIR && rpm2cpio $$ABS_FILE | cpio -i --make-directories &&\ 27 | rm -vf $$TMP_DIR/usr/StorMan/sun-jre*.tgz &&\ 28 | cd $$TMP_DIR && tar czf $$BASE_NAME-$$VERSION.tar.gz usr &&\ 29 | mv $$TMP_DIR/$$BASE_NAME-$$VERSION.tar.gz /tmp/ &&\ 30 | rm -rf $$TMP_DIR &&\ 31 | echo "-----------------------------------------" &&\ 32 | echo /tmp/$$BASE_NAME-$$VERSION.tar.gz 33 | 34 | build: build-arch build-indep patch 35 | build-arch: 36 | build-indep: 37 | 38 | clean: unpatch 39 | dh_testdir 40 | dh_testroot 41 | dh_clean 42 | 43 | install: 44 | dh_testdir 45 | dh_testroot 46 | dh_clean -k 47 | dh_installdirs 48 | install -D -m 755 StorMan/aus-snmpd \ 49 | $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd 50 | # Do not try to fix the MIBS path. It segfaults when something is found... 51 | # Otherwise it just shows warning but seem to work as expected. 52 | # 53 | # Fix mibs path INSIDE the binary itself (OMG :/) 54 | #sed -i 's!/usr/local/share/snmp/mibs!/usr/share/./././snmp/mibs!' \ 55 | # $(CURDIR)/debian/adaptec-universal-storage-snmpd/usr/sbin/adaptec-universal-storage-snmpd 56 | install -D -m 644 StorMan/aus.mib \ 57 | $(CURDIR)/debian/adaptec-universal-storage-mib/usr/share/snmp/mibs/ADAPTEC-UNIVERSAL-STORAGE-MIB.txt 58 | dh_install 59 | 60 | binary-indep: build install 61 | binary-arch: build install 62 | dh_testdir 63 | dh_testroot 64 | dh_installchangelogs 65 | dh_installdocs 66 | dh_installinit -Nadaptec-universal-storage-snmpd 67 | # Priority 21, so it will start after snmpd 68 | dh_installinit -padaptec-universal-storage-snmpd -- defaults 21 69 | dh_link 70 | dh_compress 71 | dh_fixperms 72 | dh_makeshlibs 73 | dh_strip 74 | dh_installdeb 75 | dh_shlibdeps 76 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 77 | dh_md5sums 78 | dh_builddeb 79 | 80 | binary: binary-arch binary-indep 81 | .PHONY: build clean binary-indep binary-arch binary install 82 | -------------------------------------------------------------------------------- /packaging/debian/adaptec-storage-manager-linux-64bit/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/README.source: -------------------------------------------------------------------------------- 1 | arcconf-1.05 (1:1.05.20942) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | de7e676bdd9c04db8125d04086d9efd6 arcconf_v1_5_20942.zip 6 | 7 | Upstream licence has been reformated using the following command: 8 | 9 | cat /tmp/1 | sed 's!$!\n!' | \ 10 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 11 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 12 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 13 | 14 | -- Reto Kaiser (njam) Thu Mar 20 14:32:12 UTC 2014 15 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/changelog: -------------------------------------------------------------------------------- 1 | arcconf-1.05 (1:1.05.20942-1) unstable; urgency=low 2 | 3 | * Initial release. 4 | 5 | -- Adam Cécile (Le_Vert) Thu, 20 Mar 2014 09:00:00 +0200 6 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/control: -------------------------------------------------------------------------------- 1 | Source: arcconf-1.05 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: arcconf 9 | Architecture: amd64 i386 10 | Depends: ${misc:Depends}, ${shlibs:Depends} 11 | Description: Adaptec ARCCONF command line tool 12 | Compatible Products: 13 | . 14 | Adaptec RAID 6405 15 | Adaptec RAID 6405E 16 | Adaptec RAID 6405T 17 | Adaptec RAID 6445 18 | Adaptec RAID 6805 19 | Adaptec RAID 6805E 20 | Adaptec RAID 6805Q 21 | Adaptec RAID 6805T 22 | Adaptec RAID 6805TQ 23 | Adaptec RAID 7805 24 | Adaptec RAID 7805Q 25 | Adaptec RAID 78165 26 | Adaptec RAID 71605E 27 | Adaptec RAID 71605 28 | Adaptec RAID 71605Q 29 | Adaptec RAID 71685 30 | Adaptec RAID 72405 31 | Adaptec RAID 8805 32 | Adaptec RAID 8885 33 | Adaptec RAID 8885Q 34 | Adaptec RAID 81605ZQ 35 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/docs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eLvErDe/hwraid/8ee64edc22f757f35c1b29773add50b0fc38f643/packaging/debian/arcconf-1.05/docs -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.05/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | clean: 17 | dh_testdir 18 | dh_testroot 19 | dh_clean 20 | 21 | install: 22 | dh_testdir 23 | dh_testroot 24 | dh_clean -k 25 | dh_installdirs 26 | ifeq ($(DEB_BUILD_ARCH),amd64) 27 | install -D -m 0755 linux_x64/cmdline/arcconf \ 28 | debian/arcconf/usr/sbin/arcconf 29 | endif 30 | ifeq ($(DEB_BUILD_ARCH),i386) 31 | install -D -m 0755 linux/cmdline/arcconf \ 32 | debian/arcconf/usr/sbin/arcconf 33 | endif 34 | dh_install 35 | 36 | binary-indep: build install 37 | binary-arch: build install 38 | dh_testdir 39 | dh_testroot 40 | dh_installchangelogs 41 | dh_installdocs 42 | dh_link 43 | dh_compress 44 | dh_fixperms 45 | dh_makeshlibs 46 | dh_strip 47 | dh_installdeb 48 | dh_shlibdeps 49 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 50 | dh_md5sums 51 | dh_builddeb 52 | 53 | binary: binary-arch binary-indep 54 | .PHONY: build clean binary-indep binary-arch binary install 55 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/README.source: -------------------------------------------------------------------------------- 1 | arcconf-1.07 (1:1.07.21229-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | 8d8e1829172bb72f69081b2ac6d2e50b arcconf_v1_7_21229.zip 6 | 7 | Upstream licence has been reformated using the following command: 8 | 9 | cat /tmp/1 | sed 's!$!\n!' | \ 10 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 11 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 12 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 13 | 14 | -- Reto Kaiser (njam) Thu Mar 20 14:32:12 UTC 2014 15 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/changelog: -------------------------------------------------------------------------------- 1 | arcconf-1.07 (1:1.07.21229-1) unstable; urgency=low 2 | 3 | * Initial release. 4 | 5 | -- Adam Cécile (Le_Vert) Thu, 20 Mar 2014 09:00:00 +0200 6 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/control: -------------------------------------------------------------------------------- 1 | Source: arcconf-1.07 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: arcconf 9 | Architecture: amd64 i386 10 | Depends: ${misc:Depends}, ${shlibs:Depends} 11 | Description: Adaptec ARCCONF command line tool 12 | Compatible Products: 13 | . 14 | Adaptec RAID 6405 15 | Adaptec RAID 6405E 16 | Adaptec RAID 6405T 17 | Adaptec RAID 6445 18 | Adaptec RAID 6805 19 | Adaptec RAID 6805E 20 | Adaptec RAID 6805Q 21 | Adaptec RAID 6805T 22 | Adaptec RAID 6805TQ 23 | Adaptec RAID 7805 24 | Adaptec RAID 7805Q 25 | Adaptec RAID 71605 26 | Adaptec RAID 71605E 27 | Adaptec RAID 71605Q 28 | Adaptec RAID 71685 29 | Adaptec RAID 72405 30 | Adaptec RAID 78165 31 | Adaptec RAID 8405 32 | Adaptec RAID 8805 33 | Adaptec RAID 8885 34 | Adaptec RAID 8885Q 35 | Adaptec RAID 81605ZQ 36 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/docs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eLvErDe/hwraid/8ee64edc22f757f35c1b29773add50b0fc38f643/packaging/debian/arcconf-1.07/docs -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.07/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | clean: 17 | dh_testdir 18 | dh_testroot 19 | dh_clean 20 | 21 | install: 22 | dh_testdir 23 | dh_testroot 24 | dh_clean -k 25 | dh_installdirs 26 | ifeq ($(DEB_BUILD_ARCH),amd64) 27 | install -D -m 0755 linux_x64/cmdline/arcconf \ 28 | debian/arcconf/usr/sbin/arcconf 29 | endif 30 | ifeq ($(DEB_BUILD_ARCH),i386) 31 | install -D -m 0755 linux/cmdline/arcconf \ 32 | debian/arcconf/usr/sbin/arcconf 33 | endif 34 | dh_install 35 | 36 | binary-indep: build install 37 | binary-arch: build install 38 | dh_testdir 39 | dh_testroot 40 | dh_installchangelogs 41 | dh_installdocs 42 | dh_link 43 | dh_compress 44 | dh_fixperms 45 | dh_makeshlibs 46 | dh_strip 47 | dh_installdeb 48 | dh_shlibdeps 49 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 50 | dh_md5sums 51 | dh_builddeb 52 | 53 | binary: binary-arch binary-indep 54 | .PHONY: build clean binary-indep binary-arch binary install 55 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/README.source: -------------------------------------------------------------------------------- 1 | arcconf-1.08 (1:1.08.21375) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | 7a697a7c8b99b66312116d4249ab1922 arcconf_v1_8_21375.zip 6 | 7 | Upstream licence has been reformated using the following command: 8 | 9 | cat /tmp/1 | sed 's!$!\n!' | \ 10 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 11 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 12 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 13 | 14 | -- Reto Kaiser (njam) Thu Mar 20 14:32:12 UTC 2014 15 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/changelog: -------------------------------------------------------------------------------- 1 | arcconf-1.08 (1:1.08.21375-1) unstable; urgency=low 2 | 3 | * Initial release. 4 | 5 | -- Adam Cécile (Le_Vert) Thu, 20 Mar 2014 09:00:00 +0200 6 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/control: -------------------------------------------------------------------------------- 1 | Source: arcconf-1.08 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: arcconf 9 | Architecture: amd64 i386 10 | Depends: ${misc:Depends}, ${shlibs:Depends} 11 | Description: Adaptec ARCCONF command line tool 12 | Compatible Products: 13 | . 14 | Adaptec RAID 6405 15 | Adaptec RAID 6405E 16 | Adaptec RAID 6405T 17 | Adaptec RAID 6445 18 | Adaptec RAID 6805 19 | Adaptec RAID 6805E 20 | Adaptec RAID 6805Q 21 | Adaptec RAID 6805T 22 | Adaptec RAID 6805TQ 23 | Adaptec RAID 7805 24 | Adaptec RAID 7805Q 25 | Adaptec RAID 71605 26 | Adaptec RAID 71605E 27 | Adaptec RAID 71605Q 28 | Adaptec RAID 71685 29 | Adaptec RAID 72405 30 | Adaptec RAID 78165 31 | Adaptec RAID 8405 32 | Adaptec RAID 8805 33 | Adaptec RAID 8885 34 | Adaptec RAID 8885Q 35 | Adaptec RAID 81605Z 36 | Adaptec RAID 81605ZQ 37 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/docs: -------------------------------------------------------------------------------- 1 | linux_x64/cmdline/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-1.08/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | clean: 17 | dh_testdir 18 | dh_testroot 19 | dh_clean 20 | 21 | install: 22 | dh_testdir 23 | dh_testroot 24 | dh_clean -k 25 | dh_installdirs 26 | ifeq ($(DEB_BUILD_ARCH),amd64) 27 | install -D -m 0755 linux_x64/cmdline/arcconf \ 28 | debian/arcconf/usr/sbin/arcconf 29 | endif 30 | ifeq ($(DEB_BUILD_ARCH),i386) 31 | install -D -m 0755 linux/cmdline/arcconf \ 32 | debian/arcconf/usr/sbin/arcconf 33 | endif 34 | dh_install 35 | 36 | binary-indep: build install 37 | binary-arch: build install 38 | dh_testdir 39 | dh_testroot 40 | dh_installchangelogs 41 | dh_installdocs 42 | dh_link 43 | dh_compress 44 | dh_fixperms 45 | dh_makeshlibs 46 | dh_strip 47 | dh_installdeb 48 | dh_shlibdeps 49 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 50 | dh_md5sums 51 | dh_builddeb 52 | 53 | binary: binary-arch binary-indep 54 | .PHONY: build clean binary-indep binary-arch binary install 55 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/README.source: -------------------------------------------------------------------------------- 1 | arcconf-2.02 (1:2.02.22404-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | 373126b8d256aa76022906145a87d398 arcconf_v2_02_22404.zip 6 | 7 | Upstream licence has been reformated using the following command: 8 | 9 | cat /tmp/1 | sed 's!$!\n!' | \ 10 | sed "s|Bureau of Industry and Security's Lists to Check|http://www.bis.doc.gov/ComplianceAndEnforcement/ListsToCheck.htm|" | \ 11 | awk 'NR==1 || NF || prvNF {print} {prvNF=NF}' | sed 's!^$!.!' | \ 12 | vim - -c '%!fold -s -w76' -c '%s/^/ /' 13 | 14 | -- Reto Kaiser (njam) Thu Mar 20 14:32:12 UTC 2014 15 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/changelog: -------------------------------------------------------------------------------- 1 | arcconf-2.02 (1:2.02.22404-1) unstable; urgency=low 2 | 3 | * Initial release. 4 | 5 | -- Adam Cécile (Le_Vert) Thu, 20 Mar 2014 09:00:00 +0200 6 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/control: -------------------------------------------------------------------------------- 1 | Source: arcconf-2.02 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: arcconf 9 | Architecture: amd64 10 | Depends: ${misc:Depends}, ${shlibs:Depends} 11 | Description: Adaptec ARCCONF command line tool 12 | Compatible Products: 13 | . 14 | Adaptec RAID 6405E 15 | Adaptec RAID 6405T 16 | Adaptec RAID 6445 17 | Adaptec RAID 6805 18 | Adaptec RAID 6805E 19 | Adaptec RAID 6805Q 20 | Adaptec RAID 6805T 21 | Adaptec RAID 6805TQ 22 | Adaptec RAID 7805 23 | Adaptec RAID 7805Q 24 | Adaptec RAID 71605 25 | Adaptec RAID 71605E 26 | Adaptec RAID 71605Q 27 | Adaptec RAID 71685 28 | Adaptec RAID 72405 29 | Adaptec RAID 78165 30 | Adaptec RAID 8405 31 | Adaptec RAID 8405E 32 | Adaptec RAID 8805 33 | Adaptec RAID 8805E 34 | Adaptec RAID 8885 35 | Adaptec RAID 8885Q 36 | Adaptec RAID 81605Z 37 | Adaptec RAID 81605ZQ 38 | PMC Adaptec HBA 1000-8e 39 | PMC Adaptec HBA 1000-8i 40 | PMC Adaptec HBA 1000-8i8e 41 | PMC Adaptec HBA 1000-16e 42 | PMC Adaptec HBA 1000-16i 43 | Adaptec SAS Expander 82885T 44 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/docs: -------------------------------------------------------------------------------- 1 | linux_x64/cmdline/README.TXT 2 | -------------------------------------------------------------------------------- /packaging/debian/arcconf-2.02/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | clean: 17 | dh_testdir 18 | dh_testroot 19 | dh_clean 20 | 21 | install: 22 | dh_testdir 23 | dh_testroot 24 | dh_clean -k 25 | dh_installdirs 26 | ifeq ($(DEB_BUILD_ARCH),amd64) 27 | install -D -m 0755 linux_x64/cmdline/arcconf \ 28 | debian/arcconf/usr/sbin/arcconf 29 | endif 30 | #ifeq ($(DEB_BUILD_ARCH),i386) 31 | # install -D -m 0755 linux/cmdline/arcconf \ 32 | # debian/arcconf/usr/sbin/arcconf 33 | #endif 34 | dh_install 35 | 36 | binary-indep: build install 37 | binary-arch: build install 38 | dh_testdir 39 | dh_testroot 40 | dh_installchangelogs 41 | dh_installdocs 42 | dh_link 43 | dh_compress 44 | dh_fixperms 45 | dh_makeshlibs 46 | dh_strip 47 | dh_installdeb 48 | dh_shlibdeps 49 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 50 | dh_md5sums 51 | dh_builddeb 52 | 53 | binary: binary-arch binary-indep 54 | .PHONY: build clean binary-indep binary-arch binary install 55 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/NEWS: -------------------------------------------------------------------------------- 1 | cciss-vol-status (1:1.09-2hwraid1) unstable; urgency=low 2 | 3 | * Starting from this release cciss-vol-status has been renamed to 4 | cciss_vol_status to match upstream and Debian's name. 5 | 6 | -- Adam Cécile (Le_Vert) Tue, 31 Jan 2012 14:37:03 +0100 7 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for cciss-vol-status package 2 | ------------------------------------------ 3 | 4 | Possible configuration: 5 | ---------------------- 6 | 7 | If you want to change the default configuration of the init script you 8 | can create the file /etc/default/cciss-vol-statusd and specify the following 9 | values. 10 | 11 | MAILTO= 12 | PERIOD= 13 | REMIND= 14 | ID= 15 | 16 | Use MAILTO to specify which user shall get the status mails 17 | (default is root). 18 | 19 | With PERIOD you can fix the seconds between each check. 20 | 21 | And REMIND specifies the seconds between each reminder. 22 | 23 | ID is set as default to /dev/cciss/c0d0 which should fit most of setups. 24 | However you need to change it to support multiple cards. 25 | Look at the cciss-vol-status(8) manpage for more information. 26 | 27 | -- Adam Cécile (Le_Vert) Wed, 20 Aug 2008 12:38:00 +0200 28 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/cciss-vol-status.examples: -------------------------------------------------------------------------------- 1 | debian/cron.daily-example 2 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/control: -------------------------------------------------------------------------------- 1 | Source: cciss-vol-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Christian Hofstaedtler 5 | Build-Depends: autoconf, 6 | automake, 7 | debhelper (>= 5), 8 | autotools-dev, 9 | quilt, 10 | lsb-release, 11 | Build-Conflicts: autoconf2.13, 12 | automake1.4 13 | Standards-Version: 4.0.0 14 | Homepage: http://cciss.sourceforge.net/ 15 | Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/cciss-vol-status.git/ 16 | Vcs-Git: https://anonscm.debian.org/git/collab-maint/cciss-vol-status.git 17 | 18 | Package: cciss-vol-status 19 | Architecture: amd64 i386 20 | Depends: ${misc:Depends}, 21 | ${shlibs:Depends}, 22 | lsb-base, 23 | daemon, 24 | bsd-mailx | mailx, 25 | Description: HP SmartArray RAID Volume Status Checker 26 | A RAID monitor for HP SmartArray Controllers, as supported by the "cciss", 27 | "hpsa", "hpahcisr" kernel drivers. 28 | It will check for problems on your configured logical drives, without relying 29 | on the controller's event log. 30 | . 31 | It also supports MSA500 and MSA1000 controllers. 32 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/copyright: -------------------------------------------------------------------------------- 1 | This work was packaged for Debian by: 2 | 3 | Christian Hofstaedtler on Wed, 27 Aug 2008 17:52:21 +0200 4 | 5 | It was downloaded from: 6 | 7 | http://cciss.sourceforge.net/ 8 | 9 | Upstream Author: 10 | 11 | Stephen M. Cameron 12 | 13 | Copyright: 14 | 15 | Copyright (C) 2006,2007 Hewlett-Packard Development Company, L.P. 16 | 17 | License: 18 | 19 | cciss_vol_status is free software; you can redistribute it and/or modify 20 | it under the terms of the GNU General Public License as published by 21 | the Free Software Foundation; either version 2 of the License, or 22 | (at your option) any later version. 23 | 24 | cciss_vol_status is distributed in the hope that it will be useful, 25 | but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27 | GNU General Public License for more details. 28 | 29 | You should have received a copy of the GNU General Public License 30 | along with cciss_vol_status; if not, write to the Free Software 31 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 32 | 33 | On Debian systems, the complete text of the GNU General 34 | Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. 35 | 36 | The Debian packaging is: 37 | 38 | Copyright 2008,2009,2010,2011 Christian Hofstaedtler 39 | 40 | and is licensed under the GPL version 2 or (at your option) any later version, 41 | see above. 42 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/cron.daily-example: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This is an example cron.daily file, which one could use to do a cheap 4 | # daily check of the RAID arrays. You might be better off setting up a 5 | # proper monitoring system though. 6 | 7 | test -x /usr/bin/cciss_vol_status || exit 0 8 | 9 | STATUS=0 10 | 11 | if [ -d /proc/driver/cciss ]; then 12 | DEVS=`grep -h 'cciss/c.*d0:' /proc/driver/cciss/cciss* |awk -F: '{print "/dev/" $1}'` 13 | OUTPUT=`/usr/bin/cciss_vol_status $DEVS` 14 | if [ $? -ne 0 ]; then 15 | printf "%s\n" "$OUTPUT" 16 | exit 1 17 | fi 18 | fi 19 | 20 | # FIXME: This cronjob should also look at the scsi generic nodes 21 | # (/dev/sg*?) to cover the hpsa driver, fibre-attached MSA1000 family 22 | # devices, or the hpahcisr software RAID driver (see cciss_vol_status(8) 23 | # about how to choose the correct nodes -- i don't use these other 24 | # devices, so I cannot verify how to check them cleanly) 25 | # 26 | # -- Daniel Kahn Gillmor 27 | # Mon, 20 Sep 2010 18:12:31 -0400 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/docs: -------------------------------------------------------------------------------- 1 | NEWS 2 | README 3 | debian/README.Debian 4 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/gbp.conf: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | pristine-tar = True 3 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/patches/fix-manpage: -------------------------------------------------------------------------------- 1 | Description: man does not understand LD macro 2 | Author: Christian Hofstaedtler 3 | Forwarded: no 4 | Last-Update: 2010-02-04 5 | 6 | Index: cciss-vol-status/cciss_vol_status.8 7 | =================================================================== 8 | --- cciss-vol-status.orig/cciss_vol_status.8 2014-06-06 06:18:34.121832596 +0200 9 | +++ cciss-vol-status/cciss_vol_status.8 2014-06-06 06:18:34.117832773 +0200 10 | @@ -112,7 +112,7 @@ 11 | /dev/sg node to use with cciss_vol_status: 12 | .PP 13 | .nf 14 | -.LD 15 | +.PP 16 | wumpus:/home/scameron # ls -l /sys/class/scsi_generic/* 17 | lrwxrwxrwx 1 root root 0 2009-11-18 12:31 /sys/class/scsi_generic/sg0 -> ../../devices/pci0000:00/0000:00:02.0/0000:02:00.0/0000:03:03.0/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 18 | lrwxrwxrwx 1 root root 0 2009-11-18 12:31 /sys/class/scsi_generic/sg1 -> ../../devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0/scsi_generic/sg1 19 | @@ -139,7 +139,7 @@ 20 | which corresponds to the HP P800 RAID controller listed in /proc/scsi/scsi. 21 | .SH EXAMPLE 22 | .nf 23 | -.LD 24 | +.PP 25 | [root@somehost]# cciss_vol_status -q /dev/cciss/c*d0 26 | /dev/cciss/c0d0: (Smart Array P800) RAID 0 Volume 0 status: OK. 27 | /dev/cciss/c0d0: (Smart Array P800) RAID 0 Volume 1 status: OK. 28 | @@ -249,7 +249,7 @@ 29 | drive status: 30 | .PP 31 | .nf 32 | -.LD 33 | +.PP 34 | "At least one spare drive designated" 35 | "At least one spare drive activated and currently rebuilding" 36 | "At least one activated on-line spare drive is completely rebuilt on this logical drive" 37 | @@ -265,7 +265,7 @@ 38 | physical drives, if more than zero, will be reported as: 39 | .TP 40 | .nf 41 | -.LD 42 | +.PP 43 | "Total of n failed physical drives detected on this logical drive." 44 | .DE 45 | .fi 46 | @@ -286,7 +286,7 @@ 47 | power supplies, and temperature are reported as follows: 48 | .PP 49 | .nf 50 | -.LD 51 | +.PP 52 | "Fan failed" 53 | "Temperature problem" 54 | "Door alert" 55 | @@ -324,7 +324,7 @@ 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 57 | .SH "SEE ALSO" 58 | http://cciss.sourceforge.net 59 | -.SH note 1 60 | +.SH NOTE 1 61 | The /dev/cciss/c*d0 device nodes of the cciss driver do double duty. 62 | They serve as an access point to both the RAID controllers, and to the 63 | first logical drive of each RAID controller. Notice that a /dev/cciss/c*d0 64 | @@ -336,4 +336,3 @@ 65 | were statically allocated at compile time, and were in short supply. 66 | Changing this behavior at this point would break lots of userland 67 | programs. 68 | -.FE 69 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/patches/series: -------------------------------------------------------------------------------- 1 | fix-manpage 2 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Quilt patch system 4 | include /usr/share/quilt/quilt.make 5 | 6 | # Uncomment this to turn on verbose mode. 7 | #export DH_VERBOSE=1 8 | 9 | # These are used for cross-compiling and for saving the configure script 10 | # from having to guess our platform (since we know it already) 11 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 12 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 13 | ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) 14 | CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) 15 | else 16 | CROSS= --build $(DEB_BUILD_GNU_TYPE) 17 | endif 18 | 19 | DESTDIR=$(CURDIR)/debian/cciss-vol-status 20 | 21 | CFLAGS := $(shell dpkg-buildflags --get CFLAGS) 22 | LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) 23 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all 24 | 25 | # Get version from changelog as well as lsb_release 26 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 27 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 28 | DIST_NAME := $(shell lsb_release -si) 29 | DIST_RELEASE := $(shell lsb_release -sc) 30 | DIST_VERSION := $(shell lsb_release -sr) 31 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 32 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 33 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 34 | 35 | configure: patch 36 | 37 | config.status: configure 38 | dh_testdir 39 | ifneq "$(wildcard /usr/share/misc/config.sub)" "" 40 | cp -f /usr/share/misc/config.sub config.sub 41 | endif 42 | ifneq "$(wildcard /usr/share/misc/config.guess)" "" 43 | cp -f /usr/share/misc/config.guess config.guess 44 | endif 45 | ./configure $(CROSS) \ 46 | --prefix=/usr \ 47 | --bindir=/usr/sbin \ 48 | --mandir=/usr/share/man \ 49 | CFLAGS="$(CFLAGS)" \ 50 | LDFLAGS="$(LDFLAGS)" 51 | 52 | build: build-arch build-indep 53 | build-indep: 54 | build-arch: config.status 55 | dh_testdir 56 | $(MAKE) 57 | touch $@ 58 | 59 | clean: unpatch 60 | dh_testdir 61 | dh_testroot 62 | rm -f build-arch 63 | [ ! -f Makefile ] || $(MAKE) distclean 64 | rm -f config.sub config.guess config.log 65 | dh_clean 66 | 67 | install: build 68 | dh_testdir 69 | dh_testroot 70 | dh_clean -k 71 | dh_installdirs 72 | $(MAKE) DESTDIR=$(DESTDIR) install 73 | 74 | binary-indep: build install 75 | binary-arch: build install 76 | dh_testdir 77 | dh_testroot 78 | dh_installchangelogs ChangeLog 79 | dh_installdocs -XREADME 80 | dh_installexamples 81 | dh_installman 82 | dh_installinit --name=cciss-vol-statusd 83 | dh_link 84 | dh_strip 85 | dh_compress 86 | dh_fixperms 87 | dh_installdeb 88 | dh_shlibdeps 89 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 90 | dh_md5sums 91 | dh_builddeb 92 | 93 | binary: binary-indep binary-arch 94 | .PHONY: build clean binary-indep binary-arch binary install 95 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/cciss-vol-status/watch: -------------------------------------------------------------------------------- 1 | # See uscan(1) for format 2 | 3 | # Compulsory line, this is a version 3 file 4 | version=3 5 | 6 | # Uncomment to find new files on sourceforge, for debscripts >= 2.9 7 | http://sf.net/cciss/cciss_vol_status-(.*)\.tar\.gz 8 | 9 | 10 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/changelog: -------------------------------------------------------------------------------- 1 | dellmgr (5.31-4) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:01:35 +0200 6 | 7 | dellmgr (5.31-3) unstable; urgency=medium 8 | 9 | * Bump debhelper compat level to 5 because 4 is not supported anymore 10 | on Debian Stretch. 11 | 12 | -- Adam Cecile Wed, 02 Aug 2017 00:33:26 +0200 13 | 14 | dellmgr (5.31-2) unstable; urgency=low 15 | 16 | * Update create-devices-nodes to handle kernels 2.6.25rc2+. 17 | 18 | -- Adam Cécile (Le_Vert) Mon, 16 Feb 2009 19:31:24 +0100 19 | 20 | dellmgr (5.31-1) unstable; urgency=low 21 | 22 | * Initial release. 23 | 24 | -- Adam Cécile (Le_Vert) Tue, 26 Aug 2008 10:01:34 +0200 25 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/control: -------------------------------------------------------------------------------- 1 | Source: dellmgr 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.8.0 7 | Homepage: http://linux.dell.com 8 | 9 | Package: dellmgr 10 | Architecture: i386 amd64 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: Manage DELL PERC/CERC cards based on LSI MegaRAID chip 13 | This tool allow you to access the RAID card BIOS from Linux. 14 | . 15 | Useful to manage arrays or start maintenance operations. 16 | . 17 | If you have a MegaRAID card, which doesn't come from Dell, look at 18 | megamgr package instead. 19 | . 20 | This tool will not work on recent SAS cards. 21 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Tue, 26 Aug 2008 10:01:34 +0200. 3 | 4 | It was downloaded from http://linux.dell.com/storage.shtml 5 | 6 | Upstream Author: 7 | 8 | Dell Inc. 9 | 10 | Copyright: 11 | 12 | Copyright (C) Dell Inc. 13 | 14 | License: 15 | 16 | Dell proprietary. 17 | 18 | The Debian packaging is (C) 2008, Adam Cécile (Le_Vert) 19 | and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. 20 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | usr/lib/dellmgr 3 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DESTDIR = $(CURDIR)/debian/dellmgr 7 | 8 | # Get version from changelog as well as lsb_release 9 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 10 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 11 | DIST_NAME := $(shell lsb_release -si) 12 | DIST_RELEASE := $(shell lsb_release -sc) 13 | DIST_VERSION := $(shell lsb_release -sr) 14 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 15 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 16 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 17 | 18 | build: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | install -D -m 755 $(CURDIR)/usr/sbin/dellmgr.bin \ 31 | $(DESTDIR)/usr/lib/dellmgr/dellmgr.real 32 | install -D -m 644 $(CURDIR)/debian/wrappers/create-device-node \ 33 | $(DESTDIR)/usr/lib/dellmgr/create-device-node 34 | install -D -m 755 $(CURDIR)/debian/wrappers/dellmgr \ 35 | $(DESTDIR)/usr/sbin/dellmgr 36 | 37 | binary-indep: build install 38 | binary-arch: build install 39 | dh_testdir 40 | dh_testroot 41 | dh_installchangelogs debian/Dellmgr-changes.txt 42 | dh_installdocs 43 | dh_link 44 | dh_strip 45 | dh_compress 46 | dh_fixperms 47 | dh_installdeb 48 | dh_shlibdeps 49 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 50 | dh_md5sums 51 | dh_builddeb 52 | 53 | binary: binary-indep binary-arch 54 | .PHONY: build clean binary-indep binary-arch binary install 55 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/wrappers/create-device-node: -------------------------------------------------------------------------------- 1 | # Author: Adam Cécile (Le_Vert) 2 | # License: Public domain 3 | 4 | create_node() { 5 | # Since 2.6.25rc2 linux kernel, megadev0 is created dynamically by udev 6 | # See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90a95af85f22c82f87e5fb714bac7ee06673b0ff 7 | if [ ! -e /dev/megadev0 ]; then 8 | # Not available, try to create it by hand for kernel pre 2.6.25rc2 9 | grep -q 'megadev$' /proc/devices && MEGARAID="ok" 10 | if [ ! -z ${MEGARAID} ]; then 11 | MAJOR=`grep 'megadev$' /proc/devices | head -n 1 | awk '{ print $1 }'` 12 | mknod /dev/megadev0 c $MAJOR 0 13 | return $? 14 | fi 15 | fi 16 | if [ -e /dev/megadev0 ]; then 17 | return 0 18 | else 19 | return 1 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /packaging/debian/dellmgr/wrappers/dellmgr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /usr/lib/dellmgr/create-device-node 4 | 5 | create_node 6 | 7 | if [ $? -eq 0 ]; then 8 | /usr/lib/dellmgr/dellmgr.real $@ 9 | else 10 | echo "No LSI MegaRAID cards found." 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/README.source: -------------------------------------------------------------------------------- 1 | hpacucli (9.20.9.0-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream packages: 4 | 5 | a569ddb584d2133bf44f06992d746f51 hpacucli-9.20-9.0.i386.rpm 6 | c0d6f57fe3cf1fa6342fb0097e3ae100 hpacucli-9.20-9.0.x86_64.rpm 7 | 8 | Both have been turned into tarballs using alien and then uncompressed to 9 | i386 and amd64 sub-directories. 10 | 11 | -- Adam Cécile (Le_Vert) Mon, 20 Aug 2012 19:58:55 +0200 12 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/changelog: -------------------------------------------------------------------------------- 1 | hpacucli (9.20.9.0-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Wed, 03 Jul 2019 10:50:48 +0200 6 | 7 | hpacucli (9.20.9.0-1) unstable; urgency=low 8 | 9 | * New upstream release (Closes: #225). 10 | * Now ship amd64 binaries along i386 ones. 11 | * Rewrite debian/copyright to use machine readable format. 12 | 13 | -- Adam Cécile (Le_Vert) Mon, 20 Aug 2012 19:58:55 +0200 14 | 15 | hpacucli (8.25.5-1) unstable; urgency=low 16 | 17 | * New upstream release. 18 | * Do not depend on libstdc++2.10 anymore because it has been removed 19 | from current distros. Ship our own lib (extracted from etch package) 20 | in a private directory. 21 | * Add upstream changelog. 22 | * Fix download url (debian/copyright). 23 | 24 | -- Adam Cécile (Le_Vert) Mon, 27 Apr 2009 15:41:54 +0200 25 | 26 | hpacucli (8.10-1) unstable; urgency=low 27 | 28 | * New upstream release. 29 | * debian/watch added (url stolen to gentoo). 30 | 31 | -- Adam Cécile (Le_Vert) Tue, 23 Dec 2008 14:39:26 +0100 32 | 33 | hpacucli (7.80-1) unstable; urgency=low 34 | 35 | * Initial release. 36 | 37 | -- Adam Cécile (Le_Vert) Wed, 20 Aug 2008 13:41:40 +0200 38 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/control: -------------------------------------------------------------------------------- 1 | Source: hpacucli 2 | Section: non-free/admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), sharutils, lsb-release 6 | Standards-Version: 3.9.3 7 | 8 | Package: hpacucli 9 | Architecture: i386 amd64 10 | Depends: ${shlibs:Depends}, ${misc:Depends} 11 | Description: HP command line SmartArray configuration utility 12 | This is the proprietary command line utility from HP to manage HP/Compaq 13 | SmartArray hardware RAID HBAs mostly found in Proliant servers. 14 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | usr/lib/hpacucli 3 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/docs: -------------------------------------------------------------------------------- 1 | i386/opt/compaq/hpacucli/bld/hpacucli-*.txt 2 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/hpacucli.wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This file is public domain. 4 | 5 | export LD_LIBRARY_PATH=/usr/lib/hpacucli:$LD_LIBRARY_PATH 6 | /usr/lib/hpacucli/hpacucli.real $@ 7 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/hpacuscripting.wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This file is public domain. 4 | 5 | export LD_LIBRARY_PATH=/usr/lib/hpacucli:$LD_LIBRARY_PATH 6 | /usr/lib/hpacucli/hpacuscripting.real $@ 7 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DESTDIR = $(CURDIR)/debian/hpacucli 7 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | build: build-arch build-indep 20 | build-arch: 21 | build-indep: 22 | 23 | clean: 24 | dh_testdir 25 | dh_testroot 26 | dh_clean 27 | 28 | install: 29 | dh_testdir 30 | dh_testroot 31 | dh_clean -k 32 | dh_installdirs 33 | ifeq ($(DEB_BUILD_ARCH),i386) 34 | install -m 644 $(CURDIR)/i386/opt/compaq/hpacucli/bld/lib* \ 35 | $(DESTDIR)/usr/lib/hpacucli 36 | install -D -m 755 $(CURDIR)/i386/opt/compaq/hpacucli/bld/.hpacucli \ 37 | $(DESTDIR)/usr/lib/hpacucli/hpacucli.real 38 | install -D -m 755 $(CURDIR)/i386/opt/compaq/hpacucli/bld/.hpacuscripting \ 39 | $(DESTDIR)/usr/lib/hpacucli/hpacuscripting.real 40 | endif 41 | ifeq ($(DEB_BUILD_ARCH),amd64) 42 | install -m 644 $(CURDIR)/amd64/opt/compaq/hpacucli/bld/lib* \ 43 | $(DESTDIR)/usr/lib/hpacucli 44 | install -D -m 755 $(CURDIR)/amd64/opt/compaq/hpacucli/bld/.hpacucli \ 45 | $(DESTDIR)/usr/lib/hpacucli/hpacucli.real 46 | install -D -m 755 $(CURDIR)/amd64/opt/compaq/hpacucli/bld/.hpacuscripting \ 47 | $(DESTDIR)/usr/lib/hpacucli/hpacuscripting.real 48 | endif 49 | install -D -m 755 $(CURDIR)/debian/hpacucli.wrapper \ 50 | $(DESTDIR)/usr/sbin/hpacucli 51 | install -D -m 755 $(CURDIR)/debian/hpacuscripting.wrapper \ 52 | $(DESTDIR)/usr/sbin/hpacuscripting 53 | 54 | binary-indep: build install 55 | binary-arch: build install 56 | dh_testdir 57 | dh_testroot 58 | dh_installchangelogs debian/upstream_changelog 59 | dh_installdocs 60 | dh_installman 61 | dh_link 62 | dh_strip 63 | dh_compress 64 | dh_fixperms 65 | dh_installdeb 66 | dh_shlibdeps -l$(DESTDIR)/usr/lib/hpacucli/ 67 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 68 | dh_md5sums 69 | dh_builddeb 70 | 71 | binary: binary-indep binary-arch 72 | .PHONY: build clean binary-indep binary-arch binary install 73 | -------------------------------------------------------------------------------- /packaging/debian/hpacucli/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/changelog: -------------------------------------------------------------------------------- 1 | lsiutil (1.60-3) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:18:57 +0200 6 | 7 | lsiutil (1.60-2) unstable; urgency=medium 8 | 9 | * Invert uudecode file and args to get it working with newer version. 10 | 11 | -- Adam Cécile (Le_Vert) Wed, 10 Feb 2016 10:37:59 +0100 12 | 13 | lsiutil (1.60-1) unstable; urgency=low 14 | 15 | * Initial release. 16 | 17 | -- Adam Cécile (Le_Vert) Sun, 01 Feb 2009 00:41:44 +0100 18 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/control: -------------------------------------------------------------------------------- 1 | Source: lsiutil 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), sharutils, lsb-release 6 | Standards-Version: 3.8.0 7 | Homepage: http://www.lsi.com 8 | 9 | Package: lsiutil 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: LSI Logic Fusion MPT Command Line Interface management tool 13 | This package contains the "lsiutil" command line tool to manage LSI Fusion 14 | MPT RAID HBAs. 15 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Sun, 01 Feb 2009 00:41:44 +0100. 3 | 4 | It was downloaded from ftp://ftp.lsil.com/HostAdapterDrivers/linux/lsiutil 5 | and http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/ 6 | hbas/fibre_channel/hardware_drivers/LSIUtil Kit_1.60.zip (changes.txt) 7 | 8 | Upstream Author: 9 | 10 | LSI Corporation 11 | 12 | Copyright: 13 | 14 | Copyright (C) LSI Corporation 15 | 16 | License: 17 | 18 | Unspecified. Probably under a proprietary license but sources are 19 | available. 20 | 21 | The Debian packaging is (C) 2009, Adam Cécile (Le_Vert) 22 | and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. 23 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/docs: -------------------------------------------------------------------------------- 1 | debian/user_guide.pdf 2 | debian/README 3 | -------------------------------------------------------------------------------- /packaging/debian/lsiutil/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DESTDIR = $(CURDIR)/debian/lsiutil 4 | 5 | # Get version from changelog as well as lsb_release 6 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 7 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 8 | DIST_NAME := $(shell lsb_release -si) 9 | DIST_RELEASE := $(shell lsb_release -sc) 10 | DIST_VERSION := $(shell lsb_release -sr) 11 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 12 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 13 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 14 | 15 | debian/user_guide.pdf: 16 | uudecode -o $@ $@.uu 17 | 18 | build: debian/user_guide.pdf 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | rm -f debian/user_guide.pdf 25 | 26 | install: build 27 | dh_testdir 28 | dh_testroot 29 | dh_clean -k 30 | dh_installdirs 31 | $(CC) lsiutil.c -o $(DESTDIR)/usr/sbin/lsiutil 32 | 33 | binary-indep: build install 34 | binary-arch: build install 35 | dh_testdir 36 | dh_testroot 37 | dh_installchangelogs debian/changes.txt 38 | dh_installdocs 39 | dh_link 40 | dh_strip 41 | dh_compress -Xusr/share/doc/lsiutil/user_guide.pdf 42 | dh_fixperms 43 | dh_makeshlibs 44 | dh_installdeb 45 | dh_shlibdeps 46 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 47 | dh_md5sums 48 | dh_builddeb 49 | 50 | binary: binary-indep binary-arch 51 | .PHONY: build clean binary-indep binary-arch binary install 52 | -------------------------------------------------------------------------------- /packaging/debian/megacli/README.source: -------------------------------------------------------------------------------- 1 | megacli (8.04.07-1) unstable; urgency=low 2 | 3 | Sources have been repacked from the following upstream archive: 4 | 5 | 246ca19750965066f97730e704718cb8 8.04.07_MegaCLI.zip 6 | 7 | Contents of MegaCli-8.04.07-1.noarch.rpm and Lib_Utils-1.00-09.noarch.rpm 8 | have been extracted after being turned into tarball using alien. 9 | 10 | -- Adam Cécile (Le_Vert) Mon, 20 Aug 2012 22:23:22 +0200 11 | -------------------------------------------------------------------------------- /packaging/debian/megacli/changelog: -------------------------------------------------------------------------------- 1 | megacli (8.07.14-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | * Add libncurses5 as build dependency so shlibsdeps find proper dep. 5 | 6 | -- Adam Cecile Tue, 02 Jul 2019 23:58:31 +0200 7 | 8 | megacli (8.07.14-1) unstable; urgency=medium 9 | 10 | * New upstream release. 11 | 12 | -- Adam Cécile (Le_Vert) Sun, 26 Jan 2014 00:40:52 +0100 13 | 14 | megacli (8.04.07-1) unstable; urgency=low 15 | 16 | * New upstream release (Closes: #221). 17 | * Rewrite debian/copyright to use the machine readable format. 18 | - Re-wrap website EULA using vim command: !%fold -s -w76 and a couple 19 | of sed. 20 | 21 | -- Adam Cécile (Le_Vert) Mon, 20 Aug 2012 22:23:22 +0200 22 | 23 | megacli (8.02.16-1) unstable; urgency=low 24 | 25 | * New upstream release (Closes: #60). 26 | * Rewrite most of the packaging because megacli now needs a specific 27 | library (loaded using a shell wrapper). 28 | * Include megacli user guide PDF (Closes: #178). 29 | 30 | -- Adam Cécile (Le_Vert) Mon, 30 Jan 2012 17:26:35 +0100 31 | 32 | megacli (5.00.12-1) unstable; urgency=low 33 | 34 | * New upstream release. 35 | 36 | -- Adam Cécile (Le_Vert) Sun, 16 Aug 2009 01:58:43 +0200 37 | 38 | megacli (4.00.11-1) unstable; urgency=low 39 | 40 | * New upstream release. 41 | 42 | -- Adam Cécile (Le_Vert) Mon, 27 Apr 2009 19:21:30 +0200 43 | 44 | megacli (4.00.08-1) unstable; urgency=low 45 | 46 | * New upstream release. 47 | * Rename both source and binary packages from megaclisas to megacli. 48 | * Support IA-64 package. 49 | 50 | -- Adam Cécile (Le_Vert) Thu, 11 Dec 2008 17:33:57 +0100 51 | 52 | megaclisas (2.00.11-1) unstable; urgency=low 53 | 54 | * New upstream release. 55 | * Add upstream changelog. 56 | * Bump Standards-Version to 3.8.0. 57 | * Some packaging cleanup. 58 | 59 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 15:42:02 +0200 60 | 61 | megaclisas (1.01.40-1) unstable; urgency=low 62 | 63 | * Initial release. 64 | 65 | -- Adam Cécile (Le_Vert) Tue, 11 Dec 2007 16:52:58 +0100 66 | -------------------------------------------------------------------------------- /packaging/debian/megacli/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megacli/control: -------------------------------------------------------------------------------- 1 | Source: megacli 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), libncurses5, lsb-release 6 | Standards-Version: 3.9.5 7 | Homepage: http://www.lsi.com/support/Pages/Download-Results.aspx?keyword=megacli 8 | 9 | Package: megacli 10 | Provides: megaclisas 11 | Replaces: megaclisas 12 | Conflicts: megaclisas 13 | Architecture: i386 amd64 14 | Depends: ${shlibs:Depends}, ${misc:Depends} 15 | Description: LSI Logic MegaRAID SAS MegaCLI 16 | Tool to read and setup LSI Logic MegaRAID SAS HW RAID HBAs. 17 | -------------------------------------------------------------------------------- /packaging/debian/megacli/dirs: -------------------------------------------------------------------------------- 1 | usr/lib/megacli 2 | usr/sbin 3 | -------------------------------------------------------------------------------- /packaging/debian/megacli/docs: -------------------------------------------------------------------------------- 1 | debian/user_guide.pdf 2 | -------------------------------------------------------------------------------- /packaging/debian/megacli/megacli.wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LD_LIBRARY_PATH="/usr/lib/megacli:$LD_LIBRARY_PATH" /usr/lib/megacli/megacli.real "$@" 4 | -------------------------------------------------------------------------------- /packaging/debian/megacli/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 7 | 8 | # Get version from changelog as well as lsb_release 9 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 10 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 11 | DIST_NAME := $(shell lsb_release -si) 12 | DIST_RELEASE := $(shell lsb_release -sc) 13 | DIST_VERSION := $(shell lsb_release -sr) 14 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 15 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 16 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 17 | 18 | build: build-arch build-indep 19 | build-arch: 20 | build-indep: 21 | 22 | clean: 23 | dh_testdir 24 | dh_testroot 25 | dh_clean 26 | 27 | install: build 28 | dh_testdir 29 | dh_testroot 30 | dh_clean -k 31 | dh_installdirs 32 | install $(CURDIR)/debian/megacli.wrapper $(CURDIR)/debian/megacli/usr/sbin/megacli 33 | ifeq ($(DEB_BUILD_ARCH),amd64) 34 | install $(CURDIR)/opt/MegaRAID/MegaCli/MegaCli64 $(CURDIR)/debian/megacli/usr/lib/megacli/megacli.real 35 | install $(CURDIR)/opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/megacli/usr/lib/megacli/libstorelibir-2.so.14.07-0 36 | endif 37 | ifeq ($(DEB_BUILD_ARCH),i386) 38 | install $(CURDIR)/opt/MegaRAID/MegaCli/MegaCli $(CURDIR)/debian/megacli/usr/lib/megacli/megacli.real 39 | # Seem to be x64 only 40 | #install $(CURDIR)/opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/megacli/usr/lib/megacli/libstorelibir-2.so.14.07-0 41 | endif 42 | 43 | binary-indep: 44 | binary-arch: build install 45 | dh_testdir 46 | dh_testroot 47 | dh_installchangelogs 8.07.14_MegaCLI.txt 48 | dh_installdocs 49 | dh_compress 50 | dh_fixperms 51 | dh_installdeb 52 | dh_shlibdeps 53 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 54 | dh_md5sums 55 | dh_builddeb 56 | 57 | binary: binary-arch 58 | .PHONY: build clean binary-indep binary-arch binary install 59 | -------------------------------------------------------------------------------- /packaging/debian/megacli/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/megacli/user_guide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eLvErDe/hwraid/8ee64edc22f757f35c1b29773add50b0fc38f643/packaging/debian/megacli/user_guide.pdf -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for megaclisas-status package 2 | ------------------------------------------- 3 | 4 | Possible configuration: 5 | ---------------------- 6 | 7 | If you want to change the default configuration of the init script you 8 | can create the file /etc/default/megaclisas-statusd and specify the following 9 | values. 10 | 11 | MAILTO= 12 | PERIOD= 13 | REMIND= 14 | 15 | Use MAILTO to specify which user shall get the status mails 16 | (default is root). 17 | 18 | With PERIOD you can fix the seconds between each check. 19 | 20 | And REMIND specifies the seconds between each reminder. 21 | 22 | 23 | -- Adam Cécile (Le_Vert) Tue, 11 Dec 2007 17:06:56 +0100 24 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/control: -------------------------------------------------------------------------------- 1 | Source: megaclisas-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), 6 | lsb-release, 7 | python3 | python | python2, 8 | Standards-Version: 3.9.2 9 | 10 | Package: megaclisas-status 11 | Architecture: all 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, ${pythonCustom:Depends}, lsb-base, daemon, bsd-mailx | mailx, megacli 13 | Description: get RAID status out of LSI MegaRAID SAS HW RAID controllers 14 | The megacli-status software is a query tool to access the running 15 | configuration and status of LSI MegaRAID SAS HBAs. 16 | . 17 | It uses LSI MegaCli proprietary command line tool. 18 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Tue, 11 Dec 2007 17:06:56 +0100. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: 7 | Copyright (C) 2007-2009 Adam Cécile (Le_Vert) 8 | 9 | License: 10 | 11 | This program is free software; you can redistribute it and/or 12 | modify it under the terms of the GNU General Public License, version 2 13 | as published by the Free Software Foundation. 14 | 15 | This program is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 18 | See the GNU General Public License for details. 19 | 20 | On Debian GNU/Linux systems, the complete text of the GNU General 21 | Public License can be found in `/usr/share/common-licenses/GPL-2'. 22 | 23 | This package is highly based on Steffen Joeris works done 24 | for the mpt-status package. 25 | Thanks a lot Steffen! 26 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/install: -------------------------------------------------------------------------------- 1 | megaclisas-status usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/megaclisas-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | grep -E '^Version:' | cut -d' ' -f2) 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_VERSION).$(DIST_RELEASE) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | # Detect Python interpreter 17 | ifneq (, $(shell which python3)) 18 | INTERPRETER_NAME := python3 19 | INTERPRETER_PATH := $(shell which python3) 20 | else ifneq (, $(shell which python)) 21 | INTERPRETER_NAME := python 22 | INTERPRETER_PATH := $(shell which python) 23 | else ifneq (, $(shell which python)) 24 | INTERPRETER_NAME := python2 25 | INTERPRETER_PATH := $(shell which python2) 26 | endif 27 | SUBSTVARS_PYTHON_CUSTOM := -VpythonCustom:Depends="$(INTERPRETER_NAME)" 28 | 29 | build: build-arch build-indep 30 | build-arch: 31 | build-indep: 32 | 33 | clean: 34 | dh_testdir 35 | dh_testroot 36 | dh_clean 37 | 38 | install: 39 | ifeq (, $(INTERPRETER_PATH)) 40 | $(error Python interpreter could not be detected) 41 | endif 42 | dh_testdir 43 | dh_testroot 44 | dh_clean -k 45 | dh_installdirs 46 | 47 | binary-arch: build install 48 | binary-indep: build install 49 | dh_testdir -i 50 | dh_testroot -i 51 | dh_installchangelogs -i 52 | dh_installdocs -i 53 | dh_install -i 54 | sed -i 's|^#!.*python.*|#!$(INTERPRETER_PATH)|' debian/*/usr/sbin/* 55 | dh_installinit -i --name megaclisas-statusd 56 | dh_link -i 57 | dh_strip -i 58 | dh_compress -i 59 | dh_fixperms -i 60 | dh_installdeb -i 61 | dh_shlibdeps -i 62 | dh_gencontrol -i -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) $(SUBSTVARS_PYTHON_CUSTOM) 63 | dh_md5sums -i 64 | dh_builddeb -i 65 | 66 | binary: binary-indep binary-arch 67 | .PHONY: build clean binary-indep binary-arch binary install 68 | -------------------------------------------------------------------------------- /packaging/debian/megactl/changelog: -------------------------------------------------------------------------------- 1 | megactl (0.4.1+svn20090725.r6-7) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:45:52 +0200 6 | 7 | megactl (0.4.1+svn20090725.r6-6) unstable; urgency=medium 8 | 9 | * Bump debhelper compat to 5 because 4 is not supported anymore 10 | on Debian Stretch. 11 | 12 | -- Adam Cecile Wed, 02 Aug 2017 00:34:28 +0200 13 | 14 | megactl (0.4.1+svn20090725.r6-5) unstable; urgency=medium 15 | 16 | * Update 003-Fix_disk_enumeration_loop patch (fix issues with PERC6e). 17 | 18 | -- Adam Cécile (Le_Vert) Sat, 25 Jan 2014 23:10:36 +0100 19 | 20 | megactl (0.4.1+svn20090725.r6-4) unstable; urgency=medium 21 | 22 | * Fix build on Jessie+. 23 | 24 | -- Adam Cécile (Le_Vert) Tue, 21 Jan 2014 22:54:42 +0100 25 | 26 | megactl (0.4.1+svn20090725.r6-3) unstable; urgency=medium 27 | 28 | * New patch by Pat Suwalski to fix a bad disks 29 | enumeration loop. 30 | 31 | -- Adam Cécile (Le_Vert) Tue, 21 Jan 2014 20:24:22 +0100 32 | 33 | megactl (0.4.1+svn20090725.r6-2) unstable; urgency=medium 34 | 35 | * Integrate patch by Pat Suwalski to handle devices 36 | without enclosure. 37 | 38 | -- Adam Cécile (Le_Vert) Sat, 14 Dec 2013 14:36:22 +0100 39 | 40 | megactl (0.4.1+svn20090725.r6-1) unstable; urgency=low 41 | 42 | * New upstream release (based on sv trunk snapshot): 43 | - Add RAID6 support, 44 | - Fixes for Dell PERC6 cards. 45 | * Bump Standards-Version to 3.8.2. 46 | 47 | -- Adam Cécile (Le_Vert) Sat, 25 Jul 2009 13:23:45 +0200 48 | 49 | megactl (0.4.1-6) unstable; urgency=low 50 | 51 | * Merge a Gentoo (thanks) patch that drops obsolete asm/user.h. 52 | * Add missing amd64 required gcc-multilib b-dep. 53 | 54 | -- Adam Cécile (Le_Vert) Mon, 27 Apr 2009 16:35:59 +0200 55 | 56 | megactl (0.4.1-5) unstable; urgency=low 57 | 58 | * Update create-devices-nodes to handle kernels 2.6.25rc2+. 59 | 60 | -- Adam Cécile (Le_Vert) Mon, 01 Sep 2008 12:03:07 +0200 61 | 62 | megactl (0.4.1-4) unstable; urgency=low 63 | 64 | * Add preinst script to clean obsolete initscripts used by previous 65 | releases. 66 | 67 | -- Adam Cécile (Le_Vert) Fri, 22 Aug 2008 14:02:08 +0200 68 | 69 | megactl (0.4.1-3) unstable; urgency=low 70 | 71 | * Fix packaging to allow build and run on amd64. 72 | 73 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 18:03:39 +0200 74 | 75 | megactl (0.4.1-2) unstable; urgency=low 76 | 77 | * Device node creation: remove initscript, replaced by binaries wrappers. 78 | 79 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 13:57:02 +0200 80 | 81 | megactl (0.4.1-1) unstable; urgency=low 82 | 83 | * Initial release. 84 | 85 | -- Adam Cécile (Le_Vert) Wed, 26 Sep 2007 09:49:57 +0200 86 | -------------------------------------------------------------------------------- /packaging/debian/megactl/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megactl/control: -------------------------------------------------------------------------------- 1 | Source: megactl 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), dpatch, libc6-dev-i386 [amd64], gcc-multilib [amd64] | libc6-dev-i386 (<< 2.7) [amd64], lsb-release 6 | Standards-Version: 3.8.2 7 | Homepage: http://sourceforge.net/projects/megactl 8 | 9 | Package: megactl 10 | Architecture: i386 amd64 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, libc6-i386 [amd64] 12 | Description: LSI MegaRAID SCSI/SAS reporting tool 13 | This package contains both megactl and megasasctl tools that can be used 14 | to query LSI's MegaRAID adapters status. 15 | . 16 | It reports status and informations about the adapter itself, it's 17 | logical disks and the physical disks attached. 18 | -------------------------------------------------------------------------------- /packaging/debian/megactl/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Wed, 26 Sep 2007 09:49:57 +0200. 3 | 4 | It was downloaded from http://sourceforge.net/projects/megactl 5 | 6 | Upstream Author: 7 | 8 | Jefferson Ogata 9 | 10 | Copyright: 11 | 12 | Copyright (C) 2007 Jefferson Ogata 13 | 14 | License: 15 | 16 | This package is free software; you can redistribute it and/or modify 17 | it under the terms of the GNU General Public License as published by 18 | the Free Software Foundation; either version 2 of the License, or 19 | (at your option) any later version. 20 | 21 | This package is distributed in the hope that it will be useful, 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 | GNU General Public License for more details. 25 | 26 | You should have received a copy of the GNU General Public License 27 | along with this package; if not, write to the Free Software 28 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 29 | 30 | On Debian systems, the complete text of the GNU General 31 | Public License can be found in `/usr/share/common-licenses/GPL'. 32 | 33 | The Debian packaging is Copyright (C) 2007-2009 Adam Cécile (Le_Vert) 34 | and is licensed under the GPL, see above. 35 | 36 | Other files' copyright or license: 37 | 38 | "src/schily/*" are (C) 1984-2003 J. Schilling except 39 | "src/schily/scg/srb_os2.h" which is (C) 1998 D. Dorau, C. Wohlgemuth. 40 | 41 | "src/kernel-2.6.9-55.0.2.EL/*" and "src/megaraid/*" are 42 | (C) 2003-2004 LSI Logic Corporation. 43 | 44 | All theses files are released under terms of GNU General Public License 45 | version 2 or later. 46 | -------------------------------------------------------------------------------- /packaging/debian/megactl/dirs: -------------------------------------------------------------------------------- 1 | usr/lib/megactl 2 | usr/sbin 3 | -------------------------------------------------------------------------------- /packaging/debian/megactl/docs: -------------------------------------------------------------------------------- 1 | README 2 | -------------------------------------------------------------------------------- /packaging/debian/megactl/examples: -------------------------------------------------------------------------------- 1 | src/megarpt 2 | src/megasasrpt 3 | -------------------------------------------------------------------------------- /packaging/debian/megactl/install: -------------------------------------------------------------------------------- 1 | src/megactl usr/lib/megactl 2 | src/megasasctl usr/lib/megactl 3 | src/megatrace usr/lib/megactl 4 | debian/wrappers/create-devices-nodes usr/lib/megactl 5 | debian/wrappers/megactl usr/sbin 6 | debian/wrappers/megasasctl usr/sbin 7 | debian/wrappers/megatrace usr/sbin 8 | -------------------------------------------------------------------------------- /packaging/debian/megactl/man/megatrace.8: -------------------------------------------------------------------------------- 1 | .TH MEGATRACE "8" "September 2007" "0.4.1" "User Commands" 2 | 3 | .SH NAME 4 | megatrace - a debugging program which can be used to trace LSI MegaRAID-related ioctl() system calls. 5 | 6 | .SH DESCRIPTION 7 | .B megatrace 8 | is debugging program which can be used to trace LSI MegaRAID-related ioctl() system calls. 9 | .br 10 | You won't need that unless you're trying to add features to megactl, or are exceptionally curious. 11 | .br 12 | This program uses ptrace(2) and can inspect and modify data structures to help you suss out what's going on in dellmgr and MegaCli. 13 | .PP 14 | If you're not developer, please check megactl(8) or megactlsas(8). 15 | 16 | .SH SYNOPSIS 17 | .B megatrace 18 | 19 | .PP 20 | You may really consider tracing a command that access MegaRAID card, like Dell's dellmgr or LSI's megacli. 21 | 22 | .SH OPTIONS 23 | .B megatrace 24 | has no options. 25 | 26 | .SH "SEE ALSO" 27 | Homepage: http://sourceforge.net/projects/megactl 28 | .br 29 | Some examples scripts (Debian systems): /usr/share/doc/megactl/examples/ 30 | .br 31 | megactl(8): Reporting tool for SCSI adapters. 32 | megasasctl(8): Reporting tool for SAS adapters. 33 | 34 | .SH AUTHOR 35 | This manual page was written by Adam Cécile (Le_Vert) for the Debian system (but may be used by others). 36 | .br 37 | Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation 38 | .br 39 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. 40 | -------------------------------------------------------------------------------- /packaging/debian/megactl/manpages: -------------------------------------------------------------------------------- 1 | debian/man/* 2 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/000-No_absolute_pathes_in_examples.dpatch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | ## 000-No_absolute_pathes_in_examples.dpatch 3 | ## by Adam Cécile (Le_Vert) 4 | ## 5 | ## DP: Drop all absolute pathes to binaries in megarpt and megasasrpt 6 | ## DP: example scripts. 7 | 8 | @DPATCH@ 9 | 10 | diff -u megactl-0.4.1/src/megarpt megactl-0.4.1/src.new/megarpt 11 | --- megactl-0.4.1/src/megarpt 2007-08-21 09:19:53.000000000 +0200 12 | +++ megactl-0.4.1/src.new/megarpt 2007-09-26 11:07:05.584181968 +0200 13 | @@ -9,7 +9,7 @@ 14 | # Date: 2007/08/20 15 | 16 | VERSION='0.3' 17 | -MEGACTL=/root/megactl 18 | +MEGACTL=/usr/sbin/megactl 19 | DEVICE=/dev/megadev0 20 | DEVICENAME=megadev 21 | DEVICEPERM=644 22 | @@ -32,8 +32,8 @@ 23 | if [ -e "$DEVICE" ]; then 24 | 25 | WARN= 26 | - HOST=`/bin/uname -n` 27 | - DATE=`/bin/date '+%Y/%m/%d %H:%M:%S %Z'` 28 | + HOST=`uname -n` 29 | + DATE=`date '+%Y/%m/%d %H:%M:%S %Z'` 30 | HC=/tmp/megactl.$$ 31 | 32 | $MEGACTL -vH > $HC 2>/dev/null 33 | @@ -59,7 +59,7 @@ 34 | echo "$ME version: $VERSION" 35 | echo "megactl version: $MEGACTLVERSION" 36 | ) 2>/dev/null | 37 | - /bin/mail -s "RAID report:$WARN $HOST $DATE" root 38 | + mail -s "RAID report:$WARN $HOST $DATE" root 39 | 40 | rm -f $HC 41 | fi 42 | 43 | diff -u megactl-0.4.1/src/megasasrpt megactl-0.4.1/src.new/megasasrpt 44 | --- megactl-0.4.1/src/megasasrpt 2007-08-21 09:19:53.000000000 +0200 45 | +++ megactl-0.4.1/src.new/megasasrpt 2007-09-26 11:07:05.584181968 +0200 46 | @@ -9,7 +9,7 @@ 47 | # Date: 2007/08/20 48 | 49 | VERSION='0.3' 50 | -MEGACTL=/root/megasasctl 51 | +MEGACTL=/usr/sbin/megasasctl 52 | DEVICE=/dev/megaraid_sas_ioctl_node 53 | DEVICENAME=megaraid_sas_ioctl 54 | DEVICEPERM=400 55 | @@ -32,8 +32,8 @@ 56 | if [ -e "$DEVICE" ]; then 57 | 58 | WARN= 59 | - HOST=`/bin/uname -n` 60 | - DATE=`/bin/date '+%Y/%m/%d %H:%M:%S %Z'` 61 | + HOST=`uname -n` 62 | + DATE=`date '+%Y/%m/%d %H:%M:%S %Z'` 63 | HC=/tmp/megactl.$$ 64 | 65 | $MEGACTL -vH > $HC 2>/dev/null 66 | @@ -59,7 +59,7 @@ 67 | echo "$ME version: $VERSION" 68 | echo "megactl version: $MEGACTLVERSION" 69 | ) 2>/dev/null | 70 | - /bin/mail -s "RAID report:$WARN $HOST $DATE" root 71 | + mail -s "RAID report:$WARN $HOST $DATE" root 72 | 73 | rm -f $HC 74 | fi 75 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/001-Drop_obsolete_asm_user.h.dpatch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | ## 001-Drop_obsolete_asm_user.h.dpatch 3 | ## by wschlich (Gentoo) 4 | ## 5 | ## DP: Stolen on Gentoo VCS, thanks a lot Gentoo guys :) 6 | ## DP: http://sources.gentoo.org:80/viewcvs.py/gentoo-x86/sys-block/megactl/files/ 7 | 8 | @DPATCH@ 9 | diff -urN megactl-0.4.1.orig/src/megatrace.c megactl-0.4.1/src/megatrace.c 10 | --- megactl-0.4.1.orig/src/megatrace.c 2007-08-21 09:19:53.000000000 +0200 11 | +++ megactl-0.4.1/src/megatrace.c 2008-02-10 21:27:24.416919438 +0100 12 | @@ -49,7 +49,7 @@ 13 | #include 14 | #include 15 | #include 16 | -#include 17 | +#include 18 | #include 19 | #include 20 | #include 21 | @@ -250,7 +250,7 @@ 22 | len = sizeof buf; 23 | 24 | if (printregs) 25 | - fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx ds=%04x __ds=%04x es=%04x __es=%04x fs=%04x __fs=%04x gs=%04x __gs=%04x orig_eax=%08lx eip=%08lx cs=%04x __cs=%04x eflags=%08lx esp=%08lx ss=%04x __ss=%04x\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.ds, r.__ds, r.es, r.__es, r.fs, r.__fs, r.gs, r.__gs, r.orig_eax, r.eip, r.cs, r.__cs, r.eflags, r.esp, r.ss, r.__ss); 26 | + fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx xds=%08lx xes=%08lx xfs=%08lx xgs=%08lx orig_eax=%08lx eip=%08lx xcs=%08lx eflags=%08lx esp=%08lx xss=%08lx\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.xds, r.xes, r.xfs, r.xgs, r.orig_eax, r.eip, r.xcs, r.eflags, r.esp, r.xss); 27 | 28 | copyout (buf, len, pid, r.edx); 29 | 30 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/002-No_enclosure_support.dpatch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | ## 002-No_enclosure_support by Pat Suwalski 3 | ## 4 | ## DP: The root of the problem is that a lot of the logic behind building 5 | ## DP: the enclosure map and printing the disk list compares directly the 6 | ## DP: adapter channel list with the physical disk enclosure number, like so: 7 | ## DP: 8 | ## DP: if (device->device[k].enclosure == a->channel[j]) 9 | ## DP: 10 | ## DP: The problem is that one is a uint16_t and the other is a uint8_t. 11 | ## DP: When an enclosure is not present, the value comes back as all-ones. 12 | ## DP: So, the code was trying in numerous places to compare 0xffff with 13 | ## DP: 0xff. Adjusting the struct so both members are uint16_t fixes this. 14 | ## DP: 15 | ## DP: The patch also changes the output when no enclosure is present to 16 | ## DP: put an asterisk as the enclosure ID in the output. 17 | ## DP: The output on the same machine now looks like this: 18 | ## DP: 19 | ## DP: a0 PERC 5/i Integrated encl:1 ldrv:2 batt:good 20 | ## DP: a0d0 19GiB RAID 5 1x4 DEGRADED 21 | ## DP: a0d1 5567GiB RAID 5 1x4 DEGRADED 22 | ## DP: a0e*s0 1863GiB a0d0+ online errs: media:0 other:28 23 | ## DP: a0e*s1 1863GiB a0d0+ rebuild errs: media:0 other:26 24 | ## DP: a0e*s2 1863GiB a0d0+ online errs: media:0 other:28 25 | ## DP: a0e*s3 1863GiB a0d0+ online errs: media:0 other:28 26 | 27 | @DPATCH@ 28 | Index: adapter.c 29 | =================================================================== 30 | --- a/src/adapter.c (revision 6) 31 | +++ b/src/adapter.c (working copy) 32 | @@ -192,7 +192,10 @@ 33 | d->channel = info->enclosure; 34 | d->id = info->slot; 35 | 36 | - snprintf (d->name, sizeof (d->name), "%se%us%u", a->name, d->channel, d->id); 37 | + if (d->channel == DISK_NOENC) 38 | + snprintf (d->name, sizeof (d->name), "%se*s%u", a->name, d->id); 39 | + else 40 | + snprintf (d->name, sizeof (d->name), "%se%us%u", a->name, d->channel, d->id); 41 | 42 | d->inquiry = info->inquiry.inq; 43 | strncpy (d->vendor, d->inquiry.vendor_info, sizeof (d->vendor) - 1); 44 | @@ -691,6 +694,7 @@ 45 | for (j = 0; j < a->num_channels; ++j) 46 | if (device->device[k].enclosure == a->channel[j]) 47 | break; 48 | + 49 | if (j < a->num_channels) 50 | continue; 51 | 52 | Index: mega.h 53 | =================================================================== 54 | --- a/src/mega.h (revision 6) 55 | +++ b/src/mega.h (working copy) 56 | @@ -114,7 +114,10 @@ 57 | #define SCSI_SELFTEST_FOREGROUND_SHORT 0x05 58 | #define SCSI_SELFTEST_FOREGROUND_LONG 0x06 59 | 60 | +/* Drives without enclosure report this as the enclosure ID */ 61 | +#define DISK_NOENC 0xffff 62 | 63 | + 64 | /* megaraid2 header file gets this wrong. */ 65 | typedef struct { 66 | uint8_t max_commands; 67 | @@ -545,7 +548,7 @@ 68 | uint16_t dram_size; /* size of DRAM in MB */ 69 | uint16_t rebuild_rate; /* rebuild rate as percentage */ 70 | uint16_t num_channels; /* number of channels or enclosures */ 71 | - uint8_t *channel; /* channel/enclosure map */ 72 | + uint16_t *channel; /* channel/enclosure map */ 73 | uint16_t num_physicals; 74 | struct physical_drive_info *physical; 75 | struct physical_drive_info **physical_list; /* ordered list of physical devices */ 76 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/003-Fix_disk_enumeration_loop.dpatch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | ## 003-Fix_disk_enumeration_loop.dpatch by Pat Suwalski 3 | ## 4 | ## DP: When my controller has a failed disk, megasasctl fails. 5 | ## DP: 6 | ## DP: I have tracked the problem down to a bad assumption, that the various 7 | ## DP: disk enumeration loops would use the number of currently online drives 8 | ## DP: as the basis for the iterator. 9 | ## DP: 10 | ## DP: This number decreases when a disk fails. It is not noticeable in many 11 | ## DP: cases, because on many some controllers pinfo->pd_present_count is 12 | ## DP: one higher than the actual number of disks. 13 | ## DP: However, the same situation would be encountered in a RAID1 system with 14 | ## DP: two failed disks. 15 | ## DP: 16 | ## DP: The attached one-line patch uses the number of ports 17 | ## DP: on the controller as the basis. 18 | 19 | @DPATCH@ 20 | 21 | This patch fixes a segfault based on an incorrect assumption that the number 22 | of physical drives to loop over is the number of currently online drives 23 | connected to the controller. This change plays it safe and makes it use the 24 | number of ports on the controller, with a fallback for the worst case 25 | scenario. 26 | 27 | Pat Suwalski 28 | 29 | diff -ur megactl-code/src/adapter.c megactl-code2/src/adapter.c 30 | --- a/src/adapter.c 2014-01-20 11:13:48.114598462 -0500 31 | +++ b/src/adapter.c 2014-01-20 14:33:32.950851825 -0500 32 | @@ -706,7 +706,31 @@ 33 | } 34 | qsort (a->channel, a->num_channels, sizeof (*a->channel), cmpChannel); 35 | 36 | - a->num_physicals = pinfo->pd_present_count; 37 | + /* Some notes: 38 | + Different meanings on different models. 39 | + - FC_MAX_PHYSICAL_DEVICES used on older controllers, which is 256 40 | + disks (overallocation) 41 | + - pd_disk_present_count is number of working drives, not counting 42 | + missing drives 43 | + - pd_present_count is unclear. It is pd_disk_present_count + 1 on some 44 | + controllers 45 | + - device_interface.port_count contains number of physical ports on the 46 | + controller 47 | + 48 | + pd_present_count was used here, but in some controllers causes segfaults 49 | + when there is a failed drive, and not enough space is allocated. 50 | + 51 | + Since there cannot be more devices than there are ports, that is a safe 52 | + number to set without going overboard. 53 | + */ 54 | + a->num_physicals = pinfo->device_interface.port_count; 55 | + 56 | + /* On some controllers, namely the PERC6e, the controller does not know 57 | + how many ports there are in the enclosure. Fall back to the worst case 58 | + scenario. */ 59 | + if (a->num_physicals < pinfo->pd_disk_present_count) 60 | + a->num_physicals = FC_MAX_PHYSICAL_DEVICES; 61 | + 62 | if ((a->physical = (struct physical_drive_info *) malloc (a->num_physicals * sizeof (*a->physical))) == NULL) 63 | return "out of memory (physical drives)"; 64 | memset (a->physical, 0, a->num_physicals * sizeof (*a->physical)); 65 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/004-Fix_build_on_recent_distros.dpatch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | ## 004-Fix_build_on_recent_distros.dpatch by Adam Cécile (Le_Vert) 3 | ## 4 | ## DP: SYS_madvise1 has been renamed to SYS_madvise a long time ago (btw, it's 5 | ## DP: not used anywhere) 6 | 7 | @DPATCH@ 8 | --- a/src/callinfo.c 2007-08-21 08:47:29.000000000 +0200 9 | +++ b/src/callinfo.c 2014-01-21 22:51:59.788201043 +0100 10 | @@ -255,7 +255,7 @@ 11 | { SYS_setfsgid32, 0, "setfsgid32" }, 12 | { SYS_pivot_root, 0, "pivot_root" }, 13 | { SYS_mincore, 0, "mincore" }, 14 | - { SYS_madvise1, 0, "madvise1" }, 15 | + { SYS_madvise, 0, "madvise" }, 16 | { SYS_getdents64, 0, "getdents64" }, 17 | { SYS_fcntl64, 0, "fcntl64" }, 18 | { 222, 0, NULL }, 19 | -------------------------------------------------------------------------------- /packaging/debian/megactl/patches/00list: -------------------------------------------------------------------------------- 1 | 000-No_absolute_pathes_in_examples.dpatch 2 | 001-Drop_obsolete_asm_user.h.dpatch 3 | 002-No_enclosure_support.dpatch 4 | 003-Fix_disk_enumeration_loop.dpatch 5 | 004-Fix_build_on_recent_distros.dpatch 6 | -------------------------------------------------------------------------------- /packaging/debian/megactl/preinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # Skip if there's no previous version 4 | if [ ! -z $2 ]; then 5 | if dpkg --compare-versions $2 lt 0.4.1-4; then 6 | update-rc.d -f megactl-makedev remove || true 7 | rm -f /etc/init.d/megactl-makedev 8 | fi 9 | fi 10 | 11 | #DEBHELPER# 12 | 13 | exit 0 14 | -------------------------------------------------------------------------------- /packaging/debian/megactl/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | include /usr/share/dpatch/dpatch.make 7 | 8 | ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) 9 | 10 | CFLAGS = -Wall -g 11 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 12 | CFLAGS += -O0 13 | else 14 | CFLAGS += -O2 15 | endif 16 | 17 | # Get version from changelog as well as lsb_release 18 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 19 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 20 | DIST_NAME := $(shell lsb_release -si) 21 | DIST_RELEASE := $(shell lsb_release -sc) 22 | DIST_VERSION := $(shell lsb_release -sr) 23 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 24 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 25 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 26 | 27 | build: build-stamp 28 | build-stamp: patch-stamp 29 | dh_testdir 30 | $(MAKE) CFLAGS="$(CFLAGS) \$$(INC) \$$(ARCH)" -C src/ 31 | touch $@ 32 | 33 | clean: unpatch 34 | dh_testdir 35 | dh_testroot 36 | rm -f build-stamp 37 | $(MAKE) clean -C src/ 38 | dh_clean 39 | 40 | install: build 41 | dh_testdir 42 | dh_testroot 43 | dh_clean -k 44 | dh_installdirs 45 | 46 | binary-indep: build install 47 | binary-arch: build install 48 | dh_testdir 49 | dh_testroot 50 | dh_installchangelogs 51 | dh_installdocs 52 | dh_installexamples 53 | dh_install 54 | dh_installman 55 | dh_link 56 | dh_strip 57 | dh_compress 58 | dh_fixperms 59 | dh_installdeb 60 | ifeq ($(ARCH),i386) 61 | dh_shlibdeps 62 | endif 63 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 64 | dh_md5sums 65 | dh_builddeb 66 | 67 | binary: binary-indep binary-arch 68 | .PHONY: build clean binary-indep binary-arch binary install 69 | -------------------------------------------------------------------------------- /packaging/debian/megactl/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | http://sf.net/megactl/megactl-([0-9\.]+)\.tar\.gz 3 | -------------------------------------------------------------------------------- /packaging/debian/megactl/wrappers/create-devices-nodes: -------------------------------------------------------------------------------- 1 | # Author: Adam Cécile (Le_Vert) 2 | # License: Public domain 3 | 4 | create_node() { 5 | # Since 2.6.25rc2 linux kernel, megadev0 is created dynamically by udev 6 | # See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90a95af85f22c82f87e5fb714bac7ee06673b0ff 7 | if [ ! -e /dev/megadev0 ]; then 8 | # Not available, try to create it by hand for kernel pre 2.6.25rc2 9 | grep -q 'megadev$' /proc/devices && MEGARAID="ok" 10 | if [ ! -z ${MEGARAID} ]; then 11 | MAJOR=`grep 'megadev$' /proc/devices | head -n 1 | awk '{ print $1 }'` 12 | mknod /dev/megadev0 c $MAJOR 0 13 | return $? 14 | fi 15 | fi 16 | if [ -e /dev/megadev0 ]; then 17 | return 0 18 | else 19 | return 1 20 | fi 21 | } 22 | 23 | create_node_sas() { 24 | grep -q 'megaraid_sas_ioctl$' /proc/devices && MEGARAIDSAS="ok" 25 | if [ ! -z ${MEGARAIDSAS} ]; then 26 | MAJOR=`grep 'megaraid_sas_ioctl$' /proc/devices | head -n 1 | awk '{ print $1 }'` 27 | test -e /dev/megaraid_sas_ioctl_node || mknod /dev/megaraid_sas_ioctl_node c $MAJOR 0 28 | return 0 29 | else 30 | return 1 31 | fi 32 | } 33 | -------------------------------------------------------------------------------- /packaging/debian/megactl/wrappers/megactl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: Adam Cécile (Le_Vert) 4 | # License: Public domain 5 | 6 | . /usr/lib/megactl/create-devices-nodes 7 | 8 | create_node 9 | 10 | if [ $? -eq 0 ]; then 11 | /usr/lib/megactl/megactl $@ 12 | else 13 | echo "No LSI MegaRAID cards found. You may try megasasctl instead." 14 | exit 1 15 | fi 16 | -------------------------------------------------------------------------------- /packaging/debian/megactl/wrappers/megasasctl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: Adam Cécile (Le_Vert) 4 | # License: Public domain 5 | 6 | . /usr/lib/megactl/create-devices-nodes 7 | 8 | create_node_sas 9 | 10 | if [ $? -eq 0 ]; then 11 | /usr/lib/megactl/megasasctl $@ 12 | else 13 | echo "No LSI MegaRAID SAS cards found. You may try megactl instead." 14 | exit 1 15 | fi 16 | -------------------------------------------------------------------------------- /packaging/debian/megactl/wrappers/megatrace: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: Adam Cécile (Le_Vert) 4 | # License: Public domain 5 | 6 | . /usr/lib/megactl/create-devices-nodes 7 | 8 | create_node 9 | create_node_sas 10 | 11 | /usr/lib/megactl/megatrace $@ 12 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for megaide-status package 2 | ---------------------------------------- 3 | 4 | Required configuration: 5 | ----------------------- 6 | 7 | This software uses information from /proc/megaide/. 8 | However the megaide kernel module report all disk controller ports, even if 9 | there are not used. 10 | So there is now way to figure out if a disk is not used or if it's offline. 11 | 12 | That's why I added /etc/megaide-status.conf configuration file which should 13 | be filled with "in-use" disks ids. 14 | 15 | The syntaxe is 'cup'. 16 | In example, first disk on second logicial volume and third controller is: 17 | c2u1p0 18 | 19 | The default configuration file is suitable for regular SATA systems with 20 | only one RAID array. 21 | 22 | Possible configuration: 23 | ----------------------- 24 | 25 | If you want to change the default configuration of the init script you 26 | can create the file /etc/default/megaide-statusd and specify the following 27 | values. 28 | 29 | MAILTO= 30 | PERIOD= 31 | REMIND= 32 | 33 | Use MAILTO to specify which user shall get the status mails 34 | (default is root). 35 | 36 | With PERIOD you can fix the seconds between each check. 37 | 38 | And REMIND specifies the seconds between each reminder. 39 | 40 | 41 | -- Adam Cécile (Le_Vert) Mon, 04 Feb 2008 17:28:20 +0100 42 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/changelog: -------------------------------------------------------------------------------- 1 | megaide-status (0.4) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Wed, 03 Jul 2019 10:57:27 +0200 6 | 7 | megaide-status (0.3) unstable; urgency=medium 8 | 9 | * Bump debhelper compat to 5 because 4 is not supported anymore 10 | on Debian Stretch. 11 | 12 | -- Adam Cecile Wed, 02 Aug 2017 00:36:03 +0200 13 | 14 | megaide-status (0.2) unstable; urgency=low 15 | 16 | * Packaging cleanup. 17 | 18 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 15:14:04 +0200 19 | 20 | megaide-status (0.1) unstable; urgency=low 21 | 22 | * Initial release. 23 | 24 | -- Adam Cécile (Le_Vert) Mon, 04 Feb 2008 17:28:20 +0100 25 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/control: -------------------------------------------------------------------------------- 1 | Source: megaide-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.8.0 7 | 8 | Package: megaide-status 9 | Architecture: all 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, python, lsb-base, daemon, bsd-mailx | mailx 11 | Description: get RAID status out of LSI MegaIDE Software RAID controllers 12 | The megaide-status software is a query tool to access the running 13 | configuration and status of LSI MegaIDE HBAs. 14 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Mon, 04 Feb 2008 17:28:20 +0100. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: Copyright (C) 2008 Adam Cécile (Le_Vert) 7 | 8 | License: 9 | 10 | This program is free software; you can redistribute it and/or 11 | modify it under the terms of the GNU General Public License, version 2 12 | as published by the Free Software Foundation. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 17 | See the GNU General Public License for details. 18 | 19 | On Debian GNU/Linux systems, the complete text of the GNU General 20 | Public License can be found in `/usr/share/common-licenses/GPL'. 21 | 22 | This package is highly based on Steffen Joeris works done 23 | for the mpt-status package. 24 | Thanks a lot Steffen! 25 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | etc 3 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/install: -------------------------------------------------------------------------------- 1 | megaide-status usr/sbin 2 | megaide-status.conf etc 3 | -------------------------------------------------------------------------------- /packaging/debian/megaide-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: 17 | build-arch: 18 | build-indep: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | 31 | binary-arch: build install 32 | binary-indep: build install 33 | dh_testdir -i 34 | dh_testroot -i 35 | dh_installchangelogs -i 36 | dh_installdocs -i 37 | dh_install -i 38 | dh_installinit -i --name megaide-statusd 39 | dh_link -i 40 | dh_strip -i 41 | dh_compress -i 42 | dh_fixperms -i 43 | dh_installdeb -i 44 | dh_shlibdeps -i 45 | dh_gencontrol -i -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 46 | dh_md5sums -i 47 | dh_builddeb -i 48 | 49 | binary: binary-indep binary-arch 50 | .PHONY: build clean binary-indep binary-arch binary install 51 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/changelog: -------------------------------------------------------------------------------- 1 | megamgr (5.20-4) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Wed, 03 Jul 2019 00:18:05 +0200 6 | 7 | megamgr (5.20-3) unstable; urgency=low 8 | 9 | * Fix typo in package's description. 10 | 11 | -- Adam Cécile (Le_Vert) Thu, 02 Feb 2012 14:46:54 +0100 12 | 13 | megamgr (5.20-2) unstable; urgency=low 14 | 15 | * Update create-devices-nodes to handle kernels 2.6.25rc2+. 16 | 17 | -- Adam Cécile (Le_Vert) Mon, 16 Feb 2009 19:33:05 +0100 18 | 19 | megamgr (5.20-1) unstable; urgency=low 20 | 21 | * Initial release. 22 | 23 | -- Adam Cécile (Le_Vert) Tue, 26 Aug 2008 10:49:33 +0200 24 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/control: -------------------------------------------------------------------------------- 1 | Source: megamgr 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.2 7 | Homepage: http://www.lsi.com/files/support/rsa/utilities/megamgr 8 | 9 | Package: megamgr 10 | Architecture: i386 amd64 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: Manage LSI MegaRAID chip based cards 13 | This tool allow you to access the RAID card BIOS from Linux. 14 | . 15 | Useful to manage arrays or start maintenance operations. 16 | . 17 | If you have a MegaRAID card from DELL (PERC/CERC), look at 18 | dellmgr package instead. 19 | . 20 | This tool will not work on recent SAS cards. 21 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Tue, 26 Aug 2008 10:49:33 +0200. 3 | 4 | It was downloaded from http://www.lsi.com/files/support/rsa/utilities/megamgr/ 5 | 6 | Upstream Author: 7 | 8 | LSI 9 | 10 | Copyright: 11 | 12 | Copyright (C) LSI 13 | 14 | License: 15 | 16 | LSI proprietary. 17 | 18 | The Debian packaging is Copyright (C) 2008-2012 Adam Cécile (Le_Vert) 19 | and is licensed under GNU General Public License 20 | version 2 (or later) see `/usr/share/common-licenses/GPL-2'. 21 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | usr/lib/megamgr 3 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DESTDIR = $(CURDIR)/debian/megamgr 7 | 8 | # Get version from changelog as well as lsb_release 9 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 10 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 11 | DIST_NAME := $(shell lsb_release -si) 12 | DIST_RELEASE := $(shell lsb_release -sc) 13 | DIST_VERSION := $(shell lsb_release -sr) 14 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 15 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 16 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 17 | 18 | build: build-arch build-indep 19 | build-arch: 20 | build-indep: 21 | 22 | clean: 23 | dh_testdir 24 | dh_testroot 25 | dh_clean 26 | 27 | install: 28 | dh_testdir 29 | dh_testroot 30 | dh_clean -k 31 | dh_installdirs 32 | install -D -m 755 $(CURDIR)/megamgr.bin \ 33 | $(DESTDIR)/usr/lib/megamgr/megamgr.real 34 | install -D -m 644 $(CURDIR)/debian/wrappers/create-device-node \ 35 | $(DESTDIR)/usr/lib/megamgr/create-device-node 36 | install -D -m 755 $(CURDIR)/debian/wrappers/megamgr \ 37 | $(DESTDIR)/usr/sbin/megamgr 38 | 39 | 40 | binary-indep: build install 41 | binary-arch: build install 42 | dh_testdir 43 | dh_testroot 44 | dh_installchangelogs ut_linux_mgr_5.20.txt 45 | dh_installdocs 46 | dh_link 47 | dh_strip 48 | dh_compress 49 | dh_fixperms 50 | dh_installdeb 51 | dh_shlibdeps 52 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 53 | dh_md5sums 54 | dh_builddeb 55 | 56 | binary: binary-indep binary-arch 57 | .PHONY: build clean binary-indep binary-arch binary install configure 58 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/wrappers/create-device-node: -------------------------------------------------------------------------------- 1 | # Author: Adam Cécile (Le_Vert) 2 | # License: Public domain 3 | 4 | create_node() { 5 | # Since 2.6.25rc2 linux kernel, megadev0 is created dynamically by udev 6 | # See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90a95af85f22c82f87e5fb714bac7ee06673b0ff 7 | if [ ! -e /dev/megadev0 ]; then 8 | # Not available, try to create it by hand for kernel pre 2.6.25rc2 9 | grep -q 'megadev$' /proc/devices && MEGARAID="ok" 10 | if [ ! -z ${MEGARAID} ]; then 11 | MAJOR=`grep 'megadev$' /proc/devices | head -n 1 | awk '{ print $1 }'` 12 | mknod /dev/megadev0 c $MAJOR 0 13 | return $? 14 | fi 15 | fi 16 | if [ -e /dev/megadev0 ]; then 17 | return 0 18 | else 19 | return 1 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /packaging/debian/megamgr/wrappers/megamgr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /usr/lib/megamgr/create-device-node 4 | 5 | create_node 6 | 7 | if [ $? -eq 0 ]; then 8 | /usr/lib/megamgr/megamgr.real $@ 9 | else 10 | echo "No LSI MegaRAID cards found." 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for aacraid-status package 2 | ---------------------------------------- 3 | 4 | Before you can use the aacraid-status tool you have to make sure that the 5 | /dev/afa0 device node exists. 6 | 7 | Possible configuration: 8 | ---------------------- 9 | 10 | If you want to change the default configuration of the init script you 11 | can create the file /etc/default/aacraid-statusd and specify the following 12 | values. 13 | 14 | MAILTO= 15 | PERIOD= 16 | REMIND= 17 | 18 | Use MAILTO to specify which user shall get the status mails 19 | (default is root). 20 | 21 | With PERIOD you can fix the seconds between each check. 22 | 23 | And REMIND specifies the seconds between each reminder. 24 | 25 | 26 | -- Adam Cécile (Le_Vert) Mon, 24 Sep 2007 15:55:09 +0200 27 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/changelog: -------------------------------------------------------------------------------- 1 | megaraid-status (0.13) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Wed, 03 Jul 2019 00:22:06 +0200 6 | 7 | megaraid-status (0.12) unstable; urgency=medium 8 | 9 | * Handle "ready" disk status as a good one. 10 | 11 | -- Adam Cécile Thu, 11 Feb 2016 08:08:21 +0100 12 | 13 | megaraid-status (0.11) unstable; urgency=medium 14 | 15 | * Handle disks without enclosure ID (patch by Pat Suwalski 16 | ) 17 | 18 | -- Adam Cécile (Le_Vert) Sat, 14 Dec 2013 14:47:29 +0100 19 | 20 | megaraid-status (0.10) unstable; urgency=low 21 | 22 | * Update initscript from mpt-status 1.2.0-7 package (Closes: #79). 23 | * Hardcode binary path and exit with error if unavailable (Closes: #16). 24 | 25 | -- Adam Cécile (Le_Vert) Wed, 22 Feb 2012 22:12:56 +0100 26 | 27 | megaraid-status (0.9) unstable; urgency=low 28 | 29 | * Do not fail with HotSpare disks. 30 | 31 | -- Adam Cécile (Le_Vert) Mon, 16 Aug 2010 10:35:39 +0200 32 | 33 | megaraid-status (0.8) unstable; urgency=low 34 | 35 | * Fix megaraid initscript card detection for recent kernels. 36 | 37 | -- Adam Cécile (Le_Vert) Mon, 20 Apr 2009 15:25:24 +0200 38 | 39 | megaraid-status (0.7) unstable; urgency=low 40 | 41 | * Fix parsing issues with disk vendor/model containing spaces. 42 | * Now display SMART warnings coming from the disk. 43 | * Most of the output parser has been re-written to be more robust. 44 | 45 | -- Adam Cécile (Le_Vert) Fri, 10 Oct 2008 10:54:56 +0200 46 | 47 | megaraid-status (0.6) unstable; urgency=low 48 | 49 | * All adapter/logical/physical IDs should are now handled as [0-9]+ 50 | instead of [0-9]. 51 | 52 | -- Adam Cécile (Le_Vert) Thu, 09 Oct 2008 10:04:29 +0200 53 | 54 | megaraid-status (0.5) unstable; urgency=low 55 | 56 | * Initscripts shouldn't rely on device nodes. Use /proc/devices to check 57 | available cards instead. 58 | 59 | -- Adam Cécile (Le_Vert) Fri, 22 Aug 2008 13:55:05 +0200 60 | 61 | megaraid-status (0.4) unstable; urgency=low 62 | 63 | * Packaging cleanup. 64 | * Don't use custom runlevel priority anymore, thanks to megactl packaging 65 | improvment. 66 | 67 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 15:32:11 +0200 68 | 69 | megaraid-status (0.3) unstable; urgency=low 70 | 71 | * Return 1 if something wrong is detected. 72 | 73 | -- Adam Cécile (Le_Vert) Tue, 09 Oct 2007 16:50:53 +0200 74 | 75 | megaraid-status (0.2) unstable; urgency=low 76 | 77 | * Improve regex. 78 | 79 | -- Adam Cécile (Le_Vert) Wed, 26 Sep 2007 18:09:01 +0200 80 | 81 | megaraid-status (0.1) unstable; urgency=low 82 | 83 | * Initial release. 84 | 85 | -- Adam Cécile (Le_Vert) Mon, 24 Sep 2007 15:55:09 +0200 86 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/control: -------------------------------------------------------------------------------- 1 | Source: megaraid-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.2 7 | 8 | Package: megaraid-status 9 | Architecture: all 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, python, lsb-base, daemon, bsd-mailx | mailx, megactl 11 | Description: get RAID status out of LSI MegaRAID SCSI/SAS HW RAID controllers 12 | The megaraid-status software is a query tool to access the running 13 | configuration and status of LSI MegaRAID SCSI/SAS HBAs. aacraid-status allows 14 | you to monitor the health and status of your RAID setup. 15 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Mon, 24 Sep 2007 15:55:09 +0200. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: 7 | 8 | Copyright (C) 2007-2012 Adam Cécile (Le_Vert) 9 | 10 | License: 11 | 12 | This program is free software; you can redistribute it and/or 13 | modify it under the terms of the GNU General Public License, version 2 14 | as published by the Free Software Foundation. 15 | 16 | This program is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 19 | See the GNU General Public License for details. 20 | 21 | On Debian GNU/Linux systems, the complete text of the GNU General 22 | Public License can be found in `/usr/share/common-licenses/GPL-2'. 23 | 24 | This package is highly based on Steffen Joeris works done 25 | for the mpt-status package. 26 | Thanks a lot Steffen! 27 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/install: -------------------------------------------------------------------------------- 1 | megaraid-status usr/sbin 2 | megaraidsas-status usr/sbin 3 | -------------------------------------------------------------------------------- /packaging/debian/megaraid-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: build-indep build-arch 17 | build-indep: 18 | build-arch: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | 31 | binary-arch: build install 32 | binary-indep: build install 33 | dh_testdir -i 34 | dh_testroot -i 35 | dh_installchangelogs -i 36 | dh_installdocs -i 37 | dh_install -i 38 | dh_installinit -i --name megaraid-statusd 39 | dh_installinit -i --name megaraidsas-statusd 40 | dh_link -i 41 | dh_strip -i 42 | dh_compress -i 43 | dh_fixperms -i 44 | dh_installdeb -i 45 | dh_shlibdeps -i 46 | dh_gencontrol -i -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 47 | dh_md5sums -i 48 | dh_builddeb -i 49 | 50 | binary: binary-indep binary-arch 51 | .PHONY: build clean binary-indep binary-arch binary install 52 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for mpt-status package 2 | ------------------------------------ 3 | 4 | Before you can use the mpt-status tool you have to make sure that the 5 | mptctl module is loaded. You can do that with "modprobe mptctl" or with 6 | adding mptctl to the file "/etc/modules" to make sure it is always 7 | loaded during system startup. 8 | 9 | Possible configuration: 10 | ---------------------- 11 | 12 | If you want to change the default configuration of the init script you 13 | can create the file /etc/default/mpt-statusd and specify the following 14 | values. 15 | 16 | MAILTO= 17 | PERIOD= 18 | REMIND= 19 | ID= 20 | 21 | Use MAILTO to specify which user shall get the status mails 22 | (default is root). 23 | 24 | With PERIOD you can fix the seconds between each check. 25 | 26 | And REMIND specifies the seconds between each reminder. 27 | 28 | By setting the ID field it is possible to specify the primary device, 29 | which can be find out by using "mpt-status -p" (the default is 0). 30 | 31 | -- Steffen Joeris Wed, 10 Jan 2007 14:37:46 +0100 32 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/control: -------------------------------------------------------------------------------- 1 | Source: mpt-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Debian QA Group 5 | Build-Depends: debhelper (>= 5), libpci-dev | pciutils-dev, lsb-release, dpatch 6 | Standards-Version: 3.9.5 7 | 8 | Package: mpt-status 9 | Architecture: any 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, daemon, bsd-mailx | mailx 11 | Description: get RAID status out of mpt (and other) HW RAID controllers 12 | The mpt-status software is a query tool to access the running 13 | configuration and status of LSI SCSI HBAs. mpt-status allows you to 14 | monitor the health and status of your RAID setup. 15 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Steffen Joeris on 2 | Fri, 10 Feb 2006 20:42:38 +0100. 3 | 4 | It was downloaded from http://www.drugphish.ch/~ratz/mpt-status/ 5 | 6 | Copyright Holder: Copyright (C) 2005 Roberto Nibali 7 | 8 | Copyright (C) 2004 CNET Networks, Inc. 9 | found in mpt-status.c 10 | 11 | Copyright (c) 1997--2002 Martin Mares 12 | found in incl/header.h and incl/pci.h 13 | 14 | License: 15 | 16 | This program is free software; you can redistribute it and/or 17 | modify it under the terms of the GNU General Public License, version 2 18 | as published by the Free Software Foundation. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 23 | See the GNU General Public License for details. 24 | 25 | On Debian GNU/Linux systems, the complete text of the GNU General 26 | Public License can be found in `/usr/share/common-licenses/GPL-2'. 27 | 28 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/docs: -------------------------------------------------------------------------------- 1 | doc/README 2 | doc/TODO 3 | doc/ReleaseNotes 4 | doc/DeveloperNotes 5 | doc/Changelog 6 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/includes/mpi_type.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2004 LSI Logic Corporation. 3 | * 4 | * 5 | * Name: mpi_type.h 6 | * Title: MPI Basic type definitions 7 | * Creation Date: June 6, 2000 8 | * 9 | * mpi_type.h Version: 01.05.01 10 | * 11 | * Version History 12 | * --------------- 13 | * 14 | * Date Version Description 15 | * -------- -------- ------------------------------------------------------ 16 | * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 17 | * 06-06-00 01.00.01 Update version number for 1.0 release. 18 | * 11-02-00 01.01.01 Original release for post 1.0 work 19 | * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. 20 | * 08-08-01 01.02.01 Original release for v1.2 work. 21 | * 05-11-04 01.03.01 Original release for MPI v1.3. 22 | * 08-19-04 01.05.01 Original release for MPI v1.5. 23 | * -------------------------------------------------------------------------- 24 | */ 25 | 26 | #ifndef MPI_TYPE_H 27 | #define MPI_TYPE_H 28 | 29 | 30 | /******************************************************************************* 31 | * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER 32 | * is defined to be a near pointer. MPI_POINTER can be defined as a far pointer 33 | * by defining MPI_POINTER as "far *" before this header file is included. 34 | */ 35 | #ifndef MPI_POINTER 36 | #define MPI_POINTER * 37 | #endif 38 | 39 | 40 | /***************************************************************************** 41 | * 42 | * B a s i c T y p e s 43 | * 44 | *****************************************************************************/ 45 | 46 | typedef signed char S8; 47 | typedef unsigned char U8; 48 | typedef signed short S16; 49 | typedef unsigned short U16; 50 | 51 | 52 | typedef int32_t S32; 53 | typedef u_int32_t U32; 54 | 55 | typedef struct _S64 56 | { 57 | U32 Low; 58 | S32 High; 59 | } S64; 60 | 61 | typedef struct _U64 62 | { 63 | U32 Low; 64 | U32 High; 65 | } U64; 66 | 67 | 68 | /****************************************************************************/ 69 | /* Pointers */ 70 | /****************************************************************************/ 71 | 72 | typedef S8 *PS8; 73 | typedef U8 *PU8; 74 | typedef S16 *PS16; 75 | typedef U16 *PU16; 76 | typedef S32 *PS32; 77 | typedef U32 *PU32; 78 | typedef S64 *PS64; 79 | typedef U64 *PU64; 80 | 81 | 82 | #endif 83 | 84 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/manpages: -------------------------------------------------------------------------------- 1 | man/mpt-status.8 2 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/mpt-status.install: -------------------------------------------------------------------------------- 1 | mpt-status /usr/sbin/ 2 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/patches/0001-include.headers.patch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | 3 | --- mpt-status-1.2.0.orig/mpt-status.h 2010-06-30 11:46:49.000000000 +0200 4 | +++ mpt-status-1.2.0/mpt-status.h 2010-06-30 11:48:58.000000000 +0200 5 | @@ -2,9 +2,6 @@ 6 | #define _MPT_STATUS_H 7 | 8 | #include 9 | -#ifdef __linux__ 10 | -#include 11 | -#endif 12 | 13 | #ifdef SANITIZED_KERNEL_HEADERS 14 | #include "mpt-sanitized.h" 15 | @@ -15,13 +12,13 @@ 16 | #ifndef __kernel 17 | #define __kernel 18 | #endif 19 | -#include "pci.h" // config.h and header.h from pciutils package 20 | -#include "lsi/mpi_type.h" 21 | -#include "lsi/mpi.h" 22 | -#include "lsi/mpi_ioc.h" 23 | -#include "lsi/mpi_cnfg.h" 24 | -#include "lsi/mpi_raid.h" 25 | -#include "mptctl.h" 26 | +#include // config.h and header.h from pciutils package 27 | +#include "debian/includes/mpi_type.h" 28 | +#include "debian/includes/mpi.h" 29 | +#include "debian/includes/mpi_ioc.h" 30 | +#include "debian/includes/mpi_cnfg.h" 31 | +#include "debian/includes/mpi_raid.h" 32 | +#include "debian/includes/mptctl.h" 33 | //#include "mptbase.h" 34 | #endif // SANITIZED_KERNEL_HEADERS 35 | 36 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/patches/00list: -------------------------------------------------------------------------------- 1 | 0001-include.headers.patch 2 | fix_debug_crash.patch 3 | use_dpkg-buildflags.patch 4 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/patches/fix_debug_crash.patch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | # 3 | # DP: Fix segfault when invoked with --debug 4 | # Author: Apollon Oikonomopoulos 5 | # Last-Update: 2013-12-17 6 | # 7 | # The short form of -d is marked as requiring an argument, while the long option 8 | # (--debug) was marked as taking an optional argument. Since the code really 9 | # doesn't handle the optional argument, we change --debug to require an argument 10 | # and update the help message accordingly. 11 | 12 | --- a/mpt-status.c 13 | +++ b/mpt-status.c 14 | @@ -57,7 +57,7 @@ 15 | static const struct option long_options[] = { 16 | { "autoload", no_argument, &sel, ARG_M_A }, 17 | { "controller", required_argument, NULL, 'u' }, 18 | - { "debug", optional_argument, NULL, 'd' }, 19 | + { "debug", required_argument, NULL, 'd' }, 20 | { "help", no_argument, NULL, 'h' }, 21 | { "newstyle", no_argument, NULL, 'n' }, 22 | { "probe_id", no_argument, NULL, 'p' }, 23 | @@ -74,7 +74,7 @@ 24 | "\n" 25 | " --autoload This will try to automatically load the \n" 26 | " mptctl kernel module\n" 27 | - " -d, --debug [] Enable debugging and set level optionally\n" 28 | + " -d, --debug Enable debugging and set level\n" 29 | " NOTE: This is not fully implemented yet\n" 30 | " -h, --help Print this help information page\n" 31 | " -n, --newstyle Use the new style output. This parameter was\n" 32 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/patches/use_dpkg-buildflags.patch: -------------------------------------------------------------------------------- 1 | #! /bin/sh /usr/share/dpatch/dpatch-run 2 | # 3 | # DP: Use hardened build flags 4 | # Author: Apollon Oikonomopoulos 5 | # Last-Update: 2013-12-17 6 | 7 | --- a/Makefile 8 | +++ b/Makefile 9 | @@ -3,12 +3,12 @@ 10 | KERNEL_PATH := /usr/src/linux 11 | KERNEL_PATH_B := /lib/modules/`uname -r`/build 12 | KERNEL_PATH_S := /lib/modules/`uname -r`/source 13 | -CFLAGS := -Iincl -Wall -W -O2 \ 14 | +CFLAGS := $(shell dpkg-buildflags --get CFLAGS) \ 15 | -I${KERNEL_PATH}/drivers/message/fusion \ 16 | -I${KERNEL_PATH_B}/drivers/message/fusion \ 17 | -I${KERNEL_PATH_S}/drivers/message/fusion 18 | -DFLAGS := #-DSANITIZED_KERNEL_HEADERS 19 | -LDFLAGS := 20 | +DFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) 21 | +LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) 22 | DESTDIR := 23 | MANDIR := /usr/share/man 24 | CC := gcc 25 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # Uncomment this to turn on verbose mode. 3 | #export DH_VERBOSE=1 4 | 5 | include /usr/share/dpatch/dpatch.make 6 | 7 | DESTDIR = $(CURDIR)/debian/mpt-status 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | 20 | build: build-arch build-indep 21 | build-indep: 22 | build-arch: build-stamp 23 | build-stamp: patch-stamp 24 | dh_testdir 25 | $(MAKE) 26 | touch $@ 27 | 28 | clean: unpatch 29 | dh_testdir 30 | dh_testroot 31 | dh_clean 32 | rm -f build-stamp 33 | rm -f mpt-status 34 | 35 | install: 36 | dh_testdir 37 | dh_testroot 38 | dh_clean -k 39 | dh_installdirs 40 | 41 | binary-indep: build install 42 | binary-arch: build install 43 | dh_testdir 44 | dh_testroot 45 | dh_install 46 | dh_installchangelogs 47 | dh_installdocs 48 | mv -v $(DESTDIR)/usr/share/doc/mpt-status/Changelog $(DESTDIR)/usr/share/doc/mpt-status/changelog 49 | dh_installinit --init-script=mpt-statusd 50 | dh_link 51 | dh_strip 52 | dh_compress 53 | dh_fixperms 54 | dh_installdeb 55 | dh_shlibdeps 56 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 57 | dh_md5sums 58 | dh_builddeb 59 | 60 | binary: binary-indep binary-arch 61 | .PHONY: build clean binary-indep binary-arch binary install 62 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/source/format: -------------------------------------------------------------------------------- 1 | 1.0 2 | -------------------------------------------------------------------------------- /packaging/debian/mpt-status/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | http://www.drugphish.ch/~ratz/mpt-status/mpt-status-([0-9.]+)\.tar\.gz debian uupdate 3 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/README.Debian: -------------------------------------------------------------------------------- 1 | README.Debian for sas2ircu-status package 2 | ---------------------------------------- 3 | 4 | Possible configuration: 5 | ---------------------- 6 | 7 | If you want to change the default configuration of the init script you 8 | can create the file /etc/default/sas2ircu-statusd and specify the following 9 | values. 10 | 11 | MAILTO= 12 | PERIOD= 13 | REMIND= 14 | 15 | Use MAILTO to specify which user shall get the status mails 16 | (default is root). 17 | 18 | With PERIOD you can fix the seconds between each check. 19 | 20 | And REMIND specifies the seconds between each reminder. 21 | 22 | 23 | -- Adam Cécile (Le_Vert) Mon, 24 Sep 2007 15:55:09 +0200 24 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/changelog: -------------------------------------------------------------------------------- 1 | sas2ircu-status (0.8) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:32:26 +0200 6 | 7 | sas2ircu-status (0.7) unstable; urgency=medium 8 | 9 | * New release with better disk handling (Closes: GitHub#23). 10 | 11 | -- Adam Cécile (Le_Vert) Mon, 14 Dec 2015 08:48:12 +0100 12 | 13 | sas2ircu-status (0.6) unstable; urgency=medium 14 | 15 | * Reset disk list after each array processing (Closes: #287). 16 | * Write manpage. 17 | 18 | -- Adam Cécile (Le_Vert) Sun, 26 Jan 2014 16:47:08 +0100 19 | 20 | sas2ircu-status (0.5) unstable; urgency=low 21 | 22 | * Use full sas2ircu path to avoid issues if PATH is not set (Closes: #75). 23 | * Don't treat inactive arrays as failed ones (Closes: #219). 24 | * Ignore non-RAID controllers (Closes: #240). 25 | 26 | -- Adam Cécile (Le_Vert) Fri, 26 Jul 2013 15:17:06 +0200 27 | 28 | sas2ircu-status (0.4) unstable; urgency=low 29 | 30 | * Fix a stupid mistake breaking multi-array support (Closes: #214). 31 | Thanks to for his patch. 32 | 33 | -- Adam Cécile (Le_Vert) Tue, 17 Jul 2012 21:38:42 +0200 34 | 35 | sas2ircu-status (0.3) unstable; urgency=low 36 | 37 | * One disk may not appear if sas2ircu return an enclosure element after 38 | disks list (Closes: http://hwraid.le-vert.net/ticket/65). 39 | * Import init script changes from mpt-status-1.2.0-7 package: 40 | - Script won't stop anymore because of set -e 41 | 42 | -- Adam Cécile (Le_Vert) Mon, 18 Jul 2011 17:38:39 +0200 43 | 44 | sas2ircu-status (0.2) unstable; urgency=low 45 | 46 | * Add --nagios so the script can be called through NRPE. 47 | 48 | -- Adam Cécile (Le_Vert) Thu, 09 Dec 2010 11:25:54 +0100 49 | 50 | sas2ircu-status (0.1) unstable; urgency=low 51 | 52 | * Initial release. 53 | 54 | -- Adam Cécile (Le_Vert) Wed, 08 Dec 2010 19:04:52 +0100 55 | 56 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/control: -------------------------------------------------------------------------------- 1 | Source: sas2ircu-status 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.5 7 | 8 | Package: sas2ircu-status 9 | Architecture: all 10 | Depends: ${shlibs:Depends}, ${misc:Depends}, python, lsb-base, daemon, bsd-mailx | mailx, sas2ircu 11 | Description: get RAID status out of LSI Fusion MPT SAS2 HW RAID controllers 12 | The sas2ircu-status software is a query tool to access the running 13 | configuration and status of LSI Fusion MPT SAS2 HBAs. sas2ircu-status allows 14 | you to monitor the health and status of your RAID setup. 15 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Wed, 08 Dec 2010 19:04:52 +0100. 3 | 4 | It was downloaded from http://hwraid.le-vert.net 5 | 6 | Copyright Holder: 7 | Copyright (C) 2010 Adam Cécile (Le_Vert) 8 | 9 | License: 10 | 11 | This program is free software: you can redistribute it and/or modify 12 | it under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 2 of the License, or 14 | (at your option) any later version. 15 | 16 | This program is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE. 19 | See the GNU General Public License for details. 20 | 21 | On Debian GNU/Linux systems, the complete text of the GNU General 22 | Public License can be found in `/usr/share/common-licenses/GPL'. 23 | 24 | This package is highly based on Steffen Joeris works done 25 | for the mpt-status package. 26 | Thanks a lot Steffen! 27 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/install: -------------------------------------------------------------------------------- 1 | sas2ircu-status usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/manpages: -------------------------------------------------------------------------------- 1 | debian/sas2ircu-status.8 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: 17 | build-arch: 18 | build-indep: 19 | 20 | clean: 21 | dh_testdir 22 | dh_testroot 23 | dh_clean 24 | 25 | install: 26 | dh_testdir 27 | dh_testroot 28 | dh_clean -k 29 | dh_installdirs 30 | 31 | binary-arch: install 32 | binary-indep: install 33 | dh_testdir 34 | dh_testroot 35 | dh_installchangelogs 36 | dh_installdocs 37 | dh_installman 38 | dh_install 39 | # Must be run after afacli-makedev 40 | dh_installinit --name sas2ircu-statusd \ 41 | --update-rcd-params="start 21 2 3 4 5 . stop 19 0 1 6 ." 42 | dh_link 43 | dh_strip 44 | dh_compress 45 | dh_fixperms 46 | dh_installdeb 47 | dh_shlibdeps 48 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 49 | dh_md5sums 50 | dh_builddeb 51 | 52 | binary: binary-indep binary-arch 53 | .PHONY: build clean binary-indep binary-arch binary install 54 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu-status/sas2ircu-status.8: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .\" (C) Copyright 2013 Adam Cécile (Le_Vert) , 3 | .\" 4 | .TH SAS2IRCU-STATUS 8 "2014-01-26" 5 | .\" Please adjust this date whenever revising the manpage. 6 | .\" 7 | .\" Some roff macros, for reference: 8 | .\" .nh disable hyphenation 9 | .\" .hy enable hyphenation 10 | .\" .ad l left justify 11 | .\" .ad b justify to both left and right margins 12 | .\" .nf disable filling 13 | .\" .fi enable filling 14 | .\" .br insert line break 15 | .\" .sp insert n+1 empty lines 16 | .\" for manpage-specific macros, see man(7) 17 | .SH NAME 18 | sas2ircu-status \- display RAID status of LSI FusionMPT2 adapters in a human-readable way 19 | .SH SYNOPSIS 20 | .B sas2ircu-status 21 | .RI [ --nagios ] 22 | .SH DESCRIPTION 23 | This wrapper will call LSI proprietary "sas2ircu" command-line tool to display 24 | status of all your 25 | .B disks/arrays connected 26 | to an 27 | .B LSI FusionMPT2 adapter. 28 | .br 29 | It will also run 30 | .B periodic checks 31 | and notify the 32 | .B root user (by mail) 33 | if anything goes wrong. Reminders will be sent every two hours until the 34 | status goes back to normal. 35 | .sp 36 | Here is an output example: 37 | .sp 38 | .br 39 | -- Controller informations -- 40 | .br 41 | -- ID | Model 42 | .br 43 | c0 | SAS2008 44 | .sp 45 | -- Arrays informations -- 46 | .br 47 | -- ID | Type | Size | Status 48 | .br 49 | c0u0 | RAID1 | 1800G | Okay (OKY) 50 | .sp 51 | -- Disks informations 52 | .br 53 | -- ID | Model | Status 54 | .br 55 | c0u0p0 | Hitachi HUA72202 (JK1151YAHUYAZZ) | Optimal (OPT) 56 | .br 57 | c0u0p1 | Hitachi HUA72202 (JK1151YAHUW1DZ) | Optimal (OPT) 58 | .SH OPTIONS 59 | .TP 60 | .B \-\-nagios 61 | Use nagios compatible output (and return code for OK/WARNING/CRITICAL states) 62 | .sp 63 | Example: 64 | .br 65 | RAID OK - Arrays: OK:1 Bad:0 - Disks: OK:2 Bad:0 66 | .SH SEE ALSO 67 | More information about this adapters family: 68 | .B http://hwraid.le-vert.net/wiki/LSIFusionMPTSAS2 69 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/changelog: -------------------------------------------------------------------------------- 1 | sas2ircu (16.00.00.00-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:28:42 +0200 6 | 7 | sas2ircu (16.00.00.00-1) unstable; urgency=low 8 | 9 | * New upstream release. 10 | 11 | -- Adam Cécile (Le_Vert) Thu, 25 Jul 2013 00:22:04 +0200 12 | 13 | sas2ircu (13.00.00.00-1) unstable; urgency=low 14 | 15 | * New upstream release (Closes: #205). 16 | 17 | -- Adam Cécile (Le_Vert) Tue, 17 Jul 2012 21:27:50 +0200 18 | 19 | sas2ircu (5.00.00.00-1) unstable; urgency=low 20 | 21 | * Initial release. 22 | 23 | -- Adam Cécile (Le_Vert) Wed, 08 Dec 2010 15:41:51 +0100 24 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/control: -------------------------------------------------------------------------------- 1 | Source: sas2ircu 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.9.4 7 | 8 | Package: sas2ircu 9 | Architecture: i386 amd64 powerpc 10 | Depends: ${shlibs:Depends}, ${misc:Depends} 11 | Description: LSI Logic Fusion MPT SAS2 command line management tool 12 | Tool to read and setup LSI Logic Fusion MTP SAS2 HW RAID HBAs (mpt2sas 13 | driver). 14 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Wed, 08 Dec 2010 15:41:51 +0100. 3 | 4 | It was downloaded from: 5 | http://www.lsi.com/support/Pages/download-search.aspx 6 | (enter "sas2ircu" in the search box) 7 | 8 | Upstream Author: 9 | 10 | LSI Corporation 11 | 12 | Copyright: 13 | 14 | Copyright (C) 2009-2012 LSI Corporation 15 | 16 | License: 17 | 18 | LSI Corporation, All Rights Reserved. 19 | 20 | The Debian packaging is Copyright (C) 2010-2013 Adam Cécile (Le_Vert) 21 | and is licensed under the GPL, 22 | see `/usr/share/common-licenses/GPL'. 23 | 24 | Sources have been repacked (windows, solaris... binaries removed, 25 | PDF userguide added) from: 26 | fd59a542e22eb3ed0ea7210d5ce8f22e SAS2IRCU_P16.zip 27 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/docs: -------------------------------------------------------------------------------- 1 | SAS2IRCU_User_Guide.pdf 2 | -------------------------------------------------------------------------------- /packaging/debian/sas2ircu/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 7 | 8 | # Get version from changelog as well as lsb_release 9 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 10 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 11 | DIST_NAME := $(shell lsb_release -si) 12 | DIST_RELEASE := $(shell lsb_release -sc) 13 | DIST_VERSION := $(shell lsb_release -sr) 14 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 15 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 16 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 17 | 18 | build: 19 | build-arch: 20 | build-indep: 21 | 22 | clean: 23 | dh_testdir 24 | dh_testroot 25 | dh_clean 26 | 27 | install: 28 | dh_testdir 29 | dh_testroot 30 | dh_clean -k 31 | dh_installdirs 32 | ifeq ($(DEB_BUILD_ARCH),amd64) 33 | install $(CURDIR)/sas2ircu_linux_x86_rel/sas2ircu $(CURDIR)/debian/sas2ircu/usr/sbin/sas2ircu 34 | endif 35 | ifeq ($(DEB_BUILD_ARCH),i386) 36 | install $(CURDIR)/sas2ircu_linux_x86_rel/sas2ircu $(CURDIR)/debian/sas2ircu/usr/sbin/sas2ircu 37 | endif 38 | ifeq ($(DEB_BUILD_ARCH),powerpc) 39 | install $(CURDIR)/sas2ircu_linux_ppc64_rel/sas2ircu $(CURDIR)/debian/sas2ircu/usr/sbin/sas2ircu 40 | endif 41 | 42 | binary-indep: 43 | binary-arch: build install 44 | dh_testdir 45 | dh_testroot 46 | dh_installchangelogs Readme_Release_Notes_SAS2IRCU_Phase_16.00.00.00.txt 47 | dh_installdocs 48 | dh_compress -Xusr/share/doc/sas2ircu/SAS2IRCU_User_Guide.pdf 49 | dh_fixperms 50 | dh_makeshlibs 51 | dh_installdeb 52 | dh_shlibdeps 53 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 54 | dh_md5sums 55 | dh_builddeb 56 | 57 | binary: binary-arch 58 | .PHONY: build clean binary-indep binary-arch binary install 59 | -------------------------------------------------------------------------------- /packaging/debian/spy/changelog: -------------------------------------------------------------------------------- 1 | spy (7.24.26-5) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag in pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 23:11:15 +0200 6 | 7 | spy (7.24.26-4) unstable; urgency=medium 8 | 9 | * Bump debhelper compat level to 5 because 4 is not supported anymore 10 | on Debian Stretch. 11 | 12 | -- Adam Cecile Wed, 02 Aug 2017 00:28:17 +0200 13 | 14 | spy (7.24.26-3) unstable; urgency=low 15 | 16 | * Relax debhelper bdep to allow Sarge builds. 17 | 18 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 17:48:10 +0200 19 | 20 | spy (7.24.26-2) unstable; urgency=low 21 | 22 | * Packaging cleanup. 23 | 24 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 15:19:58 +0200 25 | 26 | spy (7.24.26-1) unstable; urgency=low 27 | 28 | * Initial release. 29 | 30 | -- Adam Cécile (Le_Vert) Fri, 01 Feb 2008 14:42:17 +0100 31 | -------------------------------------------------------------------------------- /packaging/debian/spy/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/spy/control: -------------------------------------------------------------------------------- 1 | Source: spy 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), lsb-release 6 | Standards-Version: 3.8.0 7 | Homepage: http://www.lsilogic.com 8 | 9 | Package: megaide-spyd 10 | Architecture: i386 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Suggests: megaide-source 13 | Description: MegaRAID IDE events logger daemon 14 | This daemon will log events (disk failure, rebuild...) from the megaide 15 | kernel module. 16 | . 17 | It's only useful with LSI MegaRAID IDE HBAs. 18 | -------------------------------------------------------------------------------- /packaging/debian/spy/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Adam Cécile (Le_Vert) on 2 | Fri, 01 Feb 2008 14:42:17 +0100. 3 | 4 | It was downloaded from http://www.lsilogic.com 5 | 6 | Upstream Author: 7 | 8 | LSI Logic 9 | 10 | Copyright: 11 | 12 | Copyright (C) LSI Logic 13 | 14 | License: 15 | 16 | Proprietary. 17 | 18 | The Debian packaging is (C) 2008, Adam Cécile (Le_Vert) 19 | and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. 20 | 21 | This software as been repacked from a RPM package. 22 | -------------------------------------------------------------------------------- /packaging/debian/spy/dirs: -------------------------------------------------------------------------------- 1 | usr/sbin 2 | -------------------------------------------------------------------------------- /packaging/debian/spy/docs: -------------------------------------------------------------------------------- 1 | usr/doc/Spy-7.24.26/README 2 | -------------------------------------------------------------------------------- /packaging/debian/spy/megaide-spyd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: megaide-spyd 4 | # Required-Start: $network $syslog 5 | # Required-Stop: $network $syslog 6 | # Default-Start: 2 3 4 5 7 | # Default-Stop: 0 1 6 8 | # Short-Description: MegaRAID IDE events logger daemon 9 | # Description: This daemon will log events (disk failure, rebuild...) 10 | # from the megaide kernel module. 11 | ### END INIT INFO 12 | 13 | PATH=/sbin:/usr/sbin:/bin:/usr/bin 14 | DESC="MegaRAID IDE events logger daemon" 15 | NAME=megaide-spyd 16 | DAEMON=/usr/sbin/$NAME 17 | PIDFILE=/var/run/Spy.pid 18 | SCRIPTNAME=/etc/init.d/$NAME 19 | 20 | # Exit if the package is not installed 21 | [ -x "$DAEMON" ] || exit 0 22 | 23 | # Load the VERBOSE setting and other rcS variables 24 | . /lib/init/vars.sh 25 | 26 | # Define LSB log_* functions. 27 | # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 28 | . /lib/lsb/init-functions 29 | 30 | do_start() 31 | { 32 | # Return 33 | # 0 if daemon has been started 34 | # 1 if daemon was already running 35 | # 2 if daemon could not be started 36 | test -f $PIDFILE && return 1 37 | $DAEMON -start >/dev/null 2>&1 38 | sleep 1 39 | if [ ! -f $PIDFILE ]; then 40 | return 2 41 | fi 42 | } 43 | 44 | do_stop() 45 | { 46 | # Return 47 | # 0 if daemon has been stopped 48 | # 1 if daemon was already stopped 49 | # other if daemon could not be stopped 50 | test -f $PIDFILE || return 1 51 | $DAEMON -stop >/dev/null 2>&1 52 | rm -f $PIDFILE 53 | } 54 | 55 | case "$1" in 56 | start) 57 | [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 58 | do_start 59 | case "$?" in 60 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 61 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 62 | esac 63 | ;; 64 | stop) 65 | [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 66 | do_stop 67 | case "$?" in 68 | 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 69 | 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 70 | esac 71 | ;; 72 | restart|force-reload) 73 | log_daemon_msg "Restarting $DESC" "$NAME" 74 | do_stop 75 | case "$?" in 76 | 0|1) 77 | do_start 78 | case "$?" in 79 | 0) log_end_msg 0 ;; 80 | 1) log_end_msg 1 ;; # Old process is still running 81 | *) log_end_msg 1 ;; # Failed to start 82 | esac 83 | ;; 84 | *) 85 | # Failed to stop 86 | log_end_msg 1 87 | ;; 88 | esac 89 | ;; 90 | *) 91 | #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 92 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 93 | exit 3 94 | ;; 95 | esac 96 | 97 | : 98 | -------------------------------------------------------------------------------- /packaging/debian/spy/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | # Get version from changelog as well as lsb_release 7 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 8 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 9 | DIST_NAME := $(shell lsb_release -si) 10 | DIST_RELEASE := $(shell lsb_release -sc) 11 | DIST_VERSION := $(shell lsb_release -sr) 12 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 13 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 14 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 15 | 16 | build: 17 | 18 | clean: 19 | dh_testdir 20 | dh_testroot 21 | dh_clean 22 | 23 | install: build 24 | dh_testdir 25 | dh_testroot 26 | dh_clean -k 27 | dh_installdirs 28 | install -m 755 $(CURDIR)/usr/sbin/Spy \ 29 | $(CURDIR)/debian/megaide-spyd/usr/sbin/megaide-spyd 30 | 31 | binary-indep: build install 32 | binary-arch: build install 33 | dh_testdir 34 | dh_testroot 35 | dh_installchangelogs 36 | dh_installdocs 37 | dh_installinit 38 | dh_link 39 | dh_strip 40 | dh_compress 41 | dh_fixperms 42 | dh_makeshlibs 43 | dh_installdeb 44 | dh_shlibdeps 45 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 46 | dh_md5sums 47 | dh_builddeb 48 | 49 | binary: binary-indep binary-arch 50 | .PHONY: build clean binary-indep binary-arch binary install 51 | -------------------------------------------------------------------------------- /packaging/debian/tw-cli/changelog: -------------------------------------------------------------------------------- 1 | tw-cli (2:2.00.11.020+10.2.1-2) unstable; urgency=medium 2 | 3 | * Use lsb-release to generate unique distribution tag for pkgs version. 4 | 5 | -- Adam Cecile Tue, 02 Jul 2019 20:50:00 +0200 6 | 7 | tw-cli (2:2.00.11.020+10.2.1-1) unstable; urgency=low 8 | 9 | * New upstream release. 10 | * Do not use separate tarball for each architecture anymore. 11 | * Improve debian/copyright to explain how to generate sources tarball. 12 | * Update licence and copyright information. 13 | 14 | -- Adam Cécile (Le_Vert) Mon, 30 Jan 2012 16:00:10 +0100 15 | 16 | tw-cli-x86-64 (2:2.00.09.012+9.5.2-1) unstable; urgency=low 17 | 18 | * New upstream release. 19 | * Bump epoch... Once again, thanks to 3Ware insane versionning. 20 | * PDF user guide updated to 9.5.2 release. 21 | 22 | -- Adam Cécile (Le_Vert) Tue, 07 Jul 2009 19:34:46 +0200 23 | 24 | tw-cli-x86-64 (1:2.02.08.008+9.5.1.1-1) unstable; urgency=low 25 | 26 | * New upstream release. 27 | * Better versionning. 28 | * PDF user guide updated to 9.5.1.1 release. 29 | 30 | -- Adam Cécile (Le_Vert) Sun, 21 Dec 2008 23:00:30 +0100 31 | 32 | tw-cli-x86-64 (9.5.0.1-1) unstable; urgency=low 33 | 34 | * Initial release. 35 | 36 | -- Adam Cécile (Le_Vert) Thu, 21 Aug 2008 14:18:31 +0200 37 | -------------------------------------------------------------------------------- /packaging/debian/tw-cli/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /packaging/debian/tw-cli/control: -------------------------------------------------------------------------------- 1 | Source: tw-cli 2 | Section: admin 3 | Priority: optional 4 | Maintainer: Adam Cécile (Le_Vert) 5 | Build-Depends: debhelper (>= 5), sharutils, lsb-release 6 | Standards-Version: 3.9.2 7 | Homepage: http://www.lsi.com/channel/support/products/Pages/3wareSAS9750-8e.aspx 8 | 9 | Package: tw-cli 10 | Architecture: amd64 i386 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: 3Ware management tool (tw-cli) 13 | This package contains tw-cli, the management tool for 3Ware Eskalad 14 | RAID cards. 15 | . 16 | It should works fine for 9000, 8000 as well as 7000 series. 17 | -------------------------------------------------------------------------------- /packaging/debian/tw-cli/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | # Uncomment this to turn on verbose mode. 4 | #export DH_VERBOSE=1 5 | 6 | DESTDIR=$(CURDIR)/debian/tw-cli/usr 7 | DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) 8 | 9 | # Get version from changelog as well as lsb_release 10 | # to compute unique build version (useful for repo mirroring systems doing file pooling) 11 | PKG_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ') 12 | DIST_NAME := $(shell lsb_release -si) 13 | DIST_RELEASE := $(shell lsb_release -sc) 14 | DIST_VERSION := $(shell lsb_release -sr) 15 | PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) 16 | SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" 17 | SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" 18 | 19 | build: build-arch build-indep 20 | build-arch: 21 | build-indep: 22 | 23 | clean: 24 | dh_testdir 25 | dh_testroot 26 | rm -f debian/CLIGuide.pdf 27 | dh_clean 28 | 29 | install: 30 | dh_testdir 31 | dh_testroot 32 | dh_clean -k 33 | dh_installdirs 34 | ifeq ($(DEB_BUILD_ARCH),amd64) 35 | install -D -m 0755 $(CURDIR)/tw_cli.x86_64 \ 36 | $(DESTDIR)/sbin/tw-cli 37 | endif 38 | ifeq ($(DEB_BUILD_ARCH),i386) 39 | install -D -m 0755 $(CURDIR)/tw_cli.x86 \ 40 | $(DESTDIR)/sbin/tw-cli 41 | endif 42 | install -D -m 0755 $(CURDIR)/tw_cli.8.nroff \ 43 | $(DESTDIR)/share/man/man8/tw-cli.8 44 | install -D -m 0755 $(CURDIR)/tw_cli.8.html \ 45 | $(DESTDIR)/share/doc/tw-cli/tw_cli.html 46 | # To create the uu file: 47 | # uuencode debian/CLIGuide.pdf debian/CLIGuide.pdf > debian/CLIGuide.pdf.uu 48 | uudecode debian/CLIGuide.pdf.uu 49 | install -D -m 0644 $(CURDIR)/debian/CLIGuide.pdf \ 50 | $(DESTDIR)/share/doc/tw-cli/user_guide.pdf 51 | 52 | binary-indep: build install 53 | binary-arch: build install 54 | dh_testdir 55 | dh_testroot 56 | dh_installchangelogs 57 | dh_installdocs 58 | dh_installman 59 | dh_link 60 | dh_strip 61 | dh_compress 62 | dh_fixperms 63 | dh_makeshlibs 64 | dh_installdeb 65 | dh_shlibdeps 66 | dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) 67 | dh_md5sums 68 | dh_builddeb 69 | 70 | binary: binary-indep binary-arch 71 | .PHONY: build clean binary-indep binary-arch binary install 72 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | line-length = 160 3 | target-version = ['py27'] 4 | -------------------------------------------------------------------------------- /wrapper-scripts/megaide-status.conf: -------------------------------------------------------------------------------- 1 | # First and third disk on first controller first raid array 2 | # That should be okay if you're using regular RAID array with two SATA disks 3 | # Tested on Nec 110R 1U rack server 4 | c0u0p0 5 | c0u0p2 6 | --------------------------------------------------------------------------------