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

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to