--- /dev/null
+diff -urN nagios-notify-0.14.org/templates/notify-host-by-email.tmpl nagios-notify-0.14/templates/notify-host-by-email.tmpl
+--- nagios-notify-0.14.org/templates/notify-host-by-email.tmpl 2018-02-21 20:49:01.969994349 +0100
++++ nagios-notify-0.14/templates/notify-host-by-email.tmpl 2018-02-21 20:55:06.047582770 +0100
+@@ -14,4 +14,5 @@
+ Address: $HOSTADDRESS$
+ Info: $HOSTOUTPUT$
+
++Duration: $SERVICEDURATION$
+ Date/Time: $LONGDATETIME$
+diff -urN nagios-notify-0.14.org/templates/notify-service-by-email.tmpl nagios-notify-0.14/templates/notify-service-by-email.tmpl
+--- nagios-notify-0.14.org/templates/notify-service-by-email.tmpl 2018-02-21 20:49:19.157176605 +0100
++++ nagios-notify-0.14/templates/notify-service-by-email.tmpl 2018-02-21 20:55:16.601232698 +0100
+@@ -15,6 +15,7 @@
+ Address: $HOSTADDRESS$
+ State: $SERVICESTATE$
+
++Duration: $SERVICEDURATION$
+ Date/Time: $LONGDATETIME$
+
+ Additional Info:
Summary(pl.UTF-8): Skrypt powiadamiający dla Nagiosa
Name: nagios-notify
Version: 0.14
-Release: 2
+Release: 3
License: GPL v2
Group: Applications
Source0: %{name}-%{version}.tar.bz2
# Source0-md5: 47c06d14e2944f222fe08298a62ef607
Patch0: headers.patch
+Patch1: duration.patch
URL: http://glen.alkohol.ee/nagios-notify/
Requires: awk
Requires: nagios-common
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%install
rm -rf $RPM_BUILD_ROOT