summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mon/files/mon-1.2.0-sendmail.patch')
-rw-r--r--app-admin/mon/files/mon-1.2.0-sendmail.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-admin/mon/files/mon-1.2.0-sendmail.patch b/app-admin/mon/files/mon-1.2.0-sendmail.patch
new file mode 100644
index 0000000..e174295
--- /dev/null
+++ b/app-admin/mon/files/mon-1.2.0-sendmail.patch
@@ -0,0 +1,36 @@
+diff -urN mon-1.2.0.orig/alert.d/mail.alert mon-1.2.0/alert.d/mail.alert
+--- mon-1.2.0.orig/alert.d/mail.alert 2005-04-17 09:42:26.000000000 +0200
++++ mon-1.2.0/alert.d/mail.alert 2007-09-03 18:19:50.000000000 +0200
+@@ -46,7 +46,7 @@
+ $t = localtime($opt_t);
+ ($wday,$mon,$day,$tm) = split (/\s+/, $t);
+
+-open (MAIL, "| /usr/lib/sendmail -oi -t $mailfrom") ||
++open (MAIL, "| /usr/sbin/sendmail -oi -t $mailfrom") ||
+ die "could not open pipe to mail: $!\n";
+ print MAIL <<EOF;
+ To: $mailaddrs
+diff -urN mon-1.2.0.orig/alert.d/netpage.alert mon-1.2.0/alert.d/netpage.alert
+--- mon-1.2.0.orig/alert.d/netpage.alert 2005-04-17 09:42:26.000000000 +0200
++++ mon-1.2.0/alert.d/netpage.alert 2007-09-03 18:19:50.000000000 +0200
+@@ -41,7 +41,7 @@
+
+ $ALERT = $opt_u ? "UPALERT" : "ALERT";
+
+-open (MAIL, "| /usr/lib/sendmail -oi -t") ||
++open (MAIL, "| /usr/sbin/sendmail -oi -t") ||
+ die "could not open pipe to mail: $!\n";
+
+ print MAIL <<EOF;
+diff -urN mon-1.2.0.orig/clients/skymon/skymon mon-1.2.0/clients/skymon/skymon
+--- mon-1.2.0.orig/clients/skymon/skymon 2005-04-17 09:42:26.000000000 +0200
++++ mon-1.2.0/clients/skymon/skymon 2007-09-03 18:20:15.000000000 +0200
+@@ -233,7 +233,7 @@
+ # &load_address() || die "could not load address\n";
+ # print "$BUF";
+
+- open (MAIL, "| /usr/lib/sendmail -oi -t") ||
++ open (MAIL, "| /usr/sbin/sendmail -oi -t") ||
+ die "could not open pipe to mail: $!\n";
+ print MAIL <<EOF;
+ To: $ADDR