]> git.pld-linux.org Git - packages/ddclient.git/commitdiff
send less mail by default, eg. not on every shutdown.
authorElan Ruusamäe <glen@delfi.ee>
Wed, 23 Sep 2015 05:27:32 +0000 (08:27 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 23 Sep 2015 05:32:43 +0000 (08:32 +0300)
config.patch [new file with mode: 0644]
ddclient.spec

diff --git a/config.patch b/config.patch
new file mode 100644 (file)
index 0000000..b48d611
--- /dev/null
@@ -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
index e5eb319163a49687810ecae8732e0207b451260d..54139696e0acbfeef8cbfb25b38747d0f419abb9 100644 (file)
@@ -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}
This page took 0.099155 seconds and 4 git commands to generate.