From owner-svn-ports-all@freebsd.org Sat May 20 02:27:55 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5583D75F0F; Sat, 20 May 2017 02:27:55 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92B0D15F3; Sat, 20 May 2017 02:27:55 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4K2RsYH056067; Sat, 20 May 2017 02:27:54 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4K2Rsa0056065; Sat, 20 May 2017 02:27:54 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201705200227.v4K2Rsa0056065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Sat, 20 May 2017 02:27:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441283 - in head/dns/ddclient: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 02:27:55 -0000 Author: asomers (src committer) Date: Sat May 20 02:27:54 2017 New Revision: 441283 URL: https://svnweb.freebsd.org/changeset/ports/441283 Log: Use anticongestion in dns/ddclient Introduced in src r316342, the anticongestion feature unifies multiple periodic scripts' disparate sleeps. PR: 218442 Approved by: mjl@luckie.org.nz (maintainer) Approved by: brd (ports) Modified: head/dns/ddclient/Makefile head/dns/ddclient/files/ddclient_force.in Modified: head/dns/ddclient/Makefile ============================================================================== --- head/dns/ddclient/Makefile Sat May 20 02:27:45 2017 (r441282) +++ head/dns/ddclient/Makefile Sat May 20 02:27:54 2017 (r441283) @@ -3,7 +3,7 @@ PORTNAME= ddclient PORTVERSION= 3.8.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= dns MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} Modified: head/dns/ddclient/files/ddclient_force.in ============================================================================== --- head/dns/ddclient/files/ddclient_force.in Sat May 20 02:27:45 2017 (r441282) +++ head/dns/ddclient/files/ddclient_force.in Sat May 20 02:27:54 2017 (r441283) @@ -16,9 +16,16 @@ case "$daily_ddclient_force_enable" in echo echo 'Forcing ddclient update:' - out=`%%PREFIX%%/sbin/ddclient -force` - echo "$out" - rc=0 + # sleep randomly to reduce congestion on dyn dns server. In + # FreeBSD 12.0 the anticongestion function should be used + # instead of a hard-coded sleep + if [ -n "$anticongestion_sleeptime" ]; then + anticongestion + else + sleep `jot -r 1 0 900` + fi + + %%PREFIX%%/sbin/ddclient -force || rc=3 ;; *) rc=0