This commit is contained in:
commit
eda718ed25
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
76
fs-check-0.7.dif
Normal file
76
fs-check-0.7.dif
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
unchanged:
|
||||||
|
================================================================================
|
||||||
|
--- configure
|
||||||
|
+++ configure
|
||||||
|
@@ -2124,13 +2124,8 @@
|
||||||
|
echo "$as_me:$LINENO: checking whether $DF accepts --local" >&5
|
||||||
|
echo $ECHO_N "checking whether $DF accepts --local... $ECHO_C" >&6
|
||||||
|
|
||||||
|
-HAVE_DF_LOCAL=''
|
||||||
|
-if $DF --local > /dev/null 2>&1 ; then
|
||||||
|
- echo "yes"
|
||||||
|
- HAVE_DF_LOCAL=' --local'
|
||||||
|
-else
|
||||||
|
- echo "no"
|
||||||
|
-fi
|
||||||
|
+echo "yes"
|
||||||
|
+HAVE_DF_LOCAL=' --local'
|
||||||
|
|
||||||
|
# Extract the first word of "find", so it can be a program name with args.
|
||||||
|
set dummy find; ac_word=$2
|
||||||
|
@@ -2235,7 +2230,7 @@
|
||||||
|
CORE_PAT='core' # don't know wait for someone to complain.
|
||||||
|
;;
|
||||||
|
linux*)
|
||||||
|
- DF_OPTS="-t jfs -t ext2 -t ext3 -t ntfs -t reiserfs -t vfat$HAVE_DF_LOCAL"
|
||||||
|
+ DF_OPTS="-t xfs -t jfs -t ext2 -t ext3 -t ntfs -t reiserfs -t vfat$HAVE_DF_LOCAL"
|
||||||
|
CORE_PAT='core.[0-9]*'
|
||||||
|
;;
|
||||||
|
netbsd*)
|
||||||
|
@@ -2257,14 +2252,8 @@
|
||||||
|
echo "$as_me:$LINENO: checking whether $DF accepts --inodes" >&5
|
||||||
|
echo $ECHO_N "checking whether $DF accepts --inodes... $ECHO_C" >&6
|
||||||
|
|
||||||
|
-HAVE_DF_INODES=0
|
||||||
|
-if $DF --inodes > /dev/null 2>&1 ; then
|
||||||
|
- echo "yes"
|
||||||
|
- HAVE_DF_INODES=1
|
||||||
|
-else
|
||||||
|
- echo "no"
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
+echo "yes"
|
||||||
|
+HAVE_DF_INODES=1
|
||||||
|
|
||||||
|
|
||||||
|
echo "$as_me:$LINENO: checking if $DU can handle --separate-dirs or an equivalent" >&5
|
||||||
|
--- fs-check.in.in
|
||||||
|
+++ fs-check.in.in
|
||||||
|
@@ -626,7 +626,7 @@
|
||||||
|
$program = basename($0); # Who am I today, anyway?
|
||||||
|
|
||||||
|
$mail_program = '@MAILER@';
|
||||||
|
- $config_file = "/var/adm/fs-check.cf";
|
||||||
|
+ $config_file = "/etc/fs-check.cf";
|
||||||
|
$default_script_file = "@prefix@/bin/fs-report";
|
||||||
|
$sleep_interval = 60*60;
|
||||||
|
$pid_file = "@PIDDIR@$program.pid";
|
||||||
|
--- fs-report.in
|
||||||
|
+++ fs-report.in
|
||||||
|
@@ -243,6 +243,7 @@
|
||||||
|
'newest-lines=n' => \$newest_lines,
|
||||||
|
'ls-lines=n' => \$ls_lines,
|
||||||
|
'debug=n' => \$debug,
|
||||||
|
+ 'fast!' => \$fast,
|
||||||
|
'ls!' => \$do_ls,
|
||||||
|
'size!' => \$do_size,
|
||||||
|
'core!' => \$do_core,
|
||||||
|
--- sample/crontab.add
|
||||||
|
+++ sample/crontab.add
|
||||||
|
@@ -1,5 +1,4 @@
|
||||||
|
-# $Id: crontab.add,v 1.2 2005/07/26 15:59:18 rockyb Exp $
|
||||||
|
# Change locations of files and frequencies as appropriate.
|
||||||
|
# File system checker....
|
||||||
|
#
|
||||||
|
-5 * * * * /usr/local/bin/fs-check -1 --config /var/adm/fs_check.cnf
|
||||||
|
+5 * * * * /usr/bin/fs-check -1 --config /etc/fs-check.cf
|
3
fs-check-0.7.tar.bz2
Normal file
3
fs-check-0.7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6ce07008529173682d8bf7ef7b964c39dc1b49a3e73f3f48f339e53955850917
|
||||||
|
size 103631
|
88
fs-check.cf
Normal file
88
fs-check.cf
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# Configuration file for fs-check
|
||||||
|
# This file tells the program fs-check
|
||||||
|
# 1. what filesystems are checked/excluded. Included filesystems
|
||||||
|
# are specified with OWNER and excluded filesystems are
|
||||||
|
# specified with EXCLUDE or EXCLUDE_PAT with optionally a DEFAULT prefix.
|
||||||
|
# 2. at what point to start to complain. A threshold is specified with
|
||||||
|
# LIMIT for filesystem space or ILIMIT for inode space with optionally
|
||||||
|
# a DEFAULT prefix.
|
||||||
|
# 3. who to send mail when there is trouble. A mail contact is specified
|
||||||
|
# with OWNER with possibly a DEFAULT prefix.
|
||||||
|
# 4. what program to run when there is trouble. A mail contact is specified
|
||||||
|
# with ACTION with possibly a DEFAULT prefix.
|
||||||
|
# 5. the shortest interval between which we send notifications.
|
||||||
|
# This is specified via MIN_INTERVAL with optionally a DEFAULT prefix.
|
||||||
|
|
||||||
|
# Lines with # in column 1 or blank lines are ignored. Actually, any line
|
||||||
|
# that doesn't match a valid line is ignored.
|
||||||
|
|
||||||
|
# So what *isn't* ignored? Lines that begin in column 1 with
|
||||||
|
# EXCLUDE <mount-point>
|
||||||
|
# EXCLUDE_PAT <mount-point-regexp>
|
||||||
|
# OWNER <mount-point> <email-address> <amount full>
|
||||||
|
# OWNER <mount-point> <email-address>
|
||||||
|
# LIMIT <mount-point> <amount full>
|
||||||
|
# ILIMIT <mount-point> <amount_full>
|
||||||
|
# ACTION <mount-point> <script>
|
||||||
|
# MIN_INTERVAL <mount-point> seconds
|
||||||
|
# DEFAULT OWNER <email-address>
|
||||||
|
# DEFAULT OWNER <email-address> <amount full>
|
||||||
|
# DEFAULT LIMIT <amount full>
|
||||||
|
# DEFAULT ACTION <script>
|
||||||
|
# DEFAULT MIN_INTERVAL seconds
|
||||||
|
|
||||||
|
# Case is not significant.
|
||||||
|
# <amount full> is either the percentage of the disk full or the number of
|
||||||
|
# bytes that need to be available. The way we distinguish the first
|
||||||
|
# case from the second is to add a K, KB, M, MB, G, or GB at the end.
|
||||||
|
# An optional % can be used to specify percent for more clarity, although
|
||||||
|
# if just a number is used it is taken as a percentage.
|
||||||
|
|
||||||
|
# For example "default 90" and "DEFAULT 90%" are the same thing and
|
||||||
|
# mean that mail should be sent out on any disk that is 90% or more
|
||||||
|
# full unless otherwise specified by a more specific LIMIT, ILIMIT or
|
||||||
|
# OWNER (with amount) line.
|
||||||
|
|
||||||
|
# In contrast, 4096KB, 4096k, or 4MB means that 4 megabytes must be
|
||||||
|
# available on the disk. You may want to use this form for say the
|
||||||
|
# root partition.
|
||||||
|
#
|
||||||
|
# If there are many lines which refer to the same disk, or change the default
|
||||||
|
# (which can be done in a couple ways), the last one sticks.
|
||||||
|
|
||||||
|
# This is who gets mail when something's wrong and no further specification
|
||||||
|
default owner root 90%
|
||||||
|
|
||||||
|
# This is the program to run when no other program is specified...
|
||||||
|
default action /usr/bin/fs-report
|
||||||
|
|
||||||
|
# Limit at which to complain about i-nodes...
|
||||||
|
default ilimit 90%
|
||||||
|
|
||||||
|
# Don't sent out notifications if they occur less than 30 minutes
|
||||||
|
# (1800 seconds) from the last notification
|
||||||
|
default min_interval 1800
|
||||||
|
|
||||||
|
# The limits for the directory which holds /tmp should not be
|
||||||
|
# too close to the maximum limit. The file system checker stores its
|
||||||
|
# temporary data there. So if this is too full, we won't get a useful
|
||||||
|
# report back.
|
||||||
|
limit / 70%
|
||||||
|
#limit /var 90%
|
||||||
|
#limit /usr 95%
|
||||||
|
#limit /src 90%
|
||||||
|
#limit /home 90%
|
||||||
|
|
||||||
|
action /var /usr/bin/fs-report --fast
|
||||||
|
|
||||||
|
# Don't check any filesystem starting /cdrom...
|
||||||
|
exclude_pat ^/media/
|
||||||
|
|
||||||
|
# Filesystems not listed, e.g /home, would be checked as they come
|
||||||
|
# under the default. If you want a disk exclude them, create/uncomment
|
||||||
|
# an exclude line such as the one below.
|
||||||
|
#exclude /mnt/floppy
|
||||||
|
#exclude /mnt/msfloppy
|
||||||
|
#exclude /mnt/cdrom
|
||||||
|
#exclude /mnt/cdrom2
|
||||||
|
#exclude /mnt/dvd
|
45
fs-check.changes
Normal file
45
fs-check.changes
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 8 13:00:24 CET 2007 - mskibbe@suse.de
|
||||||
|
|
||||||
|
- fs-check expects fs-check.cfg in /var/adm rather then etc
|
||||||
|
( #231222 )
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 30 11:01:10 CEST 2006 - mskibbe@suse.de
|
||||||
|
|
||||||
|
- update to version 0.7 which
|
||||||
|
o contains bugfixes
|
||||||
|
o fix make distcheck
|
||||||
|
o update copyright
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 25 17:23:07 CET 2006 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Workaround configure checks for autobuild
|
||||||
|
- Don't start in "norun" mode per default
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:46:24 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 7 15:41:37 CEST 2005 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 21 14:51:08 CEST 2005 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 2 12:10:27 CET 2004 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 28 18:52:00 CEST 2004 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
86
fs-check.spec
Normal file
86
fs-check.spec
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
#
|
||||||
|
# spec file for package fs-check (Version 0.7)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2007 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: GNU General Public License (GPL)
|
||||||
|
Group: System/Monitoring
|
||||||
|
Autoreqprov: on
|
||||||
|
Requires: mailx
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Version: 0.7
|
||||||
|
Release: 26
|
||||||
|
Summary: Check File System Usage
|
||||||
|
BuildArchitectures: 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
|
||||||
|
make check
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc
|
||||||
|
cp %SOURCE1 $RPM_BUILD_ROOT/etc
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%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 -n fs-check
|
||||||
|
* 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
|
Loading…
Reference in New Issue
Block a user