|
|
|
@ -3,9 +3,10 @@
|
|
|
|
|
|
|
|
|
|
Summary: Utilities for monitoring process activities
|
|
|
|
|
Name: psacct
|
|
|
|
|
Version: 6.6.4
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 6.6.3
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
URL: http://www.gnu.org/software/acct/
|
|
|
|
|
|
|
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/acct/acct-%{version}.tar.gz
|
|
|
|
@ -13,17 +14,28 @@ Source1: psacct.service
|
|
|
|
|
Source2: psacct-logrotate.in
|
|
|
|
|
Source3: accton-create
|
|
|
|
|
|
|
|
|
|
Patch1: psacct-6.6.2-unnumberedsubsubsec.patch
|
|
|
|
|
Patch2: psacct-6.6.1-SEGV-when-record-incomplete.patch
|
|
|
|
|
Patch3: psacct-6.6.4-lastcomm-manpage-pid-twice.patch
|
|
|
|
|
#Patch1: psacct-6.3.2-lastcomm_man.patch
|
|
|
|
|
#Patch2: acct-6.3.2-sa_manpage.patch
|
|
|
|
|
# The upstream man page is more correct than the usage
|
|
|
|
|
# .. the C sources need to be fixed, not the man page
|
|
|
|
|
#Patch3: psacct-6.3.2-man-pages.patch
|
|
|
|
|
Patch4: psacct-6.6.2-unnumberedsubsubsec.patch
|
|
|
|
|
#Patch5: psacct-6.6.1-RH-man-page-scan.patch
|
|
|
|
|
# Partial replacement for Patch3: psacct-6.3.2-man-pages.patch
|
|
|
|
|
#Patch6: psacct-6.6.1-man-dump-acct.patch
|
|
|
|
|
# Preventing SEGVs when an incomplete record appears
|
|
|
|
|
Patch7: psacct-6.6.1-SEGV-when-record-incomplete.patch
|
|
|
|
|
Patch8: psacct-6.6.3-lastcomm-new-pid-option.patch
|
|
|
|
|
|
|
|
|
|
Conflicts: filesystem < 3
|
|
|
|
|
Requires: /sbin/install-info
|
|
|
|
|
Requires: coreutils
|
|
|
|
|
Requires(post): chkconfig
|
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
@ -42,9 +54,14 @@ commands.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n acct-%{version}
|
|
|
|
|
|
|
|
|
|
%patch1 -p1 -b .subsubsec
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
#%%patch1 -p1 -b .man
|
|
|
|
|
#%%patch2 -p1 -b .pct
|
|
|
|
|
#%%patch3 -p1 -b .new
|
|
|
|
|
%patch4 -p1 -b .subsubsec
|
|
|
|
|
#%%patch5 -p1 -b .rh-man-scan
|
|
|
|
|
#%%patch6 -p1 -b .man-dump-acct
|
|
|
|
|
%patch7 -p1
|
|
|
|
|
%patch8 -p1
|
|
|
|
|
|
|
|
|
|
# fixing 'gets' undeclared
|
|
|
|
|
sed -i 's|.*(gets,.*||g' lib/stdio.in.h
|
|
|
|
@ -93,19 +110,36 @@ rm -f %{buildroot}%{_bindir}/last %{buildroot}%{_mandir}/man1/last.1*
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post psacct.service
|
|
|
|
|
|
|
|
|
|
/sbin/install-info %{_infodir}/accounting.info %{_infodir}/dir || :
|
|
|
|
|
touch /var/account/pacct && chmod 0600 /var/account/pacct
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun psacct.service
|
|
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
# Package removal, not upgrade
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/accounting.info %{_infodir}/dir || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart psacct.service
|
|
|
|
|
|
|
|
|
|
%triggerun -- psacct < 6.5.5-3
|
|
|
|
|
# Save the current service runlevel info
|
|
|
|
|
# User must manually run systemd-sysv-convert --apply psacct
|
|
|
|
|
# to migrate them to systemd targets
|
|
|
|
|
%{_bindir}/systemd-sysv-convert --save psacct >/dev/null 2>&1 ||:
|
|
|
|
|
|
|
|
|
|
# Run these because the SysV package being removed won't do them
|
|
|
|
|
/sbin/chkconfig --del psacct >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl try-restart psacct.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
|
|
|
|
%doc README COPYING
|
|
|
|
|
%dir /var/account
|
|
|
|
|
%{_unitdir}/psacct.service
|
|
|
|
|
%attr(0600,root,root) %ghost %config /var/account/pacct
|
|
|
|
@ -129,48 +163,12 @@ touch /var/account/pacct && chmod 0600 /var/account/pacct
|
|
|
|
|
%{_mandir}/man8/accton.8*
|
|
|
|
|
%{_mandir}/man8/dump-acct.8*
|
|
|
|
|
%{_mandir}/man8/dump-utmp.8*
|
|
|
|
|
%{_infodir}/accounting.info.*
|
|
|
|
|
%{_infodir}/accounting.info.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 28 2021 Jan Rybar <jrybar@redhat.com> - 6.6.4-12
|
|
|
|
|
- post-rotate script aligned with systemd usage
|
|
|
|
|
- Resolves: rhbz#2015020
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.6.4-11
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.6.4-10
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Apr 24 2019 Björn Esser <besser82@fedoraproject.org> - 6.6.4-5
|
|
|
|
|
- Remove hardcoded gzip suffix from GNU info pages
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Oct 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 6.6.4-3
|
|
|
|
|
- Use %%license, drop legacy sys-v bits
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Jan Rybar <jrybar@redhat.com> - 6.6.4-1
|
|
|
|
|
- Rebase to acct-6.6.4
|
|
|
|
|
- lastcomm: Fixed "--pid" twice in manpage
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 6.6.3-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Fri Mar 02 2018 Jan Rybar <jrybar@redhat.com> - 6.6.3-4
|
|
|
|
|
- SPEC - changes in Requires and BuildRequires - systemd and gcc
|
|
|
|
|