From 8fae4f9e813fae6de4de7d1064bdb24afb552c97 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 22 Apr 2017 16:51:10 +0200 Subject: [PATCH] megatrace in own package --- debian/control | 12 ++++++++- debian/man/{ => megactl}/megactl.8 | 0 debian/man/{ => megactl}/megasasctl.8 | 0 debian/man/megatrace/megatrace.8 | 39 +++++++++++++++++++++++++++ debian/manpages | 1 - debian/{install => megactl.install} | 0 debian/megactl.manpages | 1 + debian/{preinst => megactl.preinst} | 0 debian/megatrace.install | 2 ++ debian/megatrace.manpages | 1 + debian/rules | 4 +++ debian/wrappers/megatrace | 11 ++++++++ 12 files changed, 69 insertions(+), 2 deletions(-) rename debian/man/{ => megactl}/megactl.8 (100%) rename debian/man/{ => megactl}/megasasctl.8 (100%) create mode 100644 debian/man/megatrace/megatrace.8 delete mode 100644 debian/manpages rename debian/{install => megactl.install} (100%) create mode 100644 debian/megactl.manpages rename debian/{preinst => megactl.preinst} (100%) create mode 100644 debian/megatrace.install create mode 100644 debian/megatrace.manpages create mode 100644 debian/wrappers/megatrace diff --git a/debian/control b/debian/control index ce28774..1196e0c 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: megactl Section: admin Priority: optional Maintainer: Adam Cécile (Le_Vert) -Build-Depends: debhelper (>= 4), dpatch +Build-Depends: debhelper (>= 4), dpatch, libc6-dev-i386 [amd64], gcc-multilib [amd64] | libc6-dev-i386 (<< 2.7) [amd64] Standards-Version: 3.8.2 Homepage: http://sourceforge.net/projects/megactl @@ -15,3 +15,13 @@ Description: LSI MegaRAID SCSI/SAS reporting tool . It reports status and informations about the adapter itself, it's logical disks and the physical disks attached. + +Package: megatrace +Architecture: i386 amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, libc6-i386 [amd64], megactl +Description: LSI MegaRAID SCSI/SAS reporting tool + This package contains both megactl and megasasctl tools that can be used + to query LSI's MegaRAID adapters status. + . + It reports status and informations about the adapter itself, it's + logical disks and the physical disks attached. diff --git a/debian/man/megactl.8 b/debian/man/megactl/megactl.8 similarity index 100% rename from debian/man/megactl.8 rename to debian/man/megactl/megactl.8 diff --git a/debian/man/megasasctl.8 b/debian/man/megactl/megasasctl.8 similarity index 100% rename from debian/man/megasasctl.8 rename to debian/man/megactl/megasasctl.8 diff --git a/debian/man/megatrace/megatrace.8 b/debian/man/megatrace/megatrace.8 new file mode 100644 index 0000000..45c41dc --- /dev/null +++ b/debian/man/megatrace/megatrace.8 @@ -0,0 +1,39 @@ +.TH MEGATRACE "8" "September 2007" "0.4.1" "User Commands" + +.SH NAME +megatrace - a debugging program which can be used to trace LSI MegaRAID-related ioctl() system calls. + +.SH DESCRIPTION +.B megatrace +is debugging program which can be used to trace LSI MegaRAID-related ioctl() system calls. +.br +You won't need that unless you're trying to add features to megactl, or are exceptionally curious. +.br +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. +.PP +If you're not developer, please check megactl(8) or megactlsas(8). + +.SH SYNOPSIS +.B megatrace + +.PP +You may really consider tracing a command that access MegaRAID card, like Dell's dellmgr or LSI's megacli. + +.SH OPTIONS +.B megatrace +has no options. + +.SH "SEE ALSO" +Homepage: http://sourceforge.net/projects/megactl +.br +Some examples scripts (Debian systems): /usr/share/doc/megactl/examples/ +.br +megactl(8): Reporting tool for SCSI adapters. +megasasctl(8): Reporting tool for SAS adapters. + +.SH AUTHOR +This manual page was written by Adam Cécile (Le_Vert) for the Debian system (but may be used by others). +.br +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 +.br +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. diff --git a/debian/manpages b/debian/manpages deleted file mode 100644 index 19f429f..0000000 --- a/debian/manpages +++ /dev/null @@ -1 +0,0 @@ -debian/man/* diff --git a/debian/install b/debian/megactl.install similarity index 100% rename from debian/install rename to debian/megactl.install diff --git a/debian/megactl.manpages b/debian/megactl.manpages new file mode 100644 index 0000000..45fd002 --- /dev/null +++ b/debian/megactl.manpages @@ -0,0 +1 @@ +debian/man/megactl/* diff --git a/debian/preinst b/debian/megactl.preinst similarity index 100% rename from debian/preinst rename to debian/megactl.preinst diff --git a/debian/megatrace.install b/debian/megatrace.install new file mode 100644 index 0000000..19178ad --- /dev/null +++ b/debian/megatrace.install @@ -0,0 +1,2 @@ +src/megatrace usr/lib/megactl +debian/wrappers/megatrace usr/sbin diff --git a/debian/megatrace.manpages b/debian/megatrace.manpages new file mode 100644 index 0000000..a153fb4 --- /dev/null +++ b/debian/megatrace.manpages @@ -0,0 +1 @@ +debian/man/megatrace/* diff --git a/debian/rules b/debian/rules index 4ba713b..4ab7969 100755 --- a/debian/rules +++ b/debian/rules @@ -24,7 +24,11 @@ endif build: build-stamp build-stamp: patch-stamp dh_testdir + $(MAKE) CFLAGS="$(CFLAGS) \$$(INC) \$$(ARCH)" -C src/ megatrace + mv src/megatrace src/megatrace.i386 + $(MAKE) clean -C src/ $(MAKE) $(MY_MAKEOPTS) CFLAGS="$(CFLAGS) \$$(INC) \$$(ARCH)" -C src/ + mv src/megatrace.i386 src/megatrace touch $@ clean: unpatch diff --git a/debian/wrappers/megatrace b/debian/wrappers/megatrace new file mode 100644 index 0000000..4cf9729 --- /dev/null +++ b/debian/wrappers/megatrace @@ -0,0 +1,11 @@ +#!/bin/sh + +# Author: Adam Cécile (Le_Vert) +# License: Public domain + +. /usr/lib/megactl/create-devices-nodes + +create_node +create_node_sas + +/usr/lib/megactl/megatrace $@