Your message dated Tue, 16 Jun 2009 06:32:10 +0000
with message-id <[email protected]>
and subject line Bug#513626: fixed in ddclient 3.8.0-2
has caused the Debian Bug report #513626,
regarding Improved configuration for DynDNS users
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
513626: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513626
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ddclient
Version: 3.7.3-4
Attached is a patch that modifies the package installation scripts for
ddclient to simplify the configuration process when selecting DynDNS as
the service.
The configuration generated will work out of the box for the vast
majority of our userbase, without the need to edit the configuration
file afterwards.
This patch allows users to use checkip.dyndns.com to retrieve their IP
address, which is recommended if the machine is behind NAT, and
automatically retrieves their host list from our site to select which
hosts to update if they choose to do so. It also runs ddclient as a
daemon if checkip is used.
This patch implements these features as options to the user, and will
fall back to the old-style configuration options if they do not select
them. It does not affect the configuration if a non-DynDNS service is
chosen. It uses wget to fetch the host list only if it is available so
that no dependency needs to be added. For the desktop-type users this
patch targets, wget will likely already be installed.
We would like to see this patch included in Debian, and eventually
Debian-based distributions to improve ease of installation for our Linux
customers.
If you have any questions, concerns, comments, or any requests for
changes in order to accept this patch, feel free to contact me.
Take care,
--
Dan McCombs
Dynamic Network Services, Inc.
www.dyndns.com
diff -Naur ddclient-3.7.3/debian/config ddclient-3.7.3-dyndns/debian/config
--- ddclient-3.7.3/debian/config 2009-01-29 09:38:35.000000000 -0500
+++ ddclient-3.7.3-dyndns/debian/config 2009-01-29 09:38:26.000000000 -0500
@@ -95,19 +95,45 @@
fi
# ask the user about the dynamic DNS names, account and interface
- db_input critical ddclient/names || true
db_input critical ddclient/username || true
db_input critical ddclient/password || true
- db_input critical ddclient/interface || true
+ db_get ddclient/service
+ # if the chosen service is dyndns, ask some extra questions. otherwise, set them to false
+ if [ $RET = "www.dyndns.com" ]; then
+ db_input critical ddclient/checkip || true
+ if [ -f /usr/bin/wget ]; then
+ db_input critical ddclient/fetchhosts || true
+ else
+ db_fset ddclient/fetchhosts seen true
+ db_set ddclient/fetchhosts false
+ fi
+ else
+ db_fset ddclient/checkip seen true
+ db_fset ddclient/fetchhosts seen true
+ db_set ddclient/checkip false
+ db_set ddclient/fetchhosts false
+ fi
+ db_go
+ db_get ddclient/checkip
+ # ask the traditional questions if the dyndns questions weren't answered true
+ if [ $RET = "false" ]; then
+ db_input critical ddclient/interface || true
+ fi
+ db_get ddclient/fetchhosts
+ if [ $RET = "false" ]; then
+ db_input critical ddclient/names || true
+ fi
db_go
# set the default mode ddclient should run in (ip-up | daemon),
# depending on the entered interface (XpppX or other)
db_get ddclient/interface
interface=$RET
+ db_get ddclient/checkip
+ checkip=$RET
- # if it is actually a ppp or related interface
- if [ -z "${interface##*ppp*}" ]; then
+ # if it is actually a ppp or related interface, and we're not using checkip
+ if [ $checkip != "true" ] && [ -z "${interface##*ppp*}" ]; then
db_fget ddclient/run_ipup seen
if [ $RET = "false" ]; then
db_set ddclient/run_ipup true
diff -Naur ddclient-3.7.3/debian/ddclient.templates ddclient-3.7.3-dyndns/debian/ddclient.templates
--- ddclient-3.7.3/debian/ddclient.templates 2009-01-29 09:38:35.000000000 -0500
+++ ddclient-3.7.3-dyndns/debian/ddclient.templates 2009-01-29 09:38:26.000000000 -0500
@@ -38,6 +38,13 @@
_Description: Password for dynamic DNS service:
Enter the password you use to log into the dynamic DNS service.
+Template: ddclient/checkip
+Type: boolean
+Default: true
+_Description: Find public IP using checkip.dyndns.com? (Recommended)
+ Enable this to have ddclient find your IP via the web, recommended
+ if this machine is behind a NAT.
+
Template: ddclient/interface
Type: string
_Description: Interface used for dynamic DNS service:
@@ -73,3 +80,26 @@
this. Maybe you modified the configuration file manually, thus it won't
be modified. If you want a new config file to be created, please run
"dpkg-reconfigure ddclient".
+
+Template: ddclient/fetchhosts
+Type: boolean
+Default: true
+_Description: Automatically fetch list of hosts to choose from?
+ Select this to see a list of your account's hostnames to select which to update.
+
+Template: ddclient/hostslist
+Type: multiselect
+Choices: ${choices}
+_Description: Please select the hostnames you would like to keep updated
+ Select one or more hosts to update using ddclient
+
+Template: ddclient/blankhostslist
+Type: note
+_Description: Hosts list blank, possible incorrect login information.
+ The fetched hosted list is blank. This can be caused by the following:
+ .
+ * An incorrect username or password was entered
+ * You do not have any hostnames configured in your account
+ .
+ Please check your account to be sure you have hostnames configured, then run
+ "dpkg-reconfigure ddclient" to input your username and password again.
diff -Naur ddclient-3.7.3/debian/postinst ddclient-3.7.3-dyndns/debian/postinst
--- ddclient-3.7.3/debian/postinst 2009-01-29 09:38:35.000000000 -0500
+++ ddclient-3.7.3-dyndns/debian/postinst 2009-01-29 09:38:26.000000000 -0500
@@ -35,9 +35,33 @@
db_version 2.0 || { echo "ddclient.config: \
need DebConf 2.0 or later"; exit 1; }
-
# if /etc/ddclient.conf does not exist:
if [ ! -f /etc/ddclient.conf ]; then
+ # check if we should fetch the hostlist for a dyndns account
+ db_get ddclient/fetchhosts
+ if [ $RET = "true" ]; then
+ # get the dyndns host list
+ db_get ddclient/username && username="$RET"
+ db_get ddclient/password && password="$RET"
+ hostslist=`/usr/bin/wget http://$username:[email protected]/text/gethostlist -q -O - | awk -F \: '{print $2, $4}' | sed -e "N;s/ \n/,/g" | sed -e "s/,/, /g"`
+
+ # add the list to our multichoice template, then prompt the user
+ db_subst ddclient/hostslist choices $hostslist
+ db_input critical ddclient/hostslist || true
+ db_go
+
+ # set names using the host list to write it to the config file later
+ db_get ddclient/hostslist
+ hostslist=`echo "$RET" | sed -e "s/, /,/g"`
+ db_set ddclient/names "$hostslist"
+
+ # if the hostslist was blank, let the user know some possible reasons
+ if [ -z $hostslist ]; then
+ db_input high ddclient/blankhostslist
+ db_go
+ fi
+ fi
+
# get the values from the debconf database
db_get ddclient/protocol && protocol="$RET"
db_get ddclient/server && server="$RET"
@@ -45,8 +69,15 @@
db_get ddclient/username && username="$RET"
db_get ddclient/password \
&& password=$(echo "$RET"|sed -e "s/'/\\\\'/g")
- db_get ddclient/interface && interface="$RET"
-
+ db_get ddclient/interface
+ if [ $RET ]; then
+ interface="use=if, if=$RET"
+ else
+ db_get ddclient/checkip
+ if [ $RET = "true" ]; then
+ interface="use=web, web=checkip.dyndns.com, web-skip='IP Address'"
+ fi
+ fi
# create configuration file /etc/ddclient.conf
config=`mktemp /etc/ddclient.conf.XXXXXX`
@@ -58,7 +89,7 @@
pid=/var/run/ddclient.pid
protocol=$protocol
-use=if, if=$interface
+$interface
server=$server
login=$username
password='$password'
--- End Message ---
--- Begin Message ---
Source: ddclient
Source-Version: 3.8.0-2
We believe that the bug you reported is fixed in the latest version of
ddclient, which is due to be installed in the Debian FTP archive:
ddclient_3.8.0-2.diff.gz
to pool/main/d/ddclient/ddclient_3.8.0-2.diff.gz
ddclient_3.8.0-2.dsc
to pool/main/d/ddclient/ddclient_3.8.0-2.dsc
ddclient_3.8.0-2_all.deb
to pool/main/d/ddclient/ddclient_3.8.0-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Torsten Landschoff <[email protected]> (supplier of updated ddclient package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 16 Jun 2009 08:09:26 +0200
Source: ddclient
Binary: ddclient
Architecture: source all
Version: 3.8.0-2
Distribution: experimental
Urgency: low
Maintainer: Torsten Landschoff <[email protected]>
Changed-By: Torsten Landschoff <[email protected]>
Description:
ddclient - address updating utility for dynamic DNS services
Closes: 513626
Changes:
ddclient (3.8.0-2) experimental; urgency=low
.
* Apply patch from Dan McCombs to ease usage of DynDNS services
(closes: #513626).
+ This also partially fixes #285007 as it uses a web interface
to determine the own IP address (but only when configuring for
DynDNS.com services). This must be fixed for others as well.
Checksums-Sha1:
7da0eab8334cf890e272a930b1c7e54d6b95abe2 1051 ddclient_3.8.0-2.dsc
c80c6f420eb0095126c86bf25a2b5eb3c9aa7eab 41473 ddclient_3.8.0-2.diff.gz
95423674e50cd2a4aa49530b81920d0391965ed9 60840 ddclient_3.8.0-2_all.deb
Checksums-Sha256:
32ef5316b78f3562f1b6dcf269f1f9c8d09a0bd73d9b1cac101e164182b05b3f 1051
ddclient_3.8.0-2.dsc
4f86ce5d6cd32008acb72bd1b51d343e7a8352f3ab9ffbf9c14c9af396c4eb03 41473
ddclient_3.8.0-2.diff.gz
bc6561a49eb66d45c37e4001ac01c26123d250bc155502c990694740ed968bd1 60840
ddclient_3.8.0-2_all.deb
Files:
74a6bb70836b5518fba752ed2054453f 1051 net extra ddclient_3.8.0-2.dsc
f6a70e3e0f8f643b673d913c503c7468 41473 net extra ddclient_3.8.0-2.diff.gz
eb4fa9571d308c0f5d3922664ca2bed9 60840 net extra ddclient_3.8.0-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFKNzgidQgHtVUb5EcRAqCsAJ9f/d3+dBNy0JtoApGdV025oq26LgCeLzPv
8DkHExavuadGJdasCzUBJtU=
=XjJW
-----END PGP SIGNATURE-----
--- End Message ---