fs-check/fs-check.spec

99 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package fs-check (Version 0.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: fs-check
BuildRequires: mailx
Url: http://fs-check.sourceforge.net
License: GPL v2 or later
Group: System/Monitoring
AutoReqProv: on
Requires: mailx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 0.9
Release: 2
Summary: Check File System Usage
BuildArch: noarch
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.cf
Patch: %{name}-%{version}.dif
%description
fs-check checks file system sizes to see if they are getting too full.
It uses a configuration file that specifies the file systems to check,
e-mail contacts, trigger thresholds (percentage or amount used and
unused), and a report program to run. It includes fs-report, which
shows things like the largest files, the newest files, and core files.
It can be run from cron or as a daemon.
%prep
%setup -q
%patch
%build
./configure --prefix=%{_prefix} --mandir=%{_mandir}
make
%install
mkdir -p $RPM_BUILD_ROOT/etc
cp %SOURCE1 $RPM_BUILD_ROOT/etc
make install DESTDIR=$RPM_BUILD_ROOT
install -D -m 644 doc/fs-report.8 $RPM_BUILD_ROOT%{_mandir}/man8/fs-report.8
install -D -m 644 doc/fs-check.8 $RPM_BUILD_ROOT%{_mandir}/man8/fs-check.8
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS sample/crontab.add
%config(noreplace) /etc/fs-check.cf
%{_mandir}/man8/fs-check.8.gz
%{_mandir}/man8/fs-report.8.gz
%{_bindir}/fs-check
%{_bindir}/fs-report
%changelog
* Wed Jul 09 2008 hvogel@suse.de
- fix installation of man pages
* Fri Jul 04 2008 hvogel@suse.de
- update to version 0.9
* fix parsing of DEFAULT OWNER
- disable checks, wrong logfiles included
* Wed Apr 02 2008 hvogel@suse.de
- update to version 0.8
* Correct pidfile option parsing
- some rpmlint warnings fixed
* Mon Jan 08 2007 mskibbe@suse.de
- fs-check expects fs-check.cfg in /var/adm rather then etc
( #231222 )
* Wed Aug 30 2006 mskibbe@suse.de
- update to version 0.7 which
o contains bugfixes
o fix make distcheck
o update copyright
* Sat Feb 25 2006 kukuk@suse.de
- Workaround configure checks for autobuild
- Don't start in "norun" mode per default
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 07 2005 kukuk@suse.de
- Update to version 0.6
* Thu Jul 21 2005 kukuk@suse.de
- Update to version 0.5
* Tue Nov 02 2004 kukuk@suse.de
- Update to version 0.4
* Mon Jun 28 2004 kukuk@suse.de
- Initial version