Files
pkgsrc-ng/net/ddclient/patches/patch-aa
2013-09-26 17:14:40 +02:00

21 lines
964 B
Plaintext

$NetBSD: patch-aa,v 1.5 2007/10/03 23:02:52 bad Exp $
--- ddclient.orig 2005-03-20 12:01:23.000000000 +0100
+++ ddclient
@@ -1,3 +1,2 @@
-#!/usr/bin/perl -w
-#!/usr/local/bin/perl -w
+#!@PERL5@ -w
######################################################################
@@ -24,3 +23,4 @@ my $now = time;
my $hostname = hostname();
-my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
+my $etc = ($program =~ /test/i) ? './' : '@PKG_SYSCONFDIR@/';
+my $var = ($program =~ /test/i) ? './' : '@VARBASE@/';
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
@@ -219,3 +219,3 @@ my %variables = (
'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, "${var}db/$program.cache", undef),
'pid' => setv(T_FILE, 0, 0, 1, "", undef),