[98798] trunk/dports/net/ddclient
snc at macports.org
snc at macports.org
Tue Oct 16 06:58:07 PDT 2012
Revision: 98798
http://trac.macports.org//changeset/98798
Author: snc at macports.org
Date: 2012-10-16 06:58:07 -0700 (Tue, 16 Oct 2012)
Log Message:
-----------
ddclient: create cache dir and use it, #22652
Modified Paths:
--------------
trunk/dports/net/ddclient/Portfile
Added Paths:
-----------
trunk/dports/net/ddclient/files/
trunk/dports/net/ddclient/files/patch-ddclient.diff
Modified: trunk/dports/net/ddclient/Portfile
===================================================================
--- trunk/dports/net/ddclient/Portfile 2012-10-16 13:46:01 UTC (rev 98797)
+++ trunk/dports/net/ddclient/Portfile 2012-10-16 13:58:07 UTC (rev 98798)
@@ -5,7 +5,7 @@
name ddclient
version 3.8.1
-revision 1
+revision 2
platforms darwin
categories net
license GPL
@@ -23,10 +23,14 @@
depends_lib port:p5.12-io-socket-ssl
depends_run port:perl5.12
+patchfiles patch-ddclient.diff
+post-patch {
+ reinplace s|@@PREFIX@@|${prefix}|g ${worksrcpath}/ddclient
+}
+
configure {
reinplace "s|\[\r\]$||" ${worksrcpath}/${name}
reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl5.12|" ${worksrcpath}/${name}
- reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${name}
}
build {}
Added: trunk/dports/net/ddclient/files/patch-ddclient.diff
===================================================================
--- trunk/dports/net/ddclient/files/patch-ddclient.diff (rev 0)
+++ trunk/dports/net/ddclient/files/patch-ddclient.diff 2012-10-16 13:58:07 UTC (rev 98798)
@@ -0,0 +1,13 @@
+--- ddclient.orig 2012-10-16 09:50:53.000000000 -0400
++++ ddclient 2012-10-16 09:51:43.000000000 -0400
+@@ -29,8 +29,8 @@
+ $program =~ s/d$//;
+ my $now = time;
+ my $hostname = hostname();
+-my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
+-my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
++my $etc = ($program =~ /test/i) ? './' : '@@PREFIX@@/etc/ddclient/';
++my $cachedir = ($program =~ /test/i) ? './' : '@@PREFIX@@/var/cache/ddclient/';
+ my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
+ my $msgs = '';
+ my $last_msgs = '';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121016/2a275870/attachment.html>
More information about the macports-changes
mailing list