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 <[email protected]> for noticing that builtin functionality.
sh
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"