[packages/ddclient] send less mail by default, eg. not on every shutdown.
glen
glen at pld-linux.org
Wed Sep 23 07:37:13 CEST 2015
commit 3140959cea173aa80676408a61a736efb42934d8
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 23 08:27:32 2015 +0300
send less mail by default, eg. not on every shutdown.
config.patch | 11 +++++++++++
ddclient.spec | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/ddclient.spec b/ddclient.spec
index e5eb319..5413969 100644
--- a/ddclient.spec
+++ b/ddclient.spec
@@ -13,6 +13,7 @@ Source0: http://downloads.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.NetworkManager
+Patch0: config.patch
# https://github.com/wimpunk/ddclient
URL: http://ddclient.sourceforge.net/
BuildRequires: rpm-perlprov
@@ -67,11 +68,13 @@ gratuita.
%prep
%setup -q
+cp -p sample-etc_ddclient.conf %{name}.conf
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ddclient,/etc/{rc.d/init.d,sysconfig,NetworkManager/dispatcher.d},%{_sbindir},%{_var}/cache/%{name}}
-cp -p sample-etc_ddclient.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
+cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
install -p %{name} $RPM_BUILD_ROOT%{_sbindir}
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
diff --git a/config.patch b/config.patch
new file mode 100644
index 0000000..b48d611
--- /dev/null
+++ b/config.patch
@@ -0,0 +1,11 @@
+--- ddclient-3.8.3/ddclient.conf 2015-09-23 08:29:05.051308301 +0300
++++ ddclient-3.8.3/ddclient.conf 2015-05-30 12:37:38.000000000 +0300
+@@ -20,7 +20,7 @@
+ ######################################################################
+ daemon=300 # check every 300 seconds
+ syslog=yes # log update msgs to syslog
+-mail=root # mail all msgs to root
++#mail=root # mail all msgs to root
+ mail-failure=root # mail failed update msgs to root
+ pid=/var/run/ddclient.pid # record PID in file.
+ ssl=yes # use ssl-support. Works with
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ddclient.git/commitdiff/3140959cea173aa80676408a61a736efb42934d8
More information about the pld-cvs-commit
mailing list