From 0c0dfdb3594c6ea1f165a25c536cac0aef892f91 Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Apr 27 2014 08:56:33 +0000 Subject: New upstream release - Remove'type=forking' from service file (#1036471) - Set default cache dir to /var/cache/inadyn-mt (#1090533) --- diff --git a/.gitignore b/.gitignore index 6584c1b..f754b58 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ inadyn-mt.v.02.18.36.tar.gz /inadyn-mt.v.02.24.30.tar.gz /inadyn-mt.v.02.24.34.tar.gz /inadyn-mt.v.02.24.36.tar.gz +/inadyn-mt.v.02.24.38.tar.gz diff --git a/inadyn-mt-02.24.36-sig11.patch b/inadyn-mt-02.24.36-sig11.patch deleted file mode 100644 index 796e14a..0000000 --- a/inadyn-mt-02.24.36-sig11.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -ur inadyn-mt.v.02.24.36/readme.html inadyn-mt.v.02.24.36_sig11_patch_01/readme.html ---- inadyn-mt.v.02.24.36/readme.html 2011-03-31 17:18:47.000000000 -0400 -+++ inadyn-mt.v.02.24.36_sig11_patch_01/readme.html 2012-10-12 11:03:34.207741177 -0400 -@@ -6,7 +6,7 @@ - -

inadyn-mt - Simple DYNAMIC DNS client.
-

--

Version 02.24.36, March 2011
-+

Version 02.24.36_sig11_patch_01, October 2012
-

-

INADYN Advanced Help
-

-@@ -482,6 +482,10 @@ -
-
- -+Ver.  inadyn-mt 2.24.36_sig11_patch_01 - October 2012
-+       Changes:
-+       - fixed sig 11 improper structure member selection

-+ - Ver.  inadyn-mt 2.24.36 - March 2011
-        Changes:
-        - fix debug output out of bounds array index bug
-diff -ur inadyn-mt.v.02.24.36/src/dyndns.c inadyn-mt.v.02.24.36_sig11_patch_01/src/dyndns.c ---- inadyn-mt.v.02.24.36/src/dyndns.c 2011-03-31 17:18:47.000000000 -0400 -+++ inadyn-mt.v.02.24.36_sig11_patch_01/src/dyndns.c 2012-10-12 10:54:07.466557498 -0400 -@@ -2093,7 +2093,7 @@ - "fatal dyndns server update error for "\ - "alias, %s.\nThis client should be stopped and corrected for "\ - "configuration errors, and restarted...\n" \ -- ERROR_FLAG,p_self->alias_info.names[i])); -+ ERROR_FLAG,p_self->alias_info.names[i].name)); - else - - DBG_PRINTF((LOG_ERR,"E:" MODULE_TAG "\n"\ -diff -ur inadyn-mt.v.02.24.36/src/dyndns.h inadyn-mt.v.02.24.36_sig11_patch_01/src/dyndns.h ---- inadyn-mt.v.02.24.36/src/dyndns.h 2011-03-31 17:18:47.000000000 -0400 -+++ inadyn-mt.v.02.24.36_sig11_patch_01/src/dyndns.h 2012-10-12 12:58:15.179916452 -0400 -@@ -75,7 +75,7 @@ - - #endif - --#define DYNDNS_EXTRA_VERSION -+#define DYNDNS_EXTRA_VERSION "-sig11_patch_01" - - #define DYNDNS_VERSION_STRING "02.24.36" DYNDNS_VERSION_SND DYNDNS_VERSION_THD DYNDNS_EXTRA_VERSION - #define DYNDNS_AGENT_NAME "inadyn-mt/" DYNDNS_VERSION_STRING diff --git a/inadyn-mt-2.24.38-cachdir.patch b/inadyn-mt-2.24.38-cachdir.patch new file mode 100644 index 0000000..f841cfb --- /dev/null +++ b/inadyn-mt-2.24.38-cachdir.patch @@ -0,0 +1,25 @@ +diff -up inadyn-mt.v.02.24.38/man/inadyn8.tmpfile inadyn-mt.v.02.24.38/man/inadyn8 +diff -up inadyn-mt.v.02.24.38/man/inadyn-mt.8.tmpfile inadyn-mt.v.02.24.38/man/inadyn-mt.8 +--- inadyn-mt.v.02.24.38/man/inadyn-mt.8.tmpfile 2014-04-27 10:29:35.092816620 +0200 ++++ inadyn-mt.v.02.24.38/man/inadyn-mt.8 2014-04-27 10:31:05.162680058 +0200 +@@ -184,7 +184,7 @@ Fine timer control. Slow, or speed time + The name, including the full path, of a log file. + .TP + .I \-\-cache_dir +-Directory to which ip, and time update files are written. Defaults to /tmp on **NIX systems. ++Directory to which ip, and time update files are written. Defaults to /var/cache/inadyn-mt on Fedora systems. + .TP + .I \-\-background + run in background. Output is sent to the UNIX syslog facilities or to a log file, if one was specified. +diff -up inadyn-mt.v.02.24.38/src/dyndns.h.tmpfile inadyn-mt.v.02.24.38/src/dyndns.h +--- inadyn-mt.v.02.24.38/src/dyndns.h.tmpfile 2014-04-27 10:25:01.277343956 +0200 ++++ inadyn-mt.v.02.24.38/src/dyndns.h 2014-04-27 10:26:11.629884831 +0200 +@@ -112,7 +112,7 @@ typedef enum + /*inadyn backward compatibility*/ + #define DYNDNS_DEFAULT_CONFIG_FILE "/etc/inadyn.conf" + +-#define DYNDNS_DEFAULT_CACHE_PREFIX "/tmp/" ++#define DYNDNS_DEFAULT_CACHE_PREFIX "/var/cache/inadyn-mt/" + #define DYNDNS_DEFAULT_IP_FILE "inadyn_ip.cache" + #define DYNDNS_DEFAULT_TIME_FILE "inadyn_time.cache" + diff --git a/inadyn-mt.spec b/inadyn-mt.spec index c74d155..34b1c6e 100644 --- a/inadyn-mt.spec +++ b/inadyn-mt.spec @@ -1,7 +1,7 @@ Name: inadyn-mt -Version: 2.24.36 -Release: 11%{?dist} +Version: 2.24.38 +Release: 1%{?dist} Summary: Dynamic DNS Client @@ -12,7 +12,8 @@ Source0: http://prdownloads.sourceforge.net/inadyn-mt/inadyn-mt.v.0%{vers Source1: inadyn-mt.conf Source2: inadyn.service Source3: inadyn-nm-dispatcher -Patch1: inadyn-mt-02.24.36-sig11.patch + +Patch1: inadyn-mt-2.24.38-cachedir.patch BuildRequires: automake autoconf BuildRequires: libao-devel @@ -77,6 +78,8 @@ install -p %{SOURCE2} ${RPM_BUILD_ROOT}%{_unitdir} mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/NetworkManager/dispatcher install -p %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/NetworkManager/dispatcher/30-inadyn +mkdir -p $RPM_BUILD_ROOT/var/cache/inadyn-mt + %post %systemd_post inadyn.service @@ -95,8 +98,14 @@ install -p %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/NetworkManager/dispatcher/ %config(noreplace) %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/NetworkManager/dispatcher/30-inadyn %{_datadir}/%{name}/ +%dir /var/cache/inadyn-mt/ %changelog +* Sun Apr 27 2014 Jochen Schmitt - 2.24.38-1 +- New upstream release +- Remove'type=forking' from service file (#1036471) +- Set default cache dir to /var/cache/inadyn-mt (#1090533) + * Fri Mar 29 2013 Jochen Schmitt - 2.24.36-11 - Fix issue to build aarch64 release (#925507) diff --git a/inadyn.service b/inadyn.service index 5daba1b..a175e86 100644 --- a/inadyn.service +++ b/inadyn.service @@ -1,9 +1,7 @@ [Unit] Description=Inadyn-mt, register an IP Address to a dynamic DNS provider -After=syslog.target [Service] -Type=forking ExecStart=/usr/sbin/inadyn [Install] diff --git a/sources b/sources index dfa2970..700a5b1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -14c044a2754417b344be364eeccc6779 inadyn-mt.v.02.24.36.tar.gz +e868ab86df2eb20a1d98c11e8564e52c inadyn-mt.v.02.24.38.tar.gz