ddclient/ddclient.cache.patch
cvsextras dd98616bc4 auto-import changelog data from ddclient-3.6.3-0.fdr.4.1.src.rpm
3.6.3-0.fdr.4.fc1
- Fix %doc %attr ownership
- Touch the cache file in %post
3.6.3-0.fdr.3
- Add own Fedora-style initscript and /etc/sysconfig/ddclient file.
- Fix file permissions of config file and example files.
- Since ddclient.cache.patch uses hardcoded /var, don't use %_localstatedir
    in spec file either.
Sun Sep 07 2003 Thomas Vander Stichele <thomas at apestaart dot org>
- 0:3.6.3-0.fdr.2: fixed ghostness of cache file
2004-11-08 04:12:32 +00:00

20 lines
1.1 KiB
Diff

diff -Naur ddclient-3.6.3/ddclient ddclient-3.6.3.patched/ddclient
--- ddclient-3.6.3/ddclient 2003-06-14 19:39:16.000000000 +0200
+++ ddclient-3.6.3.patched/ddclient 2003-09-04 12:25:55.000000000 +0200
@@ -21,6 +21,7 @@
my $now = time;
my $hostname = hostname();
my $etc = ($program =~ /test/i) ? './' : '/etc/';
+my $cache = ($program =~ /test/i) ? './' : '/var/cache/';
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
my $msgs = '';
my $last_msgs = '';
@@ -184,7 +185,7 @@
'global-defaults' => {
'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')),
'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef),
- 'cache' => setv(T_FILE, 0, 0, 1, "$etc$program.cache", undef),
+ 'cache' => setv(T_FILE, 0, 0, 1, "$cache$program.cache", undef),
'pid' => setv(T_FILE, 0, 0, 1, "", undef),
'proxy' => setv(T_FQDNP, 0, 0, 1, '', undef),
'protocol' => setv(T_PROTO, 0, 0, 1, 'dyndns2', undef),