FreeBSD Bugzilla – Attachment 107760 Details for
Bug 148586
dns/ddclient - Added periodic daily script to force update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.83 KB, created by
howeyc
on 2010-07-14 03:20:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
howeyc
Created:
2010-07-14 03:20:09 UTC
Size:
1.83 KB
patch
obsolete
>diff -ruN ddclient.orig/Makefile ddclient/Makefile >--- ddclient.orig/Makefile 2009-08-21 18:18:41.000000000 -0600 >+++ ddclient/Makefile 2010-07-13 18:56:04.000000000 -0600 >@@ -22,7 +22,7 @@ > NO_BUILD= yes > USE_RC_SUBR= ${PORTNAME} > >-SUB_FILES= pkg-message >+SUB_FILES= pkg-message ddclient_force > PKGMESSAGE= ${WRKDIR}/pkg-message > PLIST_FILES= etc/ddclient.conf.sample sbin/ddclient > >@@ -46,6 +46,10 @@ > @${INSTALL} -d ${DOCSDIR} > @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ > .endif >+ >+post-install: >+ ${MKDIR} ${PREFIX}/etc/periodic/daily >+ ${INSTALL_SCRIPT} ${WRKDIR}/ddclient_force ${PREFIX}/etc/periodic/daily/ddclient_force > @${CAT} ${PKGMESSAGE} > > .include <bsd.port.mk> >diff -ruN ddclient.orig/files/ddclient_force.in ddclient/files/ddclient_force.in >--- ddclient.orig/files/ddclient_force.in 1969-12-31 17:00:00.000000000 -0700 >+++ ddclient/files/ddclient_force.in 2010-07-13 20:02:46.000000000 -0600 >@@ -0,0 +1,29 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+# If there is a global system configuration file, suck it in. >+# >+if [ -r /etc/defaults/periodic.conf ] >+then >+ . /etc/defaults/periodic.conf >+ source_periodic_confs >+fi >+ >+case "$daily_ddclient_force_enable" in >+ [Yy][Ee][Ss]) >+ echo >+ echo 'Forcing ddclient update:' >+ >+ out=`/usr/local/sbin/ddclient -force` >+ echo "$out" >+ rc=0 >+ ;; >+ >+ *) >+ rc=0 >+ ;; >+esac >+ >+exit $rc >diff -ruN ddclient.orig/files/pkg-message.in ddclient/files/pkg-message.in >--- ddclient.orig/files/pkg-message.in 2006-05-06 18:03:25.000000000 -0600 >+++ ddclient/files/pkg-message.in 2010-07-13 18:58:26.000000000 -0600 >@@ -12,4 +12,10 @@ > > ddclient_enable="YES" > >+If you would like to force ddclient to update your account >+daily regardless of IP changes add the following line to >+your /etc/periodic.conf >+ >+ daily_ddclient_force_enable="YES" >+ > ***********************************************************
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148586
: 107760