megatrace in own package

This commit is contained in:
Mario Fetka 2017-04-22 16:51:10 +02:00
parent c617d59dcb
commit 8fae4f9e81
12 changed files with 69 additions and 2 deletions

12
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: megactl
Section: admin Section: admin
Priority: optional Priority: optional
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net> Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
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 Standards-Version: 3.8.2
Homepage: http://sourceforge.net/projects/megactl 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 It reports status and informations about the adapter itself, it's
logical disks and the physical disks attached. 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.

39
debian/man/megatrace/megatrace.8 vendored Normal file
View File

@ -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
<command_to_trace>
.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) <gandalf@le-vert.net> 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.

1
debian/manpages vendored
View File

@ -1 +0,0 @@
debian/man/*

1
debian/megactl.manpages vendored Normal file
View File

@ -0,0 +1 @@
debian/man/megactl/*

2
debian/megatrace.install vendored Normal file
View File

@ -0,0 +1,2 @@
src/megatrace usr/lib/megactl
debian/wrappers/megatrace usr/sbin

1
debian/megatrace.manpages vendored Normal file
View File

@ -0,0 +1 @@
debian/man/megatrace/*

4
debian/rules vendored
View File

@ -24,7 +24,11 @@ endif
build: build-stamp build: build-stamp
build-stamp: patch-stamp build-stamp: patch-stamp
dh_testdir 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/ $(MAKE) $(MY_MAKEOPTS) CFLAGS="$(CFLAGS) \$$(INC) \$$(ARCH)" -C src/
mv src/megatrace.i386 src/megatrace
touch $@ touch $@
clean: unpatch clean: unpatch

11
debian/wrappers/megatrace vendored Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# Author: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
# License: Public domain
. /usr/lib/megactl/create-devices-nodes
create_node
create_node_sas
/usr/lib/megactl/megatrace $@