Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2016 17:38:42 +0200
From:      olli hauer <ohauer@gmx.de>
To:        "ports@FreeBSD.org" <ports@freebsd.org>
Cc:        Stanislaw Halik <sthalik@tehran.lain.pl>, "James A. McGuire" <j.a.mcguire@gmail.com>
Subject:   Re: FreeBSD Port: noip-2.1.9_3
Message-ID:  <990cd69e-dc34-8a00-b4eb-d07fcebbff95@gmx.de>
In-Reply-To: <b70d6184-5ffe-76b7-8327-c1b57ea03d58@misaki.pl>
References:  <CADPthFdUyAGUMpPpAJ16g8W_mR_RkYsWF4BezjkWC2k5aW0j1g@mail.gmail.com> <4bb353eb-67e0-cd72-9dba-83fdca2ae4d8@gmx.de> <b70d6184-5ffe-76b7-8327-c1b57ea03d58@misaki.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-08-31 17:30, Stanislaw Halik wrote:
> On 2016-08-31 Wed 17:21, olli hauer wrote:
>> I think this will work for you.
>>
>> 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}
> 
> Hey,
> 
> Please send this as a PR.
> 
> I'd personally choose a value of 7 days but this is okay.
> 
> sh

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

-- 
olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?990cd69e-dc34-8a00-b4eb-d07fcebbff95>