rpms/psacct/F-12 psacct-6.3.2-man-pages.patch, NONE, 1.1 psacct.spec, 1.41, 1.42

Ivana Varekova varekova at fedoraproject.org
Wed Dec 2 13:26:55 UTC 2009


Author: varekova

Update of /cvs/pkgs/rpms/psacct/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2652

Modified Files:
	psacct.spec 
Added Files:
	psacct-6.3.2-man-pages.patch 
Log Message:

add dump-utmp.8 and dump-acct.8 man-pages


psacct-6.3.2-man-pages.patch:
 dump-acct.8 |   37 +++++++++++++++++++++++++++++++++++++
 dump-utmp.8 |   29 +++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

--- NEW FILE psacct-6.3.2-man-pages.patch ---
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 <varekova at redhat.com>
+.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 <varekova at redhat.com>
+.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)


Index: psacct.spec
===================================================================
RCS file: /cvs/pkgs/rpms/psacct/F-12/psacct.spec,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -p -r1.41 -r1.42
--- psacct.spec	27 Nov 2009 07:38:59 -0000	1.41
+++ psacct.spec	2 Dec 2009 13:26:55 -0000	1.42
@@ -12,7 +12,7 @@
 Summary: Utilities for monitoring process activities
 Name: psacct
 Version: 6.3.2
-Release: 57%{?dist}
+Release: 58%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
@@ -34,6 +34,7 @@ Patch9: acct-6.3.2-sa_manpage.patch
 # if it is possible and wanted then add the possibility
 # to display the pid and ppid number
 Patch10: psacct-6.3.2-ppid.patch
+Patch11: psacct-6.3.2-man-pages.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: /sbin/chkconfig /sbin/install-info
@@ -69,6 +70,7 @@ commands.
 %patch8 -p1 -b .man
 %patch9 -p1 -b .pct
 %patch10 -p1 -b .acct
+%patch11 -p1 -b .new
 
 %build
 %if ! %{FHS_compliant}
@@ -87,6 +89,7 @@ mkdir -p $RPM_BUILD_ROOT{/sbin,%{_bindir
 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
@@ -176,9 +179,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 <varekova at redhat.com> - 6.2.3-58
+- add dump-utmp.8 and dump-acct.8 man-pages
+
 * Fri Nov 26 2009 Ivana Varekova <varekova at redhat.com> - 6.2.3-57
 - fix the ac_version variable handle on ppc64 (BIG_ENDIAN machine)
 




More information about the scm-commits mailing list