1 $NetBSD: patch-aa,v 1.4 2007/10/03 18:31:19 bad Exp $
3 --- ddclient.orig 2005-03-20 12:01:23.000000000 +0100
7 -#!/usr/local/bin/perl -w
9 ######################################################################
10 @@ -24,3 +23,4 @@ my $now = time;
11 my $hostname = hostname();
12 -my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
13 +my $etc = ($program =~ /test/i) ? './' : '@PKG_SYSCONFDIR@/';
14 +my $var = ($program =~ /test/i) ? './' : '@VARBASE@/';
15 my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
16 @@ -219,3 +219,3 @@ my %variables = (
17 'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef),
18 - 'cache' => setv(T_FILE, 0, 0, 1, "$etc$program.cache", undef),
19 + 'cache' => setv(T_FILE, 0, 0, 1, "${var}db/$program.cache", undef),
20 'pid' => setv(T_FILE, 0, 0, 1, "", undef),