45 lines
1.1 KiB
RPMSpec
45 lines
1.1 KiB
RPMSpec
|
Name: cronic
|
||
|
Summary: A cure for Cron's chronic email problem
|
||
|
Version: 2
|
||
|
Release: 0
|
||
|
License: SUSE-Public-Domain
|
||
|
Group: System/Base
|
||
|
Source0: http://habilis.net/cronic/cronic
|
||
|
Source1: cronic.1
|
||
|
Url: http://habilis.net/cronic/
|
||
|
BuildRoot: %{_tmppath}/build-root-%{name}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
|
||
|
%description
|
||
|
Cronic is a small shim shell script for wrapping cron jobs so that cron only
|
||
|
sends email when an error has occurred. Cronic defines an error as any non-
|
||
|
trace error output or a non-zero result code. Cronic filters Bash execution
|
||
|
traces (or anything matching PS4) from the error output, so jobs can be run
|
||
|
with execution tracing to aid forensic debugging. Cronic has no options, it
|
||
|
simply executes its arguments.
|
||
|
|
||
|
%prep
|
||
|
%setup -c -T
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
mkdir -p $RPM_BUILD_ROOT/%_bindir
|
||
|
cp %SOURCE0 $RPM_BUILD_ROOT/%_bindir/cronic
|
||
|
chmod a+x $RPM_BUILD_ROOT/%_bindir/cronic
|
||
|
|
||
|
mkdir -p $RPM_BUILD_ROOT/%_mandir/man1
|
||
|
gzip -c %SOURCE1 >$RPM_BUILD_ROOT/%_mandir/man1/cronic.1.gz
|
||
|
|
||
|
%clean
|
||
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr (-, root, root)
|
||
|
%_bindir/cronic
|
||
|
%doc %_mandir/man1/cronic.1.gz
|
||
|
|
||
|
%changelog
|
||
|
|