2007-01-15 23:50:49 +01:00
|
|
|
#
|
2011-03-07 15:45:29 +01:00
|
|
|
# spec file for package acct
|
2007-01-15 23:50:49 +01:00
|
|
|
#
|
2017-03-29 17:03:15 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:49 +01:00
|
|
|
#
|
2008-10-23 04:26:09 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:50:49 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: acct
|
2017-07-11 09:24:24 +02:00
|
|
|
Version: 6.6.4
|
2012-07-22 21:23:23 +02:00
|
|
|
Release: 0
|
2015-06-22 17:10:08 +02:00
|
|
|
Summary: User-Specific Process Accounting
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Base
|
2017-04-06 15:31:38 +02:00
|
|
|
Url: https://www.gnu.org/software/acct/
|
|
|
|
Source: https://ftp.gnu.org/gnu/acct/%{name}-%{version}.tar.gz
|
2013-06-07 12:43:36 +02:00
|
|
|
Source1: acct.service
|
2007-01-15 23:50:49 +01:00
|
|
|
Source2: logrotate.acct
|
2017-04-06 15:31:38 +02:00
|
|
|
Source3: https://ftp.gnu.org/gnu/acct/%{name}-%{version}.tar.gz.sig
|
2017-07-11 09:24:24 +02:00
|
|
|
Source4: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=acct&download=1#/acct.keyring
|
2017-03-29 17:03:15 +02:00
|
|
|
Patch0: acct-6.6.2-hz.patch
|
2013-04-26 12:41:35 +02:00
|
|
|
BuildRequires: makeinfo
|
2015-06-22 17:10:08 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2013-06-07 12:43:36 +02:00
|
|
|
Requires: logrotate
|
2015-06-22 17:10:08 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(postun): %{install_info_prereq}
|
|
|
|
%{?systemd_requires}
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the programs necessary for user-specific process
|
|
|
|
accounting: sa, accton, and lastcomm.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-04-06 15:31:38 +02:00
|
|
|
%patch0
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%build
|
2014-03-20 08:50:42 +01:00
|
|
|
%configure
|
2015-06-22 17:10:08 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%install
|
2014-03-20 08:50:42 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
install -d -m 755 %{buildroot}/%{_unitdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/account/
|
|
|
|
install -d -m 755 %{buildroot}%{_libexecdir}/account
|
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
|
|
|
install -d -m 755 %{buildroot}%{_bindir}
|
2015-06-22 17:10:08 +02:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/acct.service
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcacct
|
|
|
|
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/acct
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/account
|
2015-07-06 11:03:20 +02:00
|
|
|
touch %{buildroot}%{_localstatedir}/log/account/pacct
|
2015-06-22 17:10:08 +02:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/last
|
2014-03-20 08:50:42 +01:00
|
|
|
rm -f %{buildroot}/%{_mandir}/man1/last.1*
|
2007-01-15 23:50:49 +01:00
|
|
|
|
2013-06-07 12:43:36 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre acct.service
|
|
|
|
|
2007-01-15 23:50:49 +01:00
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/accounting.info.gz
|
2013-06-07 12:43:36 +02:00
|
|
|
%service_add_post acct.service
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%preun
|
2015-05-18 09:49:46 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/accounting.info.gz
|
2013-06-07 12:43:36 +02:00
|
|
|
%service_del_preun acct.service
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%postun
|
2013-06-07 12:43:36 +02:00
|
|
|
%service_del_postun acct.service
|
2007-01-15 23:50:49 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README NEWS
|
2017-03-29 17:03:15 +02:00
|
|
|
%{_infodir}/*.info%{ext_info}
|
2015-06-22 17:10:08 +02:00
|
|
|
%{_mandir}/man1/ac*
|
|
|
|
%{_mandir}/man1/lastcomm*
|
|
|
|
%{_mandir}/man8/*
|
2014-03-20 08:50:42 +01:00
|
|
|
%config %{_sysconfdir}/logrotate.d/acct
|
2015-06-22 17:10:08 +02:00
|
|
|
%dir %{_localstatedir}/log/account
|
2015-07-06 11:03:20 +02:00
|
|
|
%{_localstatedir}/log/account/pacct
|
2014-03-20 08:50:42 +01:00
|
|
|
%{_bindir}/ac
|
|
|
|
%{_bindir}/lastcomm
|
|
|
|
%{_sbindir}/*
|
2013-06-07 12:43:36 +02:00
|
|
|
%{_unitdir}/acct.service
|
2007-01-15 23:50:49 +01:00
|
|
|
|
2008-10-23 04:26:09 +02:00
|
|
|
%changelog
|