From cae4c424f296380a37675c4974783cf87f6ff833 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Jan 14 2015 09:28:29 +0000 Subject: do not require sendmail --- diff --git a/smartdnotify b/smartdnotify index b789c72..6c2e820 100644 --- a/smartdnotify +++ b/smartdnotify @@ -1,7 +1,10 @@ #! /bin/sh # Send mail -echo "$SMARTD_MESSAGE" | mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS" +if which mail >/dev/null 2>&1 +then + echo "$SMARTD_MESSAGE" | mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS" +fi # Notify desktop user MESSAGE="WARNING: Your hard drive is failing" diff --git a/smartmontools.spec b/smartmontools.spec index fe0880a..bde415a 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,7 +1,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 6.3 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 Group: System Environment/Base License: GPLv2+ @@ -17,7 +17,7 @@ Source5: drivedb.h Patch1: smartmontools-5.38-defaultconf.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -Requires: fileutils mailx %{_sbindir}/sendmail +Requires: fileutils #new rpm does not handle this (yet?) #Requires(triggerun): systemd-units Requires(post): systemd-units @@ -116,6 +116,9 @@ fi %{_datadir}/%{name} %changelog +* Wed Jan 14 2015 Michal Hlavinka - 1:6.3-3 +- do not require sendmail + * Mon Aug 18 2014 Fedora Release Engineering - 1:6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild