Репозиторий Sisyphus
Последнее обновление: 25 мая 2020 | Пакетов: 17559 | Посещений: 18607612
en ru br
Репозитории ALT
S:6.6.4-alt1
5.1: 6.4-alt0.5
4.1: 6.4-alt0.5
4.0: 6.4-alt0.4
3.0: 6.3.5-alt5
www.altlinux.org/Changes

Другие репозитории
Upstream:6.3.2

Группа :: Мониторинг
Пакет: acct

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: acct
Version: 6.4
Release: alt0.5

Summary: Utilities for monitoring process activities.
License: GPL
Group: Monitoring
Url: http://www.gnu.org/software/acct/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/acct/acct-%version.tar.bz2

%define srcname acct-%version-pre1
# http://www.physik3.uni-rostock.de/tim/kernel/utils/acct/%srcname.tar.gz
Source: %srcname.tar

Source1: acct.init
Source2: acct.log
Source3: dump-acct.8
Source4: dump-utmp.8

Patch0: acct-6.4pre1-owl-doc.patch
Patch1: acct-6.4pre1-owl-devpts.patch
Patch2: acct-6.4pre1-owl-sa-help.patch
Patch3: acct-6.4pre1-alt-texinfo.patch
Patch4: acct-6.4pre1-alt-ctime.patch
Patch5: acct-6.4pre1-alt-program_name.patch
Patch6: acct-6.4pre1-alt-warnings.patch

Obsoletes: psacct
Provides: psacct = %version-%release
PreReq: service, coreutils, grep
Requires(post): %install_info, %post_service, %__subst
Requires(preun): %uninstall_info, %preun_service

%description
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.

%prep
%setup -q -n %srcname
rm *.info getopt*
sed -i 's/\<getopt[1]\?\.[hc]\>//g' Makefile.am
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
find -type f -name \*.orig -delete

%build
autoreconf -fisv
%configure
%make_build

%install
mkdir -p %buildroot{/sbin,%prefix,/var/account}
%makeinstall

install -pm644 %_sourcedir/dump-{acct,utmp}.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 -s ../../sbin/accton %buildroot%_sbindir/accton

touch %buildroot/var/account/{p,usr,sav}acct
install -pD -m755 %_sourcedir/acct.init \
%buildroot%_initdir/acct
install -pD -m640 %_sourcedir/acct.log \
%buildroot%_sysconfdir/logrotate.d/%name

%post
f=/etc/info-dir
if fgrep -qs '* accounting: (psacct)' "$f"; then
# We need this hack to get rid of an old, incorrect accounting
# info entry when installing over ancient versions of psacct package.
%__subst '/\* accounting: (psacct)/d' "$f"
fi
%install_info accounting.info

umask 177
for f in /var/account/{p,usr,sav}acct; do
test -e "$f" && continue ||:
       touch "$f" &&
chown 0:0 "$f" &&
chmod 600 "$f"
done
%post_service %name

%preun
%uninstall_info accounting.info
%preun_service %name

%files
%config(noreplace) %_initdir/%name
%config(noreplace) %_sysconfdir/logrotate.d/%name
/sbin/*
%_bindir/*
%_sbindir/*
%_infodir/*.info*
%_mandir/man?/*
%attr(700,root,root) %dir /var/account
%attr(600,root,root) %ghost /var/account/*
%doc AUTHORS README NEWS ChangeLog TODO

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin