From e42266e255c8debb938d98b703bb520333043cff Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Wed, 2 Dec 2009 13:37:42 +0000 Subject: [PATCH] - add dump-utmp.8 and dump-acct.8 man-pages --- psacct-6.3.2-man-pages.patch | 74 ++++++++++++++++++++++++++++++++++++ psacct.spec | 10 ++++- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 psacct-6.3.2-man-pages.patch diff --git a/psacct-6.3.2-man-pages.patch b/psacct-6.3.2-man-pages.patch new file mode 100644 index 0000000..63834db --- /dev/null +++ b/psacct-6.3.2-man-pages.patch @@ -0,0 +1,74 @@ +diff -up acct-6.3.2/dump-acct.8.orig acct-6.3.2/dump-acct.8 +--- acct-6.3.2/dump-acct.8.orig 2009-12-02 13:56:58.000000000 +0100 ++++ acct-6.3.2/dump-acct.8 2009-12-02 13:56:58.000000000 +0100 +@@ -0,0 +1,37 @@ ++.\" Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. ++.\" Written by Ivana Hutarova Varekova ++.TH DUMP_ACCT 8 "2009 December 2" "Linux accounting system" ++ ++.SH NAME ++dump\-acct \- print an acct/pacct file in human-readable format ++ ++.SH SYNOPSYS ++\fBdump-acct\fR [\fB-hrR\fR] [\fB-n\fR <\fIrecs\fR>] <\fBfiles\fR> ++ [\fB--num\fR <\fIrecs\fR>] [\fB--raw\fR] [\fB--reverse\fR] [\fB--help\fR] ++ ++.SH DESCRIPTION ++The dump-acct command transforms the output \fBfile\fR from the ++accton format to the human-readable format: one record per line. ++Each record consists of severald fields which are separated by ++character "|" (the meaning of concreate field depends on the ++version of kernel package - with which the accton file was created). ++ ++.SH OPTIONS ++The following options are supported: ++.TP ++.B -h, --help ++Print a help message and the default location of the process accounting file ++and exit. ++.TP ++.B -r, --reverse ++Print the output in reverse order. ++.TP ++.B -R, --raw ++The records will be printed without any parsing. ++.TP ++.B -n, --num NUMRECS ++Display only the first NUMRECS number of records. ++ ++.SH SEE ALSO ++accton (8), lastcomm (1) ++ +diff -up acct-6.3.2/dump-utmp.8.orig acct-6.3.2/dump-utmp.8 +--- acct-6.3.2/dump-utmp.8.orig 2009-12-02 13:57:05.000000000 +0100 ++++ acct-6.3.2/dump-utmp.8 2009-12-02 13:57:05.000000000 +0100 +@@ -0,0 +1,29 @@ ++.\" Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. ++.\" Written by Ivana Hutarova Varekova ++.TH DUMP_UTMP 8 "2009 December 2" "Linux accounting system" ++ ++.SH NAME ++dump\-utmp \- print a utmp file in human-readable format ++ ++.SH SYNOPSYS ++\fBdump-utmp\fR [\fB-hrR\fR] [\fB-n\fR <\fIrecs\fR>] <\fBfiles\fR> ++ [\fB--num\fR <\fIrecs\fR>] [\fB--raw\fR] [\fB--reverse\fR] [\fB--help\fR] ++ ++.SH OPTIONS ++The following options are supported: ++.TP ++.B -h, --help ++Print a help message and the default location of the process accounting file ++and exit. ++.TP ++.B -r, --reverse ++Print the output in reverse order. ++.TP ++.B -R, --raw ++The records will be printed without any parsing. ++.TP ++.B -n, --num NUMRECS ++Display only the first NUMRECS number of records. ++ ++.SH SEE ALSO ++accton (8), lastcomm (1), utmp (5) diff --git a/psacct.spec b/psacct.spec index 1a86a1d..46b95c2 100644 --- a/psacct.spec +++ b/psacct.spec @@ -12,7 +12,7 @@ Summary: Utilities for monitoring process activities Name: psacct Version: 6.3.2 -Release: 55%{?dist} +Release: 56%{?dist} License: GPLv2+ Group: Applications/System Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz @@ -30,6 +30,7 @@ Patch6: psacct-6.3.2-sa-manfix.patch Patch7: psacct-6.3.2-LargeFile.patch Patch8: psacct-6.3.2-lastcomm_man.patch Patch9: acct-6.3.2-sa_manpage.patch +Patch11: psacct-6.3.2-man-pages.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: /sbin/chkconfig /sbin/install-info @@ -64,6 +65,7 @@ commands. %patch7 -p1 -b .lfs %patch8 -p1 -b .man %patch9 -p1 -b .pct +%patch11 -p1 -b .new %build %if ! %{FHS_compliant} @@ -82,6 +84,7 @@ mkdir -p $RPM_BUILD_ROOT{/sbin,%{_bindir},%{_mandir},%{_sbindir}} make install prefix=$RPM_BUILD_ROOT%{_prefix} \ bindir=$RPM_BUILD_ROOT%{_bindir} sbindir=$RPM_BUILD_ROOT%{_sbindir} \ infodir=$RPM_BUILD_ROOT%{_datadir}/info mandir=$RPM_BUILD_ROOT%{_mandir} +cp dump-acct.8 dump-utmp.8 $RPM_BUILD_ROOT%{_mandir}/man8/ # move accton to /sbin -- leave historical symlink mv $RPM_BUILD_ROOT%{_sbindir}/accton $RPM_BUILD_ROOT/sbin/accton @@ -171,9 +174,14 @@ fi %{_mandir}/man1/lastcomm.1* %{_mandir}/man8/sa.8* %{_mandir}/man8/accton.8* +%{_mandir}/man8/dump-acct.8* +%{_mandir}/man8/dump-utmp.8* %{_infodir}/accounting.info.gz %changelog +* Wed Dec 2 2009 Ivana Hutarova Varekova - 6.2.3-56 +- add dump-utmp.8 and dump-acct.8 man-pages + * Wed Sep 16 2009 Ivana Varekova - 6.2.3-55 - fix init script (#521195)