From owner-freebsd-ports@freebsd.org Tue Sep 13 16:02:45 2016 Return-Path: Delivered-To: freebsd-ports@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 6D087BD9311 for ; Tue, 13 Sep 2016 16:02:45 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 5AB71EC1 for ; Tue, 13 Sep 2016 16:02:45 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: by mailman.ysv.freebsd.org (Postfix) id 5A210BD9310; Tue, 13 Sep 2016 16:02:45 +0000 (UTC) Delivered-To: ports@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 59D2BBD930F for ; Tue, 13 Sep 2016 16:02:45 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from nilaya.lain.pl (nilaya.lain.pl [IPv6:2001:41d0:d:492::]) by mx1.freebsd.org (Postfix) with ESMTP id 25E75EC0 for ; Tue, 13 Sep 2016 16:02:44 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from [192.168.2.42] (c106-252.icpnet.pl [62.21.106.252]) by nilaya.lain.pl (Postfix) with ESMTPSA id A0FB93FD6B; Tue, 13 Sep 2016 18:02:36 +0200 (CEST) Subject: Re: FreeBSD Port: noip-2.1.9_3 To: "ports@FreeBSD.org" References: <4bb353eb-67e0-cd72-9dba-83fdca2ae4d8@gmx.de> <990cd69e-dc34-8a00-b4eb-d07fcebbff95@gmx.de> Cc: Stanislaw Halik , "James A. McGuire" From: Stanislaw Halik Message-ID: <7fc09a4d-f67e-0674-9f68-0a57e174b184@misaki.pl> Date: Tue, 13 Sep 2016 18:02:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <990cd69e-dc34-8a00-b4eb-d07fcebbff95@gmx.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 16:02:45 -0000 On 2016-08-31 Wed 17:38, olli hauer wrote: >>> The update interval can be adjusted (default is 30 days). >>> In the patch example I've chosen half of the interval, so there is time left in case you are offline for an unforeseen reason >>> >>> Index: Makefile >>> =================================================================== >>> --- Makefile (revision 421168) >>> +++ Makefile (working copy) >>> @@ -25,6 +25,12 @@ >>> >>> OPTIONS_DEFINE= DOCS >>> >>> +FORCE_INTERVAL= 14 # days until IP update is forced >>> + >>> +post-patch: >>> + ${REINPLACE_CMD} -e '/define FORCE_INTERVAL/s/30/${FORCE_INTERVAL}/g' \ >>> + ${WRKSRC}/noip2.c >>> + >>> do-install: >>> ${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${STAGEDIR}${PREFIX}/bin >>> ${MKDIR} ${STAGEDIR}${DOCSDIR} > I don't use the tool myself (having a static assigned network) and I'm even not sure if it will work. > > So I suggest James can test it (suspecting there is a ways to see the last update time on the noip portal) and if it works for him he can submit the patch as PR It's also necessary to #define FORCE_UPDATE 1 But keep in mind that the interval is accounted for only during process' stay in memory. It doesn't work like "anacron" and the like. I'd like to send a maintainer update with an interval of just a few days. In short, -#define FORCE_UPDATE 0 +#define FORCE_UPDATE 1 -#define FORCE_INTERVAL (1440 * 30) // 30 days in minutes +#define FORCE_INTERVAL (1440 * 7) // 7 days in minutes Kudos to olli hauer for noticing that builtin functionality. sh