debian/0000755000000000000000000000000012330153527007167 5ustar debian/watch0000644000000000000000000000007112271055644010223 0ustar version=3 http://ftp.gnu.org/gnu/acct/acct-(.*)\.tar\.gz debian/acct.cron.monthly0000644000000000000000000000240112271055644012457 0ustar #!/bin/sh LOGROTATE="/etc/cron.daily/logrotate" test -x /usr/sbin/accton || exit 0 echo "Login accounting for the month ended `date`:" > /var/log/wtmp.report echo >> /var/log/wtmp.report # The logrotate script happens to run before this one, effectively swallowing # all information out of wtmp before we can use it. Hence, we need to use the # previous file. Bad hack. Too bad we never heard from the logrotate maintainer # about this ... if [ -f "${LOGROTATE}" ] && [ -x /usr/sbin/logrotate ] then # make sure wtmp.1 exists if [ -f /var/log/wtmp.1 ] then LOGFILE="/var/log/wtmp.1" fi if [ -f /var/log/wtmp.1.gz ] then LOGFILE2="`tempfile`" fi if [ -n "${LOGFILE}" ] && [ -n "${LOGFILE2}" ] then ac -f "${LOGFILE2}" -f "${LOGFILE}" -p | sort -nr -k2 >> /var/log/wtmp.report echo >> /var/log/wtmp.report last -f "${LOGFILE2}" >> /var/log/wtmp.report elif [ -n "${LOGFILE}" ] && [ -z "${LOGFILE2}" ] then ac -f "${LOGFILE}" -p | sort -nr -k2 >> /var/log/wtmp.report echo >> /var/log/wtmp.report last -f "${LOGFILE}" >> /var/log/wtmp.report fi rm -f "${LOGFILE2}" else ac -p | sort -nr -k2 >> /var/log/wtmp.report echo >> /var/log/wtmp.report last >> /var/log/wtmp.report fi chown root:adm /var/log/wtmp.report chmod 640 /var/log/wtmp.report debian/acct.manpages0000644000000000000000000000012212271055644011616 0ustar debian/manpages/* debian/tmp/usr/share/man/man1/* debian/tmp/usr/share/man/man8/* debian/README.source0000644000000000000000000000014412271055644011352 0ustar Please look at /usr/share/doc/quilt/README.source before modifying the source code in this package. debian/acct.cron.daily0000644000000000000000000000057312271055644012077 0ustar #!/bin/sh test -x /usr/sbin/accton || exit 0 # Source defaults if [ -f /etc/default/acct ] then . /etc/default/acct else ACCT_LOGGING="30" fi # Save log file cd /var/log/account savelog -g adm -m 0640 -u root -c "${ACCT_LOGGING}" /var/log/account/pacct > /dev/null # Restart acct invoke-rc.d acct restart > /dev/null # This is needed because accton.c returns errno exit 0 debian/rules0000755000000000000000000000114212330153302010234 0ustar #!/usr/bin/make -f %: dh $@ --with autoreconf override_dh_auto_clean: dh_auto_clean rm -f config.log override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ $(NULL) override_dh_auto_build: dh_auto_build $(MAKE) info $(MAKE) html override_dh_auto_install: dh_auto_install --destdir=$(CURDIR)/debian/tmp # Removing last, it's in the sysvinit package instead. rm -f debian/tmp/usr/bin/last rm -f debian/tmp/usr/share/man/man1/last.1 override_dh_installinit: dh_installinit -- start 20 2 3 4 5 . stop 20 1 . debian/acct.install0000644000000000000000000000002112271055644011467 0ustar usr/bin usr/sbin debian/acct.doc-base0000644000000000000000000000111712271055644011505 0ustar Document: acct Title: The GNU Accounting utilities Author: Noel Cragg Abstract: The GNU Accounting utilities for process and login accounting GNU Accounting Utilities is a set of utilities which reports and summarizes data about user connect times and process execution statistics. . "Login accounting" provides summaries of system resource usage based on connect time, and "process accounting" provides summaries based on the commands executed on the system. Section: System/Security Format: HTML Index: /usr/share/doc/acct/accounting.html Files: /usr/share/doc/acct/accounting.html debian/acct.default0000644000000000000000000000051412271055644011454 0ustar # Defaults for acct # If you want to keep acct installed, but not started automatically, set this # variable to 0. Because /etc/cron.daily/acct calls the initscript daily, it is # not sufficient to stop acct once after booting if your machine remains up. ACCT_ENABLE="1" # Amount of days that the logs are kept. ACCT_LOGGING="30" debian/acct.postinst0000644000000000000000000000051512271055644011714 0ustar #!/bin/sh set -e case "$1" in configure) mkdir -p /var/log/account touch /var/log/account/pacct chmod 0640 /var/log/account/pacct* chown root:adm /var/log/account/pacct* ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 ;; esac #DEBHELPER# exit 0 debian/acct.docs0000644000000000000000000000004112271055644010753 0ustar NEWS README TODO accounting.html debian/acct.info0000644000000000000000000000005212271055644010760 0ustar debian/tmp/usr/share/info/accounting.info debian/copyright0000644000000000000000000000357612271055644011142 0ustar Author: Tim Schmielau Download: http://ftp.gnu.org/gnu/acct/ Files: * Copyright: (C) 1993-2009 Free Software Foundation, Inc. License: GPL-3 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file. Files: debian/* Copyright: (C) 2006-2009 Mathieu Trudel &2 ;; esac #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000012271055644010474 5ustar debian/source/format0000644000000000000000000000001412271055644011702 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012330144552010614 5ustar debian/patches/preprocessor-syntax-error.patch0000644000000000000000000000127412314561065017046 0ustar Description: Fix small preprocessor syntax mistake. Author: Steven Chamberlain Bug: https://savannah.gnu.org/bugs/index.php?41963 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736949 Forwarded: yes --- files.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- acct-6.5.5.orig/files.h.in +++ acct-6.5.5/files.h.in @@ -18,7 +18,7 @@ # include # if defined __FreeBSD__ || defined __FreeBSD_kernel__ # include -# if __FreeBSD_kernel__ +# if defined __FreeBSD_kernel__ # define __FreeBSD_version __FreeBSD_kernel_version # endif /* __FreeBSD_kernel__ */ # if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ debian/patches/03-acct-file.patch0000644000000000000000000000254512271055644013721 0ustar Author: Daniel Baumann Description: Adjusts location of the log files (Closes: #377835). Last-Updated: 2011-02-24 Index: acct-6.5.5/configure.ac =================================================================== --- acct-6.5.5.orig/configure.ac 2011-02-24 22:58:48.000000000 -0500 +++ acct-6.5.5/configure.ac 2011-02-24 23:00:22.424524104 -0500 @@ -190,7 +190,7 @@ #ifndef ACCT_FILE # if defined(__FreeBSD__) || defined(__linux__) \ || defined(__FreeBSD_kernel__) -# define ACCT_FILE "/var/account/pacct" +# define ACCT_FILE "/var/log/account/pacct" # else # if defined(__NetBSD__) # define ACCT_FILE "/var/account/acct" @@ -211,7 +211,7 @@ #ifndef SAVACCT_FILE # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ || defined(__FreeBSD_kernel__) -# define SAVACCT_FILE "/var/account/savacct" +# define SAVACCT_FILE "/var/log/account/savacct" # else # if defined(sun) || defined(AMIX) # define SAVACCT_FILE "/var/adm/savacct" @@ -228,7 +228,7 @@ #ifndef USRACCT_FILE # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ || defined(__FreeBSD_kernel__) -# define USRACCT_FILE "/var/account/usracct" +# define USRACCT_FILE "/var/log/account/usracct" # else # if defined(sun) || defined(AMIX) # define USRACCT_FILE "/var/adm/usracct" debian/patches/01-last.patch0000644000000000000000000001523112271055644013027 0ustar Author: Daniel Baumann Description: Removing last, it's in the sysvinit package instead. Forwarded: not-needed Last-Update: 2010-04-25 Index: acct-6.5.4/accounting.texi =================================================================== --- acct-6.5.4.orig/accounting.texi 2010-02-05 23:11:56.000000000 -0500 +++ acct-6.5.4/accounting.texi 2010-04-25 20:53:31.648673836 -0400 @@ -84,7 +84,6 @@ * ac:: print statistics about connect time * accton:: turns accounting on or off -* last:: list last logins of users and terms * lastcomm:: list last commands executed * sa:: print accounting statistics * dump-acct:: print accounting file in human-readable form @@ -154,13 +153,6 @@ @item accton turns accounting on or off. -@item last -lists the logins on the system, most recent first. With @code{last}, -you can search the @code{wtmp} file for a particular user or -terminal name (to which the user was connected). Of special interest -are two fake users, @samp{reboot} and @samp{shutdown}, which are -recorded when the system is shut down or reboots. - @item lastcomm lists the commands executed on the system, most recent first, showing the run state of each command. With @code{last}, you can search the @@ -539,7 +531,7 @@ anything but user processes. @c ---------------------------------------------------------------------- -@node accton, last, ac, Top +@node accton, lastcomm, ac, Top @chapter @code{accton} @code{accton} turns process accounting on or off. To save process @@ -566,146 +558,7 @@ @end table @c ---------------------------------------------------------------------- -@node last, lastcomm, accton, Top -@chapter @code{last} - -@code{last} looks through the @code{wtmp} file (which records -all logins/logouts) and prints information about connect times of users. -Records are printed from most recent to least recent. Records can be -specified by tty and username. tty names can be abbreviated: @samp{last -0} is equivalent to @samp{last tty0}. - -Multiple arguments can be specified: @samp{last root console} will print -all of the entries for the user @code{root} and all entries logged in on -the @code{console} tty. - -The special users @code{reboot} and @code{shutdown} log in when the -system reboots or (surprise) shuts down. @samp{last reboot} will -produce a record of reboot times. - -If @code{last} is interrupted by a quit signal, it prints out how far -its search in the @code{wtmp} file had reached and then -quits: -@example -weerapan ttyq6 132.162.32.37 Mon Feb 15 19:07 - 19:21 (00:13) -weerapan ttyq6 132.162.32.37 Mon Feb 15 19:07 - 19:21 (00:13) - -interrupted at Mon Feb 15 19:07:52 1993 -@end example - -@section Flags - -This program implements the features of regular u*x @code{last} with a few -extra flags. When @code{last} is invoked with no arguments, the output -looks like this: -@example -gr151 ttyp2 ray.cs.oberlin.e Tue Feb 16 17:40 still logged in -jhoggard ttyp2 csts.cs.oberlin. Tue Feb 16 17:39 - 17:39 (00:00) -jstarr ttyp1 UNIX5.ANDREW.CMU Tue Feb 16 17:38 still logged in -jberman ttypb 132.162.32.25 Tue Feb 16 17:34 still logged in -alee ttyp7 csts.cs.oberlin. Tue Feb 16 17:34 still logged in -jbrick ttyp2 ocvaxa.cc.oberli Tue Feb 16 17:33 - 17:36 (00:03) -mbastedo ttypc ocvaxa.cc.oberli Tue Feb 16 17:25 - 17:26 (00:01) -rgoodste ttypb ocvaxa.cc.oberli Tue Feb 16 17:22 - 17:26 (00:03) -huttar ttyp9 lobby.ti.com Tue Feb 16 17:19 still logged in -klutz ttyp3 132.162.32.25 Tue Feb 16 17:14 still logged in -@end example - -@table @code -@item --no-truncate-ftp-entries -When printing out the information, don't chop the number part off of -@code{ftp}@var{xxxx} entries. - -@item -@var{number} -@itemx -n @var{number} -@itemx --lines @var{number} -Limit the number of lines that @code{last} prints. - -@item -f @var{filename} -@itemx --file @var{filename} -Read from the file @var{filename} instead of the system's -@code{wtmp} file. - -@item -y -@itemx --print-year -Print out the year when displaying dates. - -@item -s -@itemx --print-seconds -Print out seconds when displaying dates and durations. - -@item --complain -When the @code{wtmp} file has a problem (a time-warp, missing -record, or whatever), print out an appropriate error. - -@item -x -@itemx --more-records -Print out run level changes, shutdowns, and time changes in addition to -the normal records. - -@item -a -@itemx --all-records -Print out all records in the @code{wtmp} file. - -@item -i -@itemx --ip-address -Some machines store the IP address of a connection in a utmp record. -Enabling this option makes @code{last} print the IP address instead of -the hostname. - -@item --tw-leniency @var{value} -Set the time warp leniency value (in seconds). See the @code{ac} -chapter for information. - -@item --tw-suspicious @var{value} -Set the time warp suspicious value (in seconds). See the @code{ac} -chapter for information. - -@item -w -@itemx --wide -By default, @code{last} tries to print each entry within in 80 columns. -Use this option to instruct @code{last} to print out the fields in the -@code{wtmp} file with full field widths. - -@item --debug -Print verbose internal information. - -@item -V -@itemx --version -Print @code{last}'s version number. - -@item -h -@itemx --help -Print @code{last}'s usage string and default locations of system files -to standard output. -@end table - -@section Problems - -@unnumberedsubsubsec The Clock Change Problem - -Of the @code{last}s I've tried, all of them have had problems parsing a -system clock change. Instead of modifying the entries that have been -read, they just ignore the change and give you incorrect values. GNU -@code{last} knows about clock changes and prints the correct times. - -@noindent -@strong{TANGIBLE RESULT:} if you @code{diff} the output of your -@code{last} and GNU @code{last}, entries after (before, rather) a clock -change will be off by the amount of the clock change. - -@unnumberedsubsubsec The Ftp Problem - -Most @code{last}s that I've examined have the same problem here as -@code{ac} does---they log everyone out as soon as they see an ftp entry. - -@noindent -@strong{TANGIBLE RESULT:} GNU @code{last} will reflect the correct time -spent in an ftp session, so the totals that it gives will most likely be -greater than those given by the system @code{last}. - -@c ---------------------------------------------------------------------- -@node lastcomm, sa, last, Top +@node lastcomm, sa, accton, Top @chapter @code{lastcomm} @code{lastcomm} prints out information about previously executed debian/patches/cross-build-support.patch0000644000000000000000000001611112271055644015604 0ustar Description: remove pointless configure check that breaks cross-building Remove pointless configure check that tries to run a program to define wtmp/acct file paths; we can just as well include this in files.h.in and use the results of the macro checks directly. Author: Steve Langasek Index: trunk/Makefile.am =================================================================== --- trunk.orig/Makefile.am +++ trunk/Makefile.am @@ -66,11 +66,6 @@ SYS_AC = @SYS_AC@ SYS_SA = @SYS_SA@ -WTMP_FILE_LOC = @WTMP_FILE_LOC@ -ACCT_FILE_LOC = @ACCT_FILE_LOC@ -SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ -USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ - compare-ac: ac @echo @echo "Running tests for ac" Index: trunk/files.h.in =================================================================== --- trunk.orig/files.h.in +++ trunk/files.h.in @@ -30,10 +30,91 @@ #include -#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" -#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" -#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" -#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" +#include +#include +#include +#include /* GNU/kFreeBSD */ +#include + +#ifndef WTMP_FILE +# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +# define WTMP_FILE "/var/log/wtmp" +# else +# if defined(sun) || defined(AMIX) +# define WTMP_FILE "/var/adm/wtmp" +# else +# if defined(sgi) || defined(SVR4) +# define WTMP_FILE "/usr/adm/wtmp" +# else +# define WTMP_FILE "/usr/adm/wtmp" +# endif +# endif +# endif +#endif +#ifndef ACCT_FILE +# if defined(__FreeBSD__) || defined(__linux__) \ + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +# define ACCT_FILE "/var/log/account/pacct" +# else +# if defined(__NetBSD__) +# define ACCT_FILE "/var/account/acct" +# else +# if defined(sun) || defined(AMIX) +# define ACCT_FILE "/var/adm/pacct" +# else +# if defined(sgi) || defined(SVR4) || defined(M_XENIX) +# define ACCT_FILE "/usr/adm/pacct" +# else +# define ACCT_FILE "/usr/adm/acct" +# endif +# endif +# endif +# endif +#endif + +#ifndef SAVACCT_FILE +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +# define SAVACCT_FILE "/var/log/account/savacct" +# else +# if defined(sun) || defined(AMIX) +# define SAVACCT_FILE "/var/adm/savacct" +# else +# if defined(sgi) || defined(SVR4) +# define SAVACCT_FILE "/usr/adm/savacct" +# else +# define SAVACCT_FILE "/usr/adm/savacct" +# endif +# endif +# endif +#endif + +#ifndef USRACCT_FILE +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +# define USRACCT_FILE "/var/log/account/usracct" +# else +# if defined(sun) || defined(AMIX) +# define USRACCT_FILE "/var/adm/usracct" +# else +# if defined(sgi) || defined(SVR4) +# define USRACCT_FILE "/usr/adm/usracct" +# else +# define USRACCT_FILE "/usr/adm/usracct" +# endif +# endif +# endif +#endif + +#if !defined(WTMP_FILE) || !defined(ACCT_FILE) || !defined(SAVACCT_FILE) \ + || !defined(USRACCT_FILE) +#error Could not locate your wtmp and acct files. +#endif +#define WTMP_FILE_LOC WTMP_FILE +#define ACCT_FILE_LOC ACCT_FILE +#define SAVACCT_FILE_LOC SAVACCT_FILE +#define USRACCT_FILE_LOC USRACCT_FILE /* Workaround for a kernel includes problem */ #if defined(__linux__) && defined(__alpha__) Index: trunk/configure.ac =================================================================== --- trunk.orig/configure.ac +++ trunk/configure.ac @@ -159,101 +159,6 @@ AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if uses the COMP_T type.)]) ) ] ) -dnl -dnl find out where utmp/pacct are stored -dnl -AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include -#include /* GNU/kFreeBSD */ -#include -#include - -#ifndef WTMP_FILE -# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) || defined(__GLIBC__) -# define WTMP_FILE "/var/log/wtmp" -# else -# if defined(sun) || defined(AMIX) -# define WTMP_FILE "/var/adm/wtmp" -# else -# if defined(sgi) || defined(SVR4) -# define WTMP_FILE "/usr/adm/wtmp" -# else -# define WTMP_FILE "/usr/adm/wtmp" -# endif -# endif -# endif -#endif - -#ifndef ACCT_FILE -# if defined(__FreeBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) || defined(__GLIBC__) -# define ACCT_FILE "/var/log/account/pacct" -# else -# if defined(__NetBSD__) -# define ACCT_FILE "/var/account/acct" -# else -# if defined(sun) || defined(AMIX) -# define ACCT_FILE "/var/adm/pacct" -# else -# if defined(sgi) || defined(SVR4) || defined(M_XENIX) -# define ACCT_FILE "/usr/adm/pacct" -# else -# define ACCT_FILE "/usr/adm/acct" -# endif -# endif -# endif -# endif -#endif - -#ifndef SAVACCT_FILE -# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) || defined(__GLIBC__) -# define SAVACCT_FILE "/var/log/account/savacct" -# else -# if defined(sun) || defined(AMIX) -# define SAVACCT_FILE "/var/adm/savacct" -# else -# if defined(sgi) || defined(SVR4) -# define SAVACCT_FILE "/usr/adm/savacct" -# else -# define SAVACCT_FILE "/usr/adm/savacct" -# endif -# endif -# endif -#endif - -#ifndef USRACCT_FILE -# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) || defined(__GLIBC__) -# define USRACCT_FILE "/var/log/account/usracct" -# else -# if defined(sun) || defined(AMIX) -# define USRACCT_FILE "/var/adm/usracct" -# else -# if defined(sgi) || defined(SVR4) -# define USRACCT_FILE "/usr/adm/usracct" -# else -# define USRACCT_FILE "/usr/adm/usracct" -# endif -# endif -# endif -#endif - -main () -{ - FILE *fp; - fp = fopen ("locs", "w"); - fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); - fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); - fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); - fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); - fclose (fp); - exit(0); -} -]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) AC_TYPE_PID_T dnl for sys/acct.h AC_TYPE_UID_T dnl same as above AC_TYPE_SIZE_T @@ -290,12 +195,6 @@ AC_SUBST(LASTCOMM_MAN) AC_SUBST(SA_MAN) -dnl Substitutions for file locations -AC_SUBST(WTMP_FILE_LOC) -AC_SUBST(ACCT_FILE_LOC) -AC_SUBST(SAVACCT_FILE_LOC) -AC_SUBST(USRACCT_FILE_LOC) - dnl Dump the makefiles and etc. AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) AC_OUTPUT debian/patches/488731-sa-manpage-default-unit.patch0000644000000000000000000000126312271055644017032 0ustar From: Dominique Brazziel Subject: 'sa' manual needs correction for 'real time' and 'cpu time' fields Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488731 Index: acct-6.5.4/sa.8 =================================================================== --- acct-6.5.4.orig/sa.8 2010-04-25 22:12:19.991675479 -0400 +++ acct-6.5.4/sa.8 2010-04-25 22:13:12.447678194 -0400 @@ -191,10 +191,10 @@ The output fields are labeled as follows: .TP .I cpu - sum of system and user time in cpu seconds + sum of system and user time in cpu minutes .TP .I re - "real time" in cpu seconds + "elapsed time" in minutes .TP .I k cpu-time averaged core usage, in 1k units debian/patches/isoc11_drops_gets.patch0000644000000000000000000000473312271055644015203 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . acct (6.5.5-1) unstable; urgency=low . * Acknowledge NMU. * New upstream release: 6.5.5 * debian/patches/03-acct-file.patch: update for new release. * Bump Standards-Version to 3.9.1. * debian/control: Drop quilt Build-Depends (not needed in 3.0 quilt format). * debian/rules: Drop the usage of quilt.mk (and calls to patch/unpatch). * debian/patches/581421-sa-hz-division.patch: update to unbreak specifying --other-acct-file for 'sa', remove other unnecessary hunks as well. * debian/patches/12-ftbfs-kfreebsd.patch: apply patch to fix builds on kfreebsd, with some adjustements due to parts of the patch already applied upstream. Many thanks to Mats Erik Andersson for the patch. (Closes: 600284) * debian/patches/441927-accton-without-args.patch: slightly update docs to have it agree with accton, which can't be called without arguments. (Closes: 441927) * debian/control: update Maintainer entry for GPG key change. Author: Mathieu Trudel-Lapierre Bug-Debian: http://bugs.debian.org/441927 Bug-Debian: http://bugs.debian.org/600284 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- acct-6.5.5.orig/lib/stdio.in.h +++ acct-6.5.5/lib/stdio.in.h @@ -141,8 +141,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not /* It is very rare that the developer ever has full control of stdin, so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ +#if !defined __USE_ISOC11 #undef gets _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@ debian/patches/fix-texi-warnings.patch0000644000000000000000000000214212271055644015226 0ustar Description: Fix FTBFS with new texinfo. Author: Dmitrijs Ledkovs --- acct-6.5.5.orig/accounting.texi +++ acct-6.5.5/accounting.texi @@ -66,7 +66,7 @@ approved by the Foundation. @end titlepage @c ---------------------------------------------------------------------- -@ifinfo +@ifnottex @node Top, Preface, (dir), (dir) Welcome to the GNU Accounting Utilities! If you don't have a clue about @@ -77,7 +77,7 @@ program's name. This is Edition @value{EDITION} of the documentation, updated @value{UPDATED} for version @value{VERSION} of the GNU Accounting Utilities. -@end ifinfo +@end ifnottex @menu * Preface:: general information about the accounting utilities @@ -468,7 +468,7 @@ overhead, it is forseeable that the entr wrong order. GNU @code{ac} automatically compensates for this, but some other @code{ac}s may not... beware. -@unnumberedsubsubsec The FTP Problem +@unnumberedsubsec The FTP Problem I've tested the standard @code{ac} in Ultrix 4.2 (DECstation/DECsystem), SunOS 4.1.1 (Sun3, Sun4, Sparc), Mach 2.5 (Omron/Luna), and DomainOS debian/patches/05-no-info-dir.patch0000644000000000000000000000123712271055644014212 0ustar Author: Santiago Vila Description: Prevent install-info from running at "make install" time Forwarded: not-needed Last-Update: 2009-09-08 diff -ru acct-6.4~pre1.orig/Makefile.in acct-6.4~pre1/Makefile.in --- acct-6.4~pre1.orig/Makefile.in 2009-08-24 12:28:51.000000000 +0200 +++ acct-6.4~pre1/Makefile.in 2009-08-31 13:05:44.000000000 +0200 @@ -981,8 +981,7 @@ done; \ done @$(POST_INSTALL) - @if (install-info --version && \ - install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ + @if false; then \ list='$(INFO_DEPS)'; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ debian/patches/441927-accton-without-args.patch0000644000000000000000000000337412271055644016325 0ustar From: Mathieu Trudel-Lapierre Subject: Update documentation for the accton utility. Bug-Debian: http://bugs.debian.org/441927 Forwarded: no Accton can't be called without arguments, so update the manpage and info document to make it clear that it's not possible, and explain (does it really need explaining?) the use of the 'on' and 'off' arguments. Index: acct/accton.8 =================================================================== --- acct.orig/accton.8 2011-02-25 10:49:50.867181826 -0500 +++ acct/accton.8 2011-02-25 10:51:47.787181789 -0500 @@ -24,8 +24,7 @@ .LP .B accton .I filename -turns on process accounting. If called with no arguments, -it will, by default, stop process accounting. +turns on process accounting. .SH OPTIONS .PD 0 .TP @@ -38,6 +37,12 @@ .B \-h, \-\-help Prints the usage string and default locations of system files to standard output and exits. +.TP +.B on +Turns on process accounting using the default accounting file name. +.TP +.B off +Turns off process accounting. .SH FILES .TP .I acct Index: acct/accounting.texi =================================================================== --- acct.orig/accounting.texi 2011-02-25 10:51:58.897181786 -0500 +++ acct/accounting.texi 2011-02-25 10:52:47.887181770 -0500 @@ -539,9 +539,6 @@ @code{accton @var{accountingfile}} -If called with no arguments, it will, by default, stop process -accounting. - @section Flags @table @code @@ -555,6 +552,12 @@ Print @code{accton}'s usage string and default locations of system files to standard output. +@item on +Turns on process accounting using the default accounting file. + +@item off +Turns off process accounting. + @end table @c ---------------------------------------------------------------------- debian/patches/581421-sa-hz-division.patch0000644000000000000000000000272712271055644015262 0ustar From: Dominique Brazziel Subject: Fix for sa reporting 'inf' or 'nan' instead of correct values because of division by clock values. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581421 Last-Updated: 2011-02-25 --- acct-6.5.4.orig/sa.c 2010-02-11 20:55:14.000000000 -0500 +++ acct-6.5.4/sa.c 2010-07-22 14:08:26.000000000 -0400 @@ -1162,31 +1164,30 @@ # define CURR_AHZ ((double)(ahz)) #endif - if (debugging_enabled) fprintf (stddebug, "\ ----------------------------------------------------------------------\n\ acct entries\n\ ----------------------------------------------------------------------\n\ "); - + /* loop while there are entries to be had */ while ((rec = pacct_get_entry ()) != NULL) { #ifdef HAVE_ACUTIME - double ut = comp_t_2_double (rec->ac_utime) / (double) hzval; + double ut = comp_t_2_double (rec->ac_utime) / CURR_AHZ; #endif #ifdef HAVE_ACSTIME - double st = comp_t_2_double (rec->ac_stime) / (double) hzval; + double st = comp_t_2_double (rec->ac_stime) / CURR_AHZ; #endif #ifdef HAVE_ACETIME - double et = comp_t_2_double (rec->ac_etime) / (double) hzval; + double et = ACETIME_2_DOUBLE (rec->ac_etime) / CURR_AHZ; #endif #ifdef HAVE_ACIO - double di = comp_t_2_double (rec->ac_io) / (double) hzval; + double di = comp_t_2_double (rec->ac_io) / CURR_AHZ; #endif #ifdef HAVE_ACMEM debian/patches/12-ftbfs-kfreebsd.patch0000644000000000000000000000411512271055644014754 0ustar Description: FTBFS on GNU/kFreeBSD. Incomplete detection of __FreeBSD_kernel__ as well as unsatisfied dependency on prevented even configuration to succeed for GNU/kFreeBSD. . Manipulations of the macros 'acct' and 'ac_flag' completes the road to a functional software. . The test "__FreeBSD_kernel_version__ >= 801000" can certainly be relaxed to a version closer to 7.0. . Further updated by Mathieu Trudel due to multiple parts of the initial patch (see bug 600284) partly applied in acct 6.5.5. Author: Mats Erik Andersson Bug-Debian: http://bugs.debian.org/600284 Forwarded: no Last-Update: 2011-02-25 Index: acct/configure.ac =================================================================== --- acct.orig/configure.ac 2011-02-25 10:37:54.000000000 -0500 +++ acct/configure.ac 2011-02-25 10:40:28.297182003 -0500 @@ -172,7 +172,7 @@ #ifndef WTMP_FILE # if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) # define WTMP_FILE "/var/log/wtmp" # else # if defined(sun) || defined(AMIX) @@ -189,7 +189,7 @@ #ifndef ACCT_FILE # if defined(__FreeBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) # define ACCT_FILE "/var/log/account/pacct" # else # if defined(__NetBSD__) @@ -210,7 +210,7 @@ #ifndef SAVACCT_FILE # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) # define SAVACCT_FILE "/var/log/account/savacct" # else # if defined(sun) || defined(AMIX) @@ -227,7 +227,7 @@ #ifndef USRACCT_FILE # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ - || defined(__FreeBSD_kernel__) + || defined(__FreeBSD_kernel__) || defined(__GLIBC__) # define USRACCT_FILE "/var/log/account/usracct" # else # if defined(sun) || defined(AMIX) debian/patches/series0000644000000000000000000000054412314557305012042 0ustar 01-last.patch 03-acct-file.patch 10-do-not-split-html-info.patch 12-ftbfs-kfreebsd.patch 414300-lastcomm-fields-descr.patch 512729-lastcomm-files.patch 488731-sa-manpage-default-unit.patch 581421-sa-hz-division.patch 441927-accton-without-args.patch isoc11_drops_gets.patch fix-texi-warnings.patch cross-build-support.patch preprocessor-syntax-error.patch debian/patches/512729-lastcomm-files.patch0000644000000000000000000000121312271055644015327 0ustar From: Mathieu Trudel Subject: Update lastcomm's manpage, specify where pacct files are located Thanks Scott Edwards. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512729 Index: acct-6.5.4/lastcomm.1 =================================================================== --- acct-6.5.4.orig/lastcomm.1 2010-04-25 21:37:09.140672409 -0400 +++ acct-6.5.4/lastcomm.1 2010-04-25 21:39:13.871674354 -0400 @@ -187,6 +187,10 @@ (or .BR pacct (5)) for further details. +.I /var/log/account +.RS +This directory contains pacct files which contain the binary process +accounting data as written by the kernel. .RE .LP debian/patches/414300-lastcomm-fields-descr.patch0000644000000000000000000000213712271055644016561 0ustar From: Mathieu Trudel Subject: Correct field description for the last field in lastcomm's reports Thanks David Simner. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414300 Index: acct-6.5.4/accounting.texi =================================================================== --- acct-6.5.4.orig/accounting.texi 2010-04-25 21:18:16.559677902 -0400 +++ acct-6.5.4/accounting.texi 2010-04-25 21:18:23.811694633 -0400 @@ -611,7 +611,7 @@ @item the name of the user who ran the process @item -time the process exited +time the process started @end itemize @section Flags Index: acct-6.5.4/lastcomm.1 =================================================================== --- acct-6.5.4.orig/lastcomm.1 2010-04-25 21:16:42.784674168 -0400 +++ acct-6.5.4/lastcomm.1 2010-04-25 21:16:56.204768816 -0400 @@ -111,7 +111,7 @@ D -- command terminated with the generation of a core file X -- command was terminated with the signal SIGTERM + the name of the user who ran the process - + time the process exited + + time the process started .SH OPTIONS .PD 0 .TP debian/patches/10-do-not-split-html-info.patch0000644000000000000000000000072412271055644016311 0ustar From: Mathieu Trudel Subject: Don't split HTML documentation in multiple files. Forwarded: no --- a/Makefile.in +++ b/Makefile.in @@ -143,7 +143,7 @@ TEXINFOS = accounting.texi TEXI2DVI = texi2dvi TEXI2PDF = $(TEXI2DVI) --pdf --batch -MAKEINFOHTML = $(MAKEINFO) --html +MAKEINFOHTML = $(MAKEINFO) --html --no-split AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) DVIPS = dvips RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ debian/compat0000644000000000000000000000000212271055644010372 0ustar 9 debian/control0000644000000000000000000000162512330153525010574 0ustar Source: acct Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Mathieu Trudel-Lapierre Build-Depends: debhelper (>= 9), dh-autoreconf, texi2html, texinfo Standards-Version: 3.9.4 Homepage: http://www.gnu.org/software/acct/ Package: acct Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, dpkg (>= 1.15.4) | install-info Description: The GNU Accounting utilities for process and login accounting GNU Accounting Utilities is a set of utilities which reports and summarizes data about user connect times and process execution statistics. . "Login accounting" provides summaries of system resource usage based on connect time, and "process accounting" provides summaries based on the commands executed on the system. . The 'last' command is provided by the sysvinit package and not included here. debian/changelog0000644000000000000000000007766712330153366011071 0ustar acct (6.5.5-2.1ubuntu1) utopic; urgency=medium * Resynchronise with Debian. Remaining changes: - Remove stop links from rc0 and rc6. -- Colin Watson Wed, 30 Apr 2014 11:56:50 +0100 acct (6.5.5-2.1) unstable; urgency=low * Non-maintainer upload. * Fix preprocessor syntax mistake is files.h.in to prevent FTBFS on kFreeBSD (Closes: #736949) -- Alessio Treglia Wed, 26 Mar 2014 14:20:41 +0000 acct (6.5.5-2) unstable; urgency=low * debian/rules: - Update to use dh. (Closes: 647015) - Run dh_autoreconf properly (Closes: 696204) * debian/compat: update to compat 9. * debian/control: - Bump debhelper build-depends to >= 9. - Update to Standards-Version 3.9.4. - Add a Build-Depends on dh-autoreconf. - Drop Build-Depends for autoconf, automake, autotools-dev. * debian/patches/isoc11_drops_gets.patch: don't try to warn for use of gets, it's not actually used in acct and no longer in C11, which causes the attempt to set a warning to fail the build. (Closes: 701386) * debian/patches/fix-texi-warnings.patch: fix warnings when building documentation from texi source. Thanks, Dimitry Ledkov. * debian/patches/cross-build-support.patch: fix cross-building by removing the unnecessary configure checks that run a program to attempt to determine accounting file locations. Thanks to Steve Langasek for the patch. (Closes: 696204) -- Mathieu Trudel-Lapierre Sun, 26 Jan 2014 18:17:38 +0000 acct (6.5.5-1ubuntu5) trusty; urgency=medium * Use dh-autoreconf rather than various other less-complete methods. -- Colin Watson Wed, 18 Dec 2013 12:19:43 +0000 acct (6.5.5-1ubuntu4) saucy; urgency=low * Fix FTBFS with new texinfo. -- Dmitrijs Ledkovs Thu, 19 Sep 2013 16:25:28 +0100 acct (6.5.5-1ubuntu3) raring; urgency=low * Correct cross-build handling in debian/rules to pass the proper --host, --build arguments to configure instead of trying to set CC directly. * debian/patches/cross-build-support.patch: remove pointless configure check that tries to run a program to define wtmp/acct file paths; we can just as well include this in files.h.in and use the results of the macro checks directly. * add build-dependency on libtool, needed for a full autoreconf. * Call autoreconf -f to force update of the libtool macros. * debian/patches/gnulib-c11-compat.patch: Fix gnulib stdio.h compatibility with C11. * Call dpkg-buildflags in debian/rules, to build with hardening support. -- Steve Langasek Mon, 17 Dec 2012 18:55:23 -0800 acct (6.5.5-1ubuntu2) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Mon, 01 Oct 2012 16:42:03 +0100 acct (6.5.5-1ubuntu1) oneiric; urgency=low * Merge from debian unstable. Remaining changes: - Remove stop links from rc0 and rc6. -- Stéphane Graber Fri, 06 May 2011 14:01:39 -0400 acct (6.5.5-1) unstable; urgency=low * Acknowledge NMU. * New upstream release: 6.5.5 * debian/patches/03-acct-file.patch: update for new release. * Bump Standards-Version to 3.9.1. * debian/control: Drop quilt Build-Depends (not needed in 3.0 quilt format). * debian/rules: Drop the usage of quilt.mk (and calls to patch/unpatch). * debian/patches/581421-sa-hz-division.patch: update to unbreak specifying --other-acct-file for 'sa', remove other unnecessary hunks as well. * debian/patches/12-ftbfs-kfreebsd.patch: apply patch to fix builds on kfreebsd, with some adjustements due to parts of the patch already applied upstream. Many thanks to Mats Erik Andersson for the patch. (Closes: 600284) * debian/patches/441927-accton-without-args.patch: slightly update docs to have it agree with accton, which can't be called without arguments. (Closes: 441927) * debian/control: update Maintainer entry for GPG key change. -- Mathieu Trudel-Lapierre Fri, 25 Feb 2011 20:31:15 -0500 acct (6.5.4-2.1ubuntu1) natty; urgency=low * Merge from Debian unstable (LP: #661056), remaining changes: - Remove stop links from rc0 and rc6. -- Artur Rona Thu, 14 Oct 2010 17:20:42 +0200 acct (6.5.4-2.1) unstable; urgency=low * NMU with maintainer's blessing. * Call autoreconf in debian/rules, add autoconf and automake to build-dependencies. Thanks to Mats Erik Andersson for the hint to how to solve this. (closes: #579483). -- Ralf Treinen Mon, 27 Sep 2010 22:06:24 +0200 acct (6.5.4-2ubuntu1) maverick; urgency=low * Merge from Debian testing, remaining changes: (LP: #609754) - Remove stop links from rc0 and rc6. -- Artur Rona Thu, 05 Aug 2010 00:08:34 +0200 acct (6.5.4-2) unstable; urgency=low * Re-add patch 03-acct-file.patch applied upstream in 6.5.1, seems the change is no longer there in 6.5.4. (Closes: 579483) * Update Standards-Version to 3.9.0. * Revert to division by CURR_AHZ rather sysconf(_SC_CLK_TCK) (Closes: 581421) -- Mathieu Trudel Fri, 23 Jul 2010 08:58:38 +0200 acct (6.5.4-1) unstable; urgency=low * New upstream release: 6.5.4 * Updated patch to remove last from the documentation. - updated debian/patches/01-last.patch * Drop lastcomm's strict-match documentation patch, applied upstream. - deleted debian/patches/06-lastcomm-manpage-strict-match.patch - updated debian/patches/series * Drop manpage updates to remove PD macros. - deleted debian/patches/07-manpage-PD-macros.patch - updated debian/patches/series * Drop lastcomm manpage update for typos (B macro). - deleted debian/patches/08-lastcomm-manpage-hyphen-as-minus-sign.patch - updated debian/patches/series * Update field descriptions for lastcomm's reports (Closes: #414300) - added debian/patches/414300-lastcomm-fields-descr.patch * Update FILES section in lastcomm's manpage (Closes: #512729) - added debian/patches/512729-lastcomm-files.patch - updated debian/patches/series * Correct default unit in sa manpage, thanks Dominique Brazziel (Closes: #488731) - added debian/patches/488731-sa-manpage-default-unit.patch - updates debian/patches/series * Update acct init.d script to use lsb init-functions (Closes: #457976) - updated debian/acct.init.d * Create debian/source/format, switch to format 3.0 (quilt). - added debian/source/format * Bump Standards-Version to 3.8.4 - update debian/control * Drop dircategory/direntry additions to accounting.texi, applied upstream. - deleted debian/patches/09-info-dir-entry.patch - updated debian/patches/series -- Mathieu Trudel Sun, 25 Apr 2010 23:08:23 -0400 acct (6.5.1-1ubuntu1) lucid; urgency=low * Merge from Debian testing, remaining changes: (LP: #510177) - Remove stop links from rc0 and rc6. -- Mathieu Trudel Wed, 20 Jan 2010 12:26:23 -0500 acct (6.5.1-1) unstable; urgency=low * New maintainer (Closes: #543825) * New upstream release. - Drop patch 02-manpage.patch, applied upstream. - Drop patch 03-acct-file.patch. applied upstream. - Drop patch 04-lastcomm-forwards.patch, applied upstream. - Drop changes to accounting.info from 01-last.patch, file is rebuilt. * Updated dump-acct.8 manpage (Closes: #401597) * Sync strict-match documentation with reality (Closes: #401904) * Add format, byteswap and ahz swiches to dump-acct manpage (Closes: #401597) * Re-adding watch file. * Fixed minor errors in manpages: PD macros. * Fixed minor typo in lastcomm manpage. * Use invoke-rc.d in daily crontab. * Fixed depends for triggerized install-info directory building. * Set doc-base section to System/Security. * Added README.source * Updated copyright to reflect licence and new upstream maintainer. * Added dircategory and direntry entries in texinfo source. * Install all files individually from debian/tmp using acct.install. * Don't split HTML documentation in multiple files. * Conversion to keep packaging in Bzr source control. -- Mathieu Trudel Sat, 05 Dec 2009 00:35:01 -0500 acct (6.4~pre1-9ubuntu1) lucid; urgency=low * Resynchronise with Debian. Remaining changes: - Remove stop links from rc0 and rc6. -- Colin Watson Fri, 20 Nov 2009 19:00:51 -0600 acct (6.4~pre1-9) unstable; urgency=low * QA upload. * Changed Makefile.in to avoid /usr/share/info/dir.gz. Closes: #543911. -- Santiago Vila Mon, 31 Aug 2009 13:14:50 +0200 acct (6.4~pre1-8) unstable; urgency=low * Updating package to standards version 3.8.3. * Sorting depends. * Removing vcs fields. * Orphaning package. -- Daniel Baumann Thu, 27 Aug 2009 06:44:02 +0200 acct (6.4~pre1-7) unstable; urgency=low * Reverting config.guess and config.sub to upstream. * Upgrading package to debhelper 7. * Upgrading package to standards 3.8.0. * Adding vcs fields in control file. * Rewriting copyright file in machine-interpretable format. * Removing watch file. * Using patch-stamp rather than patch in rules file. * Replacing obsolete dh_clean -k with dh_prep. * Prefixing debhelper files with package name. * Updating year in copyright. * Updating standards version to 3.8.2. * Using quilt rather than dpatch. * Reordering rules file. * Adding pid and ppid in dump-acct.8, thanks to Justin Pryzby (Closes: #511425). -- Daniel Baumann Tue, 07 Jul 2009 00:41:35 +0200 acct (6.4~pre1-6ubuntu1) intrepid; urgency=low * Resynchronise with Debian. Remaining changes: - Remove stop links from rc0 and rc6. * Switch from deprecated update-rc.d multiuser to manual arguments. * Update LSB init script header. * Update Maintainer for Ubuntu. -- Colin Watson Tue, 24 Jun 2008 12:18:43 +0100 acct (6.4~pre1-6) unstable; urgency=medium * Adjusted lsb header of init script, thanks Petter Reinholdtsen (Closes: #466279). -- Daniel Baumann Sat, 08 Mar 2008 09:04:00 +0100 acct (6.4~pre1-5) unstable; urgency=low * Bumped to new policy. * Using new homepage field in control. * Don't hide make errors in clean target. * Removing historic changes entries in the first lines of changelog entries, they are present in the actual entries anyway but are causing lintian noise. -- Daniel Baumann Thu, 27 Dec 2007 08:45:00 +0100 acct (6.4~pre1-4ubuntu1) gutsy; urgency=low * Merge from debian unstable, remaining changes: - Remove stop links from rc0 and rc6. -- Stephan Hermann Sun, 27 May 2007 00:28:26 +0200 acct (6.4~pre1-4) unstable; urgency=low * Minor cleanups. * Bumped to debhelper 5. * Added lsb header to init.d. * Added the remaining things to cron.monthly, other things were solved different already (Closes: #378359). -- Daniel Baumann Sun, 29 Apr 2007 12:27:00 +0200 acct (6.4~pre1-3ubuntu1) feisty; urgency=low * Merge from Debian unstable, remaining change: - Remove stop links from rc0 and rc6. -- ville palo Tue, 05 Dec 2006 01:29:51 +0000 acct (6.4~pre1-3) unstable; urgency=medium * Adapted the patch from Dean Gaudet to add lastcomm -f - stdin and --forwards support to current acct (Closes: #262583). * Fixed cron.monthly to not process the non-rotated logfile twice if the rotated one isn't existing (Closes: #51796). -- Daniel Baumann Sun, 5 Nov 2006 13:55:00 +0100 acct (6.4~pre1-2ubuntu1) feisty; urgency=low * Merge from debian unstable, remaining changes: - remove stop links from rc0 and rc6 -- Scott James Remnant Mon, 27 Nov 2006 14:16:04 +0000 acct (6.4~pre1-2) unstable; urgency=medium * Forgot to remove unused var in init.d (Closes: #397134). -- Daniel Baumann Sun, 5 Nov 2006 13:55:00 +0100 acct (6.4~pre1-1) unstable; urgency=medium * New email address. * Hardcoding location of the log files, using environment variables does not work for all binaries (Closes: #377835, #380744, #385626, #392045, #396444). * Adjusted init.d script to log to syslog directly as suggested by Gian Piero Carrubba (Closes: #208939). * Updated sort call in cron.monthly to new syntax as found out by Gilles Mocellin and others (Closes: #375712, #381492). * Updated ac call in cron.monthly to process both $WTMP and /var/log/wtmp.1 (Closes: #324910). * Fixed spelling mistake in default (Closes: #392023). * Fixed spelling mistake and incompleteness in dump-acct.8 (Closes: #392134). -- Daniel Baumann Sat, 04 Nov 2006 10:10:00 +0100 acct (6.3.99+6.4pre1-4ubuntu1) edgy; urgency=low * Remove stop script symlinks from rc0 and rc6. -- Scott James Remnant Fri, 15 Sep 2006 16:48:04 +0100 acct (6.3.99+6.4pre1-4) unstable; urgency=low * Fixed typo in init.d (Closes: #361109, #361109). -- Daniel Baumann Sun, 25 Jun 2006 08:37:00 +0200 acct (6.3.99+6.4pre1-3) unstable; urgency=low * Storing logging information for a month instead of a week (Closes: #271466). * Rewritten init.d and fixed accton call in init.d (Closes: #361109, #361109). * Using /etc/default/acct now to store settings (Closes: #219194, #353034, #361111). * Fixed manpage error (Closes: #360098, #364589) -- Daniel Baumann Fri, 23 Jun 2006 06:53:00 +0200 acct (6.3.99+6.4pre1-2) unstable; urgency=low * Removed useless debconf message (Closes: #358698). * Removed last documentation (Closes: #360302). -- Daniel Baumann Sun, 28 May 2006 05:36:00 +0200 acct (6.3.99+6.4pre1-1) unstable; urgency=low * New maintainer (Closes: #357362). * New upstream release: - supporting v3 file format (Closes: #289648, #291154, #327134) * Redone debian directory: - added watch file. - corrected copyright file (Closes: #290052). - fixed debconf depends (Closes: #331731). - removed references to non-existing pacct in dump-acct.8 (Closes: #293837). - removed dpatches: one was merged upstream, manpages are broken-out, and /usr/bin/last ist removed after compilation (less intrusive). - added Czech debconf translation (Closes: #282320, #287291). - added Finnish debconf translation (Closes: #303851). - added Vietnamese debconf translation (Closes: #307597). - updated Dansk debconf translation (Closes: #241243). - updated German debconf translation (Closes: #314136). * Acknowledge NMU: - fixed gzipped logfile handling in cron.monthly (Closes: #187538, #208220, #212961). - adjusted logfile path for logger call in init.d (Closes: #208939). -- Daniel Baumann Sat, 18 Mar 2006 18:38:00 +0100 acct (6.3.5-39) unstable; urgency=low * Acknowledging NMU's. Thanks. (closes: #187539, #198581, #198581) * Added Co-Maintainer (me) to Uploaders field. * Added/updated polish, greek, portuguese, japanese translations. (closes: #208954, #229531, #216200, #222063, #229499, #229523) * Bumped Standars-Version to 3.6.1. -- Andrés Roldán Sun, 01 Feb 2004 23:02:22 +0000 acct (6.3.5-38.2) unstable; urgency=low * Fix gzip support in cron.monthly to not delete/recreate the wtmp file (gunzip: /var/log/wtmp.1 already exists; not overwritten) -- Matt Zimmerman Sun, 01 Feb 2004 12:00:00 -0800 acct (6.3.5-38.1) unstable; urgency=low * NMU with maintainer consent * Handled gzipped wtmp file. Closes: #187539. Thanks Tero Tilus * Switch to po-debconf templates. Closes: #198581 * Added danish templates translation (converted to gettext). Closes: #174728 -- Christian Perrier Mon, 28 Jul 2003 16:32:05 +0200 acct (6.3.5-38) unstable; urgency=low * New maintainer (closes: #177233). * Package builded from the scratch. * Fixed danish debconf template. * Fixed broken output on ia64 and alpha (closes: #169099). -- Luis Bustamante Sun, 19 Jan 2003 01:26:12 -0500 acct (6.3.5-37) unstable; urgency=low * debian/dump-acct.8: Clarified meaning of time field (Closes: #177020) -- Dirk Eddelbuettel Fri, 17 Jan 2003 19:22:55 -0600 acct (6.3.5-36) unstable; urgency=low * debian/template: Added new debconf text in Danish (Closes: #174727) * debian/control: Upped debconf versioned Depends to ">= 1.2.9" (lintian) * debian/control: Small editing in Description (lintian) -- Dirk Eddelbuettel Wed, 01 Jan 2003 08:56:23 -0600 acct (6.3.5-35) unstable; urgency=low * etc/init.d/acct: Applied patch by ralf.hildebrandt@charite.de to rely only on 'uname -r' as 'uname -a' fails on hppa (Closes: 165535) -- Dirk Eddelbuettel Sun, 20 Oct 2002 19:17:43 -0500 acct (6.3.5-34) unstable; urgency=low * debian/control: s|Debian Linux|Debian GNU/Linux| (Closes: #150886) * debian/rules: Move #DEBHELPER# to end so that /etc/init.d/acct is called after modes/owner chg on /var/account/pacct (Closes: #153905) -- Dirk Eddelbuettel Mon, 22 Jul 2002 19:44:05 -0500 acct (6.3.5-33) unstable; urgency=low * debian/cron.monthly: Test for /var/log/wtmp.1 (Closes: #146918) -- Dirk Eddelbuettel Sat, 18 May 2002 12:20:57 -0500 acct (6.3.5-32) unstable; urgency=low * debian/templates: Updated Russian debconf template (Closes: #136918) -- Dirk Eddelbuettel Sat, 18 May 2002 12:20:10 -0500 acct (6.3.5-31) unstable; urgency=low * debian/templates: Updated French debconf template (Closes: #134624) -- Dirk Eddelbuettel Tue, 26 Feb 2002 20:49:57 -0600 acct (6.3.5-30) unstable; urgency=low * debian/templates: New debconf text in russian (Closes: #112535) -- Dirk Eddelbuettel Fri, 14 Dec 2001 18:55:33 -0600 acct (6.3.5-29) unstable; urgency=low * debian/templates: Changed Type from text to note (Closes: #106327) * debian/templates: New debconf text in spanish (Closes: #106935) -- Dirk Eddelbuettel Tue, 31 Jul 2001 22:17:49 -0500 acct (6.3.5-28) unstable; urgency=low * sa.c: Applied patch by LaMont Jones which enables compilation by gcc-3.0, the default compiler on the parisc architecure (Closes: #103147) * debian/prerm: Don't call "/etc/init.d/acct stop" explicitly as debhelper's dh_installinit also adds a call. -- Dirk Eddelbuettel Mon, 02 Jul 2001 21:40:05 -0500 acct (6.3.5-27) unstable; urgency=low * debian/{cron.daily,postinst}: change pacct to mode 0640,root.adm. Thanks to Manuel López Moreno (Closes: #86045) -- Dirk Eddelbuettel Tue, 01 May 2001 22:21:27 -0500 acct (6.3.5-26) unstable; urgency=low * debian/templates: Added text for pt translation (Closes: #89439) * debian/{pre,post}{inst,rm}: lintian cleanups -- Dirk Eddelbuettel Thu, 19 Apr 2001 21:54:36 -0500 acct (6.3.5-25) unstable; urgency=low * debian/control: Added Standards-Version: back in (Closes: #86925) -- Dirk Eddelbuettel Wed, 21 Feb 2001 21:01:50 -0600 acct (6.3.5-24) unstable; urgency=low * debian/control: Added Build-Depends on texinfo (Closes: #85073) * For good measure, added a few more suggested by dpkg-genbuilddeps -- Dirk Eddelbuettel Wed, 07 Feb 2001 22:29:02 -0600 acct (6.3.5-23) unstable; urgency=low * debian/templates: Added non-English debconf text text for sv, nl, es and a new one for fr. (Closes: #83478, #83583, #84017, #84411) -- Dirk Eddelbuettel Sun, 04 Feb 2001 19:56:09 -0600 acct (6.3.5-22) unstable; urgency=low * debian/control: Build-Depends on texi2html and no longer on tetex-bin -- Dirk Eddelbuettel Thu, 04 Jan 2001 20:42:54 -0600 acct (6.3.5-21) unstable; urgency=low * debian/cron.monthly: Special case for logrotate (Closes: #68043) -- Dirk Eddelbuettel Sun, 06 Aug 2000 16:15:23 -0400 acct (6.3.5-20) unstable; urgency=low * debian/control: Add texi2html to Build-Depends (Closes: #67531) -- Dirk Eddelbuettel Fri, 21 Jul 2000 17:22:55 -0400 acct (6.3.5-19) unstable; urgency=low * debian/rules: Install dump-acct.8 and dump-utmp.8 which were contributed by Ognyan Kulev -- Dirk Eddelbuettel Wed, 19 Jul 2000 19:08:13 -0400 acct (6.3.5-18) unstable; urgency=low * debian/templates: Apply Italian debconf text (Closes: #64160) * debian/templates: Also added German and French text -- Dirk Eddelbuettel Sat, 27 May 2000 16:28:13 -0400 acct (6.3.5-17) unstable; urgency=low * debian/control: Added Build-Depends: information (Closes: #51840) -- Dirk Eddelbuettel Wed, 15 Dec 1999 18:42:48 -0500 acct (6.3.5-16) unstable; urgency=low * postinst: Added db_stop upon Joey Hess' advice (Closes: #50043) * control: Upgraded to Policy 3.1.0 -- Dirk Eddelbuettel Sun, 14 Nov 1999 19:39:17 -0500 acct (6.3.5-15) unstable; urgency=low * Ah, the joys of new technology. Helping out with the whirlwind upgrade to the new debconf, we were bitten by a simple mistake in the config file. Thanks again to Joey Hess for a quick fix (Closes: #48861) * control: Require debconf >= 0.2 -- Dirk Eddelbuettel Mon, 01 Nov 1999 20:45:05 -0500 acct (6.3.5-14) unstable; urgency=low * preinst: Test for install-docs (fixes Lintian error) * postinst, config: Small debconf changes, kindly supplied by Joey Hess -- Dirk Eddelbuettel Sun, 31 Oct 1999 10:14:32 -0500 acct (6.3.5-13) unstable; urgency=low * Integrated Joey Hess' changes for debconf. * debian/rules: Adapted to use /usr/share/ following the recommendation on FHS transition from the Technical Committee * debian/control: Upgraded to Debian Policy 3.0.1 * debian/control: Removed obsolete note about required kernel patch -- Dirk Eddelbuettel Sat, 02 Oct 1999 11:35:22 -0400 acct (6.3.5-12) unstable; urgency=low * Upgraded to new Debian Perl Policy -- Dirk Eddelbuettel Sun, 04 Jul 1999 14:19:41 -0400 acct (6.3.5-11) unstable; urgency=low * Recompiled on a 2.2.* system -- Dirk Eddelbuettel Sun, 30 May 1999 11:59:22 -0400 acct (6.3.5-10) unstable; urgency=low * debian/rules: Define -DHAVE_LINUX_ACCT_H=1 in order to use acct.h from the 2.2.9 kernel and not sys.h from glibc-2.0 * debian/acctdump: No longer installed as it works neither with linux/acct.h, nor with sys/acct.h (and there still is dump-acct) * compare_kernel_version: -- changed to use POSIX::uname, not `uname` -- added run-time flag -d for debug mode -- corrected return value logic (fixes #37421) * compare_kernel_version.8: added a simple manual page -- Dirk Eddelbuettel Sun, 16 May 1999 21:52:52 -0400 acct (6.3.5-9) unstable; urgency=low * Recompiled under 2.2.* kernel (#18314, #24085) * Added a simple script /usr/sbin/compare_kernel_version to test the running kernel against a command-line argument specifying a minimum kernel version * postinst: test for kernel >= 2.2 and, if needed, display a message suggesting the slink version of the package * /etc/init.d/acct: test for kernel >= 2.2 and exit early with short mesage if installed kernel does not match (ie < 2.2) -- Dirk Eddelbuettel Tue, 04 May 1999 20:44:34 -0400 acct (6.3.5-8) unstable; urgency=low * debian/prerm: Call /etc/init.d/acct to stop accounting as this more robust against missing Accounting support in the kernel. (fixes #32711) * debian/control: Added note that Accounting support has to be compiled into the kernel for this to work. -- Dirk Eddelbuettel Tue, 02 Feb 1999 18:30:56 -0500 acct (6.3.5-7) unstable; urgency=low * debian/control: Deleted stale text errenously left over (fixes #32616) -- Dirk Eddelbuettel Fri, 29 Jan 1999 18:38:28 -0500 acct (6.3.5-6) unstable; urgency=low * debian/{rules,postinst,postrm}: Removed support for html documentation through menu as it is now provided by doc-base -- Dirk Eddelbuettel Thu, 14 Jan 1999 20:50:25 -0500 acct (6.3.5-5) unstable; urgency=low * Added support for doc-base -- Dirk Eddelbuettel Tue, 05 Jan 1999 21:43:16 -0500 acct (6.3.5-4) frozen unstable; urgency=low * [cron.daily, cron.monthly] Added tests for the existence of /usr/sbin/accton. This helps for cases where acct is removed, but not purged, and these conffiles are still around. (fixes #29340) -- Dirk Eddelbuettel Thu, 12 Nov 1998 21:32:37 -0500 acct (6.3.5-3) unstable; urgency=low * Corrected typos in console messages in /etc/init.d/acct (fixes #23480) -- Dirk Eddelbuettel Sat, 13 Jun 1998 11:57:14 -0400 acct (6.3.5-2) unstable; urgency=low * Changed /etc/init.d/acct by adding two 'set +e; ... set -e' blocks so that missing accounting support is properly recognised in all branches of the script (fixes #23282) -- Dirk Eddelbuettel Tue, 09 Jun 1998 21:36:16 -0400 acct (6.3.5-1) unstable; urgency=low * Upgraded to new upstream version 6.3.5 (fixes #3249) * This version does not work under 2.1.* kernels which the upstream author is trying to rectify. -- Dirk Eddelbuettel Wed, 27 May 1998 18:43:08 -0400 acct (6.3.2-4) frozen unstable; urgency=low * Changed debian/rules to not install last.1 as we don't install the last(1) command from acct (but rather sysvinit's) (fixes #22215) -- Dirk Eddelbuettel Thu, 07 May 1998 20:19:05 -0400 acct (6.3.2-3) unstable; urgency=low * Removed the note regarding accounting patch for kernels younger than 1.3.72 from debian/copyright and debian/control. Thanks to Richard Braakman for pointing this out (fixes #21334) * Added the 'acctdump' program which was provided by Ian Jackson (fixes #20839) * Upgraded debian/rules to debhelper * Upgraded to Debian Policy 2.4.1 -- Dirk Eddelbuettel Sat, 18 Apr 1998 16:12:41 -0400 acct (6.3.2-2) frozen unstable; urgency=low * Really changed /etc/init.d/acct so that logger reports to /var/log/daemon.log and not to /var/adm/daemon.log (fixes #18763) -- Dirk Eddelbuettel Tue, 24 Mar 1998 19:34:07 -0500 acct (6.3.2-1) unstable; urgency=low * Upgraded to new upstream version 6.3.2 -- Dirk Eddelbuettel Tue, 10 Mar 1998 19:46:34 -0500 acct (6.3-2) unstable; urgency=low * Changed /etc/init.d/acct so that logger reports to /var/log/daemon.log and not to /var/adm/daemon.log (fixes #18763) * Fixed FSF address in copyright (lintian) * Redirect update-rc.d call to /dev/null in postrm (lintian) * Added force-reload and restart targets to /etc/init.d/acct (lintian) * Created links to ../man7/undocumented.7.gz in lieu of manual pages for the two utility programs dump-acct and dump-utmp (lintian) * Upgraded to Debian Policy 2.4.0.0 -- Dirk Eddelbuettel Mon, 09 Mar 1998 20:24:05 -0500 acct (6.3-1) unstable; urgency=low * Upgraded to new upstream version 6.3 (which has been promoted from alpha.gnu.mit.edu to the brave GNU world of prep.ai.mit.edu) * Compiled with GNU libc2 aka libc6 * Now ships the unmodified upstream source as acct_6.3.orig.tar.gz * Changed debian/rules to also create accounting.html via texi2html * Added menu entry for html documentation -- Dirk Eddelbuettel Tue, 19 Aug 1997 22:11:21 -0400 acct (6.2-5) unstable; urgency=low * Added a variable to /etc/init.d/acct so that acct is installed but not started automatically if this variable is unset (fixes bug #11126) * Changed /etc/cron.daily/acct to call acct via /etc/init.d/acct and not directly so that the new variable is tested (fixes bug #11126) -- Dirk Eddelbuettel Wed, 9 Jul 1997 22:18:30 -0400 acct (6.2-4) unstable; urgency=low * The preinst no longer stops accounting during an upgrade as this is already done by the the postrm of the replaced packaged (fixes bug#7320) * No longer installs acct.5 which is provided by the manpages package -- Dirk Eddelbuettel Mon, 3 Mar 1997 20:57:37 -0500 acct (6.2-3) unstable; urgency=low * Use logger(1) to report unexpected return calls from accton(8) as suggested by Russell John Coker * Converted to Debian Standard 2.1.2.2 (fixes #7121) * Changed maintainer email address to -- Dirk Eddelbuettel Sun, 9 Feb 1997 22:00:42 -0500 Tue Jul 9 22:33:18 1996 Dirk Eddelbuettel * acct-6.2-2 release * debian.rules: fixed copyright installation (fixes bug#3738) Mon Jul 8 11:07:01 1996 Dirk Eddelbuettel * acct-6.2-1 release * acct.rc: /etc/init.d/acct tests for accton (fixes bug#3513) * debian.rules: compress man pages with gzip -9 * debian.postrm: "purge" now deletes /var/account directory * debian.control: changed description Sat Apr 20 22:30:46 1996 Dirk Eddelbuettel * acct-6.2-0 release: updated to new upstream version acct-6.2 Wed Apr 10 19:38:37 1996 Dirk Eddelbuettel * acct-6.1-0 release * converted to new upstream version acct-6.1 (fixes bug#2069) * added man pages for the acct commands that were provided by Susan G. Kleinmann and a simple acct.5 man page (fixes bug#1737) * ac.c: added a space to printf format (should fix bug#2283) * debian.rules: provide only acct, last is now provided by sysvinit * debian.control: added Architecture: field * acct.daily: exit(0) so that cron doesn't get the errno from accton.c Sat Dec 2 14:00:19 1995 Dirk Eddelbuettel * acct-5-13 and last-5-13 release * debian.control: ELF release, depends on libc5 Fri Oct 13 09:41:36 1995 Dirk Eddelbuettel * acct-5-12 and last-5-12 release * uid_hash.h (NAME_LEN): fixed bug#1651 reported and patched by Austin Donnelly Wed Oct 11 08:53:29 1995 Dirk Eddelbuettel * acct-5-11 and last-5-11 release * debian.postinst: call update-rc.d (fixes bug #1622) Mon Oct 2 16:39:00 1995 Dirk Eddelbuettel * dropped `alpha' from package names, now acct-5-10 and last-5-10 * accton.c: exit() now returns value of `errno' and /etc/init.d/acct examines that value; this gives better messages * accounting.texi: added a missing formatter for @item * last.1 man page addded Wed Sep 27 10:59:55 1995 Dirk Eddelbuettel * debian.control, debian.README: fixed bug #1486 by adding a note that 'sa' is unavailable due to missing support in the current kernel patch Thu Sep 21 15:52:14 1995 Dirk Eddelbuettel * acct-alpha-5-8 and last-alpha-5-8 * first separate release of 'last' package * changed control file for acct (fixes bugs #1415, #1131 and #969) * silent when accton fails during installation (fixes bug #1415) * new maintainer [edd: Changes made by Ian Murdock follow] Changes: * added Debian GNU/Linux package maintenance system files * added scripts to rotate process accounting file (daily), to perform monthly login accounting, and to start process accounting at system start time * added __linux__ definitions to files.h (we use /var/account/pacct as ACCT_FILE, /var/account/wtmp as WTMP_FILE, /var/account/savacct as SAVACCT_FILE, and /var/account/usracct as USRACCT_FILE) * changed last to truncate ftp entries by default (as Unix does it) * fixed a typo in accounting.texi debian/acct.init.d0000644000000000000000000000351012330153312011177 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: acct # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: process and login accounting # Description: GNU Accounting Utilities is a set of utilities which # reports and summarizes data about user connect times and # process execution statistics. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/accton NAME=acct DESC="process accounting" test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Include acct defaults if available if [ -f /etc/default/acct ] then . /etc/default/acct else ACCT_ENABLE="1" ACCT_LOGGING="30" fi set -e case "$1" in start) if [ "${ACCT_ENABLE}" = "1" ] then # Have to turn this on to be able to test the return code set +e start_daemon /usr/sbin/accton /var/log/account/pacct 2>/dev/null rv=$? if [ $rv -eq 0 ] then log_success_msg "Done." elif [ $rv -eq 38 ] then log_failure_msg "Failed." log_warning_msg "Process accounting not available on this system." elif [ $rv -eq 16 ] then log_failure_msg "Failed." log_warning_msg "Process accounting already running on this system." else logger -p daemon.err "Unexpected error code $rv received in /etc/init.d/acct" fi fi set -e ;; stop) # Have to turn this on to be able to test the return code set +e start_daemon /usr/sbin/accton off 2>/dev/null if [ $? -eq 0 ] then log_success_msg "Done." else log_failure_msg "Failed." log_warning_msg "Process accounting not available on this system." fi set -e ;; restart|force-reload) $0 stop sleep 1 $0 start ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/manpages/0000755000000000000000000000000012271055644010767 5ustar debian/manpages/dump-acct.80000644000000000000000000000431512271055644012740 0ustar .TH DUMP-ACCT 8 "2006-04-22" "6.4pre1" "GNU Accounting Utilities" .SH NAME dump-acct \- print an acct file in human-readable format. .SH SYNOPSIS .B dump-acct .RB [\| \-r \||\| \-\-reverse \|] .RB [\| \-R \||\| \-\-raw \|] .RB [\| \-\-format \|] .IR version \|] .RB [\| \-\-byteswap \|] .RB [\| \-\-ahz \|] .IR hertz \|] .RB [\| \-n \||\| \-\-num .IR recs \|] .RB [\| \-h \||\| \-\-help \|] .RB [\| .IR files \|] .SH DESCRIPTION .B dump-acct .I filename prints a list of all executed processes. This list is written by the kernel which must be compiled with BSD process accounting enabled (Debian kernel image have it already enabled). It must be started with .BR accton (5). Note that on Debian systems, this is ensured via the init script .IR /etc/init.d/acct . .LP All fields are separated by vertical line. Fields are: .IR command , .IR version , .IR "user time" , .IR "system time" , .IR "effective time" , .IR uid , .IR gid , .IR memory , .IR io , .IR pid , .IR ppid , .IR time . User, system and effective times are ticks per second. One tick is usually 1/50 of a second. The .I time field shows the start time of the process. The .B \-\-raw switch, as well as the .B \-\-format, .B \-\-byteswap, and .B \-\-ahz can be used as a handy format converter. .SH OPTIONS .TP .B \-h, \-\-help Prints the usage string and default locations of system files to standard output and exits. .TP .B \-n, \-\-num recs Number of lines to print. .TP .B \-r, \-\-reverse Start printing from last records. .TP .B \-R, \-\-raw Print raw records, not human-readable. .TP .B \-\-format version Use specified format version to display records. .TP .B \-\-byteswap Swap bytes endianness when reading records. .TP .B \-\-ahz Use specified units of time to display data from other kernel versions and architectures. .SH FILES .TP .I acct The system wide process accounting file. See .BR acct (5) for further details. .SH SEE ALSO .BR acct (5), .BR ac (8). .SH AUTHOR The GNU accounting utilities were written by Noel Cragg . .PP This manual page was written by Ognyan Kulev and updated by Daniel Baumann and Mathieu Trudel for the Debian project (but may be used by others). debian/manpages/dump-utmp.80000644000000000000000000000244612271055644013016 0ustar .TH DUMP-UTMP 8 "2006-04-22" "6.4pre1" "GNU Accounting Utilities" .SH NAME dump-utmp \- print an utmp file in human-readable format. .SH SYNOPSIS .B dump-acct .RB [\| \-r \||\| \-\-reverse \|] .RB [\| \-R \||\| \-\-raw \|] .RB [\| \-n \||\| \-\-num .IR recs \|] .RB [\| \-h \||\| \-\-help \|] .RB [\| .IR files \|] .SH DESCRIPTION .B dump-acct .I filename prints a list of all logins. This list is usually written in .IR /var/log/wtmp . .LP All fields are separated by vertical line. Fields are: .IR "user name" , .IR tty , .IR type , .IR id , .IR pid , .IR hostaddr , .IR host , .IR time . .SH OPTIONS .TP .B \-h, \-\-help Prints the usage string and default locations of system files to standard output and exits. .TP .B \-n, \-\-num recs Number of lines to print. .TP .B \-r, \-\-reverse Start printing from last records. .TP .B \-R, \-\-raw Print raw records, not human-readable. .SH FILES .TP .I wtmp The system wide login record file. See .BR wtmp (5) for further details. .SH SEE ALSO .BR login (1), .BR wtmp (5), .BR init (8), .BR sa (8). .SH AUTHOR The GNU accounting utilities were written by Noel Cragg . .PP This manual page was written by Ognyan Kulev and updated by Daniel Baumann for the Debian project (but may be used by others).