- add dump-utmp.8 and dump-acct.8 man-pages
This commit is contained in:
parent
4ec79195e2
commit
e42266e255
74
psacct-6.3.2-man-pages.patch
Normal file
74
psacct-6.3.2-man-pages.patch
Normal file
@ -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 <varekova@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@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)
|
10
psacct.spec
10
psacct.spec
@ -12,7 +12,7 @@
|
|||||||
Summary: Utilities for monitoring process activities
|
Summary: Utilities for monitoring process activities
|
||||||
Name: psacct
|
Name: psacct
|
||||||
Version: 6.3.2
|
Version: 6.3.2
|
||||||
Release: 55%{?dist}
|
Release: 56%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
|
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
|
Patch7: psacct-6.3.2-LargeFile.patch
|
||||||
Patch8: psacct-6.3.2-lastcomm_man.patch
|
Patch8: psacct-6.3.2-lastcomm_man.patch
|
||||||
Patch9: acct-6.3.2-sa_manpage.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)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: /sbin/chkconfig /sbin/install-info
|
Requires: /sbin/chkconfig /sbin/install-info
|
||||||
@ -64,6 +65,7 @@ commands.
|
|||||||
%patch7 -p1 -b .lfs
|
%patch7 -p1 -b .lfs
|
||||||
%patch8 -p1 -b .man
|
%patch8 -p1 -b .man
|
||||||
%patch9 -p1 -b .pct
|
%patch9 -p1 -b .pct
|
||||||
|
%patch11 -p1 -b .new
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{FHS_compliant}
|
%if ! %{FHS_compliant}
|
||||||
@ -82,6 +84,7 @@ mkdir -p $RPM_BUILD_ROOT{/sbin,%{_bindir},%{_mandir},%{_sbindir}}
|
|||||||
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
|
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||||
bindir=$RPM_BUILD_ROOT%{_bindir} sbindir=$RPM_BUILD_ROOT%{_sbindir} \
|
bindir=$RPM_BUILD_ROOT%{_bindir} sbindir=$RPM_BUILD_ROOT%{_sbindir} \
|
||||||
infodir=$RPM_BUILD_ROOT%{_datadir}/info mandir=$RPM_BUILD_ROOT%{_mandir}
|
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
|
# move accton to /sbin -- leave historical symlink
|
||||||
mv $RPM_BUILD_ROOT%{_sbindir}/accton $RPM_BUILD_ROOT/sbin/accton
|
mv $RPM_BUILD_ROOT%{_sbindir}/accton $RPM_BUILD_ROOT/sbin/accton
|
||||||
@ -171,9 +174,14 @@ fi
|
|||||||
%{_mandir}/man1/lastcomm.1*
|
%{_mandir}/man1/lastcomm.1*
|
||||||
%{_mandir}/man8/sa.8*
|
%{_mandir}/man8/sa.8*
|
||||||
%{_mandir}/man8/accton.8*
|
%{_mandir}/man8/accton.8*
|
||||||
|
%{_mandir}/man8/dump-acct.8*
|
||||||
|
%{_mandir}/man8/dump-utmp.8*
|
||||||
%{_infodir}/accounting.info.gz
|
%{_infodir}/accounting.info.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 2 2009 Ivana Hutarova Varekova <varekova@redhat.com> - 6.2.3-56
|
||||||
|
- add dump-utmp.8 and dump-acct.8 man-pages
|
||||||
|
|
||||||
* Wed Sep 16 2009 Ivana Varekova <varekova@redhat.com> - 6.2.3-55
|
* Wed Sep 16 2009 Ivana Varekova <varekova@redhat.com> - 6.2.3-55
|
||||||
- fix init script (#521195)
|
- fix init script (#521195)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user