freebsd-ports/dns/ddclient/files/patch-ddclient
Marcus Alves Grando 230fa6ce6e - Update to 3.6.7
- Add new rc.d script

PR:		96667
Submitted by:	Andrew Pantyukhin <infofarmer___gmail.com>
Approved by:	maintainer
2006-05-07 00:03:25 +00:00

22 lines
769 B
Text

--- ./ddclient.orig Sun Dec 18 18:03:42 2005
+++ ./ddclient Tue May 2 18:38:16 2006
@@ -21,8 +20,8 @@
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
-my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
-my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
+my $etc = '%%PREFIX%%/etc/';
+my $savedir = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}/" : "/var/tmp/");
my $msgs = '';
my $last_msgs = '';
@@ -30,7 +29,7 @@
local $file = '';
local $lineno = '';
-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:";
sub T_ANY {'any'};
sub T_STRING {'string'};