Sisyphus repository
Last update: 28 november 2022 | SRPMs: 17931 | Visits: 25412188
en ru br
ALT Linux repos
5.0: 6.4-alt0.5
4.1: 6.4-alt0.5
4.0: 6.4-alt0.4
3.0: 6.3.5-alt5

Other repositories

Group :: Monitoring
RPM: acct

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: acct
Version: 6.6.4
Release: alt1

Summary: Utilities for monitoring process activities.
License: GPLv3+
Group: Monitoring


Source: acct-%version.tar

Source2: acct.init
Source3: acct.service
Source4: acct.log
Source5: dump-acct.8

Patch1: acct-owl-doc.patch
Patch2: acct-alt-program_name.patch
Patch3: acct-rh-doc.patch
patch4: acct-rh-ub.patch
Patch5: acct-deb-alt-doc.patch
Patch6: acct-deb-alt-cross-build-support.patch

Provides: psacct = %version-%release
Obsoletes: psacct < %version-%release

BuildRequires: makeinfo

The acct package contains several utilities for monitoring process
activities, including ac, lastcomm, accton and sa.  The ac command
displays statistics about how long users have been logged on.  The
lastcomm command displays information about previous executed commands.
The accton command turns process accounting on or off.  The sa command
summarizes information about previously executed commands.

rm *.info
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%configure --enable-linux-multiformat

mkdir -p %buildroot{/sbin,/var/account}
install -pm644 %_sourcedir/dump-acct.8 %buildroot%_man8dir/

# These come from SysVinit.

mv %buildroot%_bindir/last %buildroot%_bindir/last-acct
mv %buildroot%_man1dir/last.1 %buildroot%_man1dir/last-acct.1

# Move accton to /sbin, leaving historical symlink

mv %buildroot%_sbindir/accton %buildroot/sbin/accton
ln -r -s %buildroot/sbin/accton %buildroot%_sbindir/

touch %buildroot/var/account/{p,usr,sav}acct
install -pD -m755 %_sourcedir/acct.init \
install -pD -m644 %_sourcedir/acct.service \
install -pD -m640 %_sourcedir/acct.log \
install -pm700 %_sourcedir/ \

/sbin/acct-mklog {p,usr,sav}acct
%post_service acct

%preun_service acct

%config(noreplace) %_sysconfdir/logrotate.d/acct
%attr(700,root,root) %dir /var/account
%attr(600,root,root) %ghost /var/account/*


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin