From fe5714ec583d70d08d5c39611d0c57fd7db8511f Mon Sep 17 00:00:00 2001 From: bad Date: Wed, 3 Oct 2007 18:31:19 +0000 Subject: Move ddclient cache file to $VARBASE/db/ddclient.cache by default. Bump PKGREVISION. --- net/ddclient/Makefile | 4 +++- net/ddclient/distinfo | 4 ++-- net/ddclient/patches/patch-aa | 26 +++++++++++++++++++++----- 3 files changed, 26 insertions(+), 8 deletions(-) (limited to 'net') diff --git a/net/ddclient/Makefile b/net/ddclient/Makefile index e087825a557..44fe8f540e0 100644 --- a/net/ddclient/Makefile +++ b/net/ddclient/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.25 2006/03/14 01:14:31 jlam Exp $ +# $NetBSD: Makefile,v 1.26 2007/10/03 18:31:19 bad Exp $ DISTNAME= ddclient-3.6.6 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ddclient/} EXTRACT_SUFX= .tar.bz2 @@ -26,6 +27,7 @@ INSTALLATION_DIRS= sbin do-configure: cd ${WRKSRC}; for f in ddclient; do \ ${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \ + -e "s|@VARBASE@|${VARBASE}|g" \ -e "s|@PERL5@|${PERL5}|g" \ $${f} > $${f}.fixed; \ if [ -x $${f} ]; then \ diff --git a/net/ddclient/distinfo b/net/ddclient/distinfo index 33c813cbcb1..7d260bcf52e 100644 --- a/net/ddclient/distinfo +++ b/net/ddclient/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.6 2005/08/02 09:55:38 wiz Exp $ +$NetBSD: distinfo,v 1.7 2007/10/03 18:31:19 bad Exp $ SHA1 (ddclient-3.6.6.tar.bz2) = 55574b2bc4307122aece3dfccbdbd53771e2365b RMD160 (ddclient-3.6.6.tar.bz2) = afbc0c868c095408214397aab7398e36342ae666 Size (ddclient-3.6.6.tar.bz2) = 34009 bytes -SHA1 (patch-aa) = 0c721fd0b429387a9b49ab02927295709d226c13 +SHA1 (patch-aa) = 059cdfe339a6ef56fbcf5b9e6eddb84bd2e2da6f diff --git a/net/ddclient/patches/patch-aa b/net/ddclient/patches/patch-aa index da50925c81f..36fcd73b3b7 100644 --- a/net/ddclient/patches/patch-aa +++ b/net/ddclient/patches/patch-aa @@ -1,14 +1,30 @@ -$NetBSD: patch-aa,v 1.3 2005/08/02 09:55:38 wiz Exp $ +$NetBSD: patch-aa,v 1.4 2007/10/03 18:31:19 bad Exp $ ---- ddclient.orig Sun Nov 18 19:54:48 2001 -+++ ddclient -@@ -1,3 +1,2 @@ +--- ddclient.orig 2005-03-20 12:01:23.000000000 +0100 ++++ ddclient 2007-10-03 20:25:46.000000000 +0200 +@@ -1,5 +1,4 @@ -#!/usr/bin/perl -w -#!/usr/local/bin/perl -w +#!@PERL5@ -w ###################################################################### -@@ -22,3 +21,3 @@ + # $Header: /cvsroot/pkgsrc/net/ddclient/patches/patch-aa,v 1.4 2007/10/03 18:31:19 bad Exp $ + # +@@ -22,7 +21,8 @@ + $program =~ s/d$//; + 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/'; + my $msgs = ''; + my $last_msgs = ''; +@@ -217,7 +217,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, "${var}db/$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), -- cgit v1.2.3