debian/0000755000000000000000000000000011672067574007205 5ustar debian/rules0000755000000000000000000000122611661104551010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # # Modified to make a template file for a multi-binary package with separated # build-arch and build-indep targets by Bill Allombert 2001 # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS %: dh $@ debian/source/0000755000000000000000000000000011515417636010477 5ustar debian/source/format0000644000000000000000000000001411515417636011705 0ustar 3.0 (quilt) debian/compat0000600000000000000000000000000211515761414010361 0ustar 7 debian/links0000644000000000000000000000004511643751517010242 0ustar /usr/bin/ddns3 /usr/bin/ddns3-client debian/docs0000644000000000000000000000001411643221410010026 0ustar ddns-v3.txt debian/control0000600000000000000000000000170311672043754010573 0ustar Source: ddns3-client Section: net Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>> 7.0.55) Standards-Version: 3.9.2 Package: ddns3-client Architecture: any Suggests: bpalogin, dhcp-client Depends: ${shlibs:Depends}, ${misc:Depends} Description: Issues dynamic DNS v3 requests Dynamic DNS fixes your domain name when your IP address varies with permanent connections like cable modems. Your ISP may charge extra for DNS. Free dynamic DNS with a range of domain names is available from sites like dyndns.org, hn.org and ddns.nu. You set up an account and domain name with your browser at the dynamic DNS site then update the IP periodically with an appropriate client program. . This package installs a DNS update client, ddns3, for Dynamic DNS version 3 used by server ddns.nu in Sydney, Australia. After server account creation edit /etc/default/ddns3-client to activate ddns3. debian/cron.daily0000644000000000000000000000131011643221410011140 0ustar #! /bin/sh # (C) 2003 Ian Maclaine-cross # Copyright conditions are in file GPL. DAEMON=/usr/bin/ddns3 NAME=ddns3-client FILE=/etc/default/ddns3-client test -x $DAEMON || exit 0 set -e if test -r $FILE; then . $FILE; fi; if [ $USER. = . ] || [ $PASS. = . ] || [ $HANDLE. = . ]; then echo $NAME: Please edit $FILE to activate $DESC! exit 1 fi; # ddns3 command and arguments dc="$DAEMON --user $USER --pass $PASS\ --host $HOST --auth $AUTH --port $PORT"; echo "$NAME..." if sm=`$dc guess $HANDLE remote 2>/dev/null`; then echo Updated $HANDLE IP at $HOST, $dc list; echo $sm; else echo $HANDLE IP at $HOST unchanged, $dc list; fi; echo "$NAME." exit 0 debian/copyright0000600000000000000000000000051511516040167011113 0ustar This package was debianized by Ian Maclaine-cross on Sat, 7 Jun 2003 16:42:40 +1000. It was downloaded from http://ddns.nu/files/ddns3-client-1.8.tar.gz on 7th June 2003. Upstream Author: Alan Yates Copyright 2001, 2002, 2003 Alan Yates The license is in file: /usr/share/common-licenses/GPL-2debian/dirs0000644000000000000000000000001011643221410010033 0ustar usr/bin debian/README.Debian0000644000000000000000000000571211672043144011236 0ustar ddns3-client for Debian ----------------------- If you have a permanent Internet connection with a variable IP address and want a fixed domain name you need dynamic DNS. Your ISP may charge for DNS. Free dynamic DNS for a range of domains is offered by sites like dyndns.org, hn.org and ddns.nu. You establish an account at such a site with your web browser and when your IP changes update it with an appropriate client. Ddns3-client installs ddns3 an update client by Alan Yates for the Dynamic DNS version 3 protocol. This protocol is defined in ddns-v3.txt and used by the dynamic DNS server ns.ddns.nu. After installing ddns3-client: 1. Point your browser at server site (e.g. http://www.ddns.nu/) and if they use dynamic DNS v3; 2. follow their instructions to obtain a username, password, handle-name and domain name; 3. then as root edit /etc/default/ddns3-client to enter these values as necessary, then # chmod 600 /etc/default/ddns3-client to protect your password; 4. check your machine is set to the desired FQDN with "hostname -f" and if wrong "man hostname" explains how to set it; 5. "/etc/init.d/ddns3-client start" sets the DNS site at boot and /etc/cron.daily/ddns3-client checks automatically every morning. 6. Run /etc/cron.daily/ddns3-client to check that it is operating. It should produce output like: ddns3-client... IP at ns.ddns.nu unchanged, ddns3-client. where is the handle name you chose at 2 and is the current IP number of your client machine. If it does not read the man page. 7. ns.ddns.nu deletes accounts after a month of inactivity automatically. If this happens you need to reestablish your account as in step 2 (http://www.ddns.nu/). These scripts use ddns3 to compare your machines IP with the DNS site IP record and if they differ copies your machines IP to the DNS site record. Your new IP should become effective within 20 minutes. If your machine runs continuously, your IP changes only in the small hours every few months. About an hour of Internet access to your machine will be lost every month with cron.daily checks. If this matters, with Telstra cable configure bpalogin and with other networks configure your DHCP client to run /etc/cron.daily/ddns3-client after connection or reset. At the time of writing ns.ddns.nu was using PORT=5000, the default compiled into ddns3, not the IANA assigned TCP PORT=2164. The ddns3-client scripts update just the IP of their host. The handle for this IP can have an array of domain names at the server. A single ddns3 host could update IPs for a network. If you want this read the server documentation and edit the scripts. There will be server charges. -- Ian Maclaine-cross , Sat, 7 Jun 2003 16:42:40 +1000 Revised: Tue Apr 15 13:40:43 UTC 2008 -- iml >, Wed, 14 Dec 2011 17:47:00 +1100 debian/init.d0000600000000000000000000000224711516147364010303 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: ddns3-client # Required-Start: $network $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # (C) 2003 Ian Maclaine-cross # Copyright conditions are in file GPL. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/ddns3 NAME=ddns3-client DESC='Dynamic DNS v3' FILE=/etc/default/ddns3-client test -x $DAEMON || exit 0 set -e if test -r $FILE; then . $FILE; fi; if [ $USER. = . ] || [ $PASS. = . ] || [ $HANDLE. = . ]; then echo $NAME: Please edit $FILE to activate $DESC! exit 0 fi; case "$1" in start|restart|force-reload) echo -n "Setting $DESC: " # ddns3 command and arguments dc="$DAEMON --user $USER --pass $PASS\ --host $HOST --auth $AUTH --port $PORT"; if sm=`$dc guess $HANDLE remote 2>/dev/null`; then echo Updated $HANDLE IP at $HOST, $dc list; echo $sm; else echo $HANDLE IP at $HOST unchanged, $dc list; fi; echo "$NAME." ;; stop) ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/ddns3-client.10000644000000000000000000000002111643500224011525 0ustar .so man1/ddns3.1 debian/postinst0000644000000000000000000000010711661062401010767 0ustar #! /bin/sh set -e #DEBHELPER# chmod 0600 /etc/default/ddns3-client debian/ddns3-client.default0000600000000000000000000000046611643221410013013 0ustar # Installed by maintainer scripts for ddns3-client # Sourced by /etc/init.d/ddns3-client and /etc/cron.daily/ddns3-client # Values for your DDNS site account ( e.g. http://ddns.nu/ ). HOST='ns.ddns.nu'; USER=''; PASS=''; HANDLE=''; # Compiled defaults AUTH='ddns'; # Other sites might use 2164. PORT='5000'; debian/changelog0000600000000000000000000000566311672044344011047 0ustar ddns3-client (1.8-12) unstable; urgency=low * ddns3-client orphaned * README.Debian corrected -- Ian Maclaine-cross Wed, 14 Dec 2011 17:57:40 +1100 ddns3-client (1.8-11) unstable; urgency=low * /etc/default/ddns3-client made readable by root only in debian/postinst (Fixes Ubuntu bug #174997). -- Ian Maclaine-cross Wed, 16 Nov 2011 18:01:04 +1100 ddns3-client (1.8-10) unstable; urgency=low * Corrected documentation in debian/patches/debian-changes-1.8-9 * Made debian-changes-1.8-8 cumulative of previous patches (Closes: #643085) * debian/rules replaced with debhelper common debian/rules -- Ian Maclaine-cross Fri, 07 Oct 2011 14:30:09 +1100 ddns3-client (1.8-9) unstable; urgency=low * Fixes ftbfs with binutils-gold in ubuntu (Closes: #610709) -- Ian Maclaine-cross Thu, 10 Feb 2011 15:52:25 +1100 ddns3-client (1.8-8) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format * Corrected init.d and other lintian errors -- Ian Maclaine-cross Fri, 21 Jan 2011 10:45:25 +1100 ddns3-client (1.8-7) unstable; urgency=low * README.Debian updated. * cron.daily bashisms removed now works again. * Edited GNUMakefile strip removed (Closes: #436708). -- Ian Maclaine-cross Mon, 14 Apr 2008 23:50:05 +1000 ddns3-client (1.8-6.1) unstable; urgency=low * Non-maintainer upload to fix bashism and LSB headers. * Applied patch provided by Steve Kowalik to fix bashism in init script, with some extra fixes of my own (Closes: #387893). * Applied patch provided by Kel Modderman to include LSB headers in the init script (Closes: #469141). * Patched GNUMakefile to allow unsetting the strip option. * Modified debian/rules to set the strip option accordingly -- Margarita Manterola Sat, 08 Mar 2008 19:48:36 +0000 ddns3-client (1.8-6) unstable; urgency=low * FSF address corrected in file ddns3-client/copyright. -- Ian Maclaine-cross Mon, 13 Feb 2006 13:48:52 +1100 ddns3-client (1.8-5) unstable; urgency=low * Correct /etc/cron.daily/ddns3-client for missing /etc/default/ddns3-client -- Ian Maclaine-cross Tue, 22 Jun 2004 23:29:34 +1000 ddns3-client (1.8-4) unstable; urgency=low * Correct /etc/init.d/ddns3-client for missing /etc/default/ddns3-client (Closes: #255385, #255352). -- Ian Maclaine-cross Tue, 22 Jun 2004 22:22:35 +1000 ddns3-client (1.8-3) unstable; urgency=low * copyright corrected -- Ian Maclaine-cross Sat, 20 Dec 2003 12:24:42 +1000 ddns3-client (1.8-2) unstable; urgency=low * Scripts simplified with "guess remote" ddns3 command. -- Ian Maclaine-cross Thu, 12 Jun 2003 22:46:53 +1000 ddns3-client (1.8-1) unstable; urgency=low * Initial Release. -- Ian Maclaine-cross Sat, 7 Jun 2003 16:42:40 +1000 debian/patches/0000755000000000000000000000000011643506120010613 5ustar debian/patches/series0000644000000000000000000000005211643505734012037 0ustar debian-changes-1.8-8 debian-changes-1.8-9 debian/patches/debian-changes-1.8-80000644000000000000000000001115111643244616014047 0ustar Description: Cumulative patch 1.8-1 to 1.8-8 TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ddns3-client (1.8-8) unstable; urgency=low . * Switch to dpkg-source 3.0 (quilt) format * Corrected init.d and other lintian errors Author: Ian Maclaine-cross --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- /dev/null +++ ddns3-client-1.8/ddns-v3.txt @@ -0,0 +1,92 @@ +DDNS v3 remote update protocol +============================== + + TCP based: ns.ddns.nu:2164 + + Requests: + + [ arg0 arg1 ...]\r\n + + := HELP | MOTD | LOGIN | LOGOUT | LIST | SET + | EXIT | QUIT + + Responses: + + +OK \r\n + @RET \r\n[\r\n].\r\n + -ERR \r\n + + Welcome Banner: + + DDNS v ( )\r\n + + Within the auth types returned their may be data required + for specific authentication methods, like challenge + cookies or public keys. + + + Command Details (core): + + LOGIN + + Authenticate with server. + + Arguments vary depending on authentication used + + Plaintext (plaintext): + + LOGIN + + Crypt (crypt): + + LOGIN + + MD5 (md5): + + LOGIN + + DDNS (ddns{};): + + LOGIN + + response := md5(":") + + Strong (strong{};): + + LOGIN + + user := md5(":") + pass := md5(":") + + LOGOUT + + Unauthenticates the current connection. + + LIST + + Allows an authenticated user to view their IP + handles + + SET + + Allows an authenticated user to set one of their + handles to the supplied IP. + + QUIT + + Terminates the connection + + + Command Details (optional): + + HELP + + Optional command, Returns helpful information + + MOTD + + Optional command, Returns tha message of the day + + EXIT + + Optional command, terminates the connection --- ddns3-client-1.8.orig/crypto.c +++ ddns3-client-1.8/crypto.c @@ -12,6 +12,7 @@ #endif #include #include +#include #include "md5.h" static char --- ddns3-client-1.8.orig/GNUmakefile +++ ddns3-client-1.8/GNUmakefile @@ -1,57 +1,34 @@ # -# ddns3 makefile -# -# Author: Alan Yates -# Version: $Id: GNUmakefile,v 1.1.1.1 2002/07/19 11:47:20 alany Exp $ +# ddns3 Debian makefile # +# Author: Alan Yates +# Version: $Id: GNUmakefile,v 1.1.1.1 2002/07/19 11:47:20 alany Exp $ +# Maintainer: Ian Maclaine-cross # tools AR=ar CC=gcc -CFLAGS=-Wall -O2# -D_DEBUG RANLIB=ranlib INSTALL=install - -# install prefix -PREFIX=/usr/local +# INSTALL_FLAGS=-s # system dependent libraries to link -DEFAULT_LIBS=-lcrypt LINUX_LIBS=-lcrypt -SOLARIS_LIBS=-lcrypt -lsocket -lnsl -lresolv -OPENBSD_LIBS=-lcrypto - -# compile magic hacks -SYSTEM=$(shell uname -s | tr "[A-Z]" "[a-z]") -RELEASE=$(shell uname -r) -ifeq ($(SYSTEM),linux) - LIBS=$(LINUX_LIBS) -endif -ifeq ($(SYSTEM),sunos) - LIBS=$(SOLARIS_LIBS) -endif -ifeq ($(SYSTEM),openbsd) - LIBS=$(OPENBSD_LIBS) -endif -ifndef LIBS - LIBS=$(DEFAULT_LIBS) -endif +LIBS=$(LINUX_LIBS) all: ddns3 ddns3: ddns3.c libddns3.a - $(CC) $(CFLAGS) $(LIBS) ddns3.c libddns3.a -o ddns3 + $(CC) ${CFLAGS} $(LIBS) ddns3.c libddns3.a -o ddns3 libddns3.a: sockio.o crypto.o auth.o md5.o ctx.o $(AR) -cr libddns3.a *.o $(RANLIB) libddns3.a -install: ddns3 - $(INSTALL) -s ddns3 $(PREFIX)/bin/ - $(INSTALL) ddns3.1 $(PREFIX)/man/man1/ +.PHONY : clean install -uninstall: - rm -f $(PREFIX)/bin/ddns3 $(PREFIX)/man/man1/ddns3.1 +install: ddns3 + $(INSTALL) $(INSTALL_FLAGS) ddns3 $(DESTDIR)/usr/bin/ clean: rm -f *.o core *.a ddns3 debian/patches/debian-changes-1.8-90000644000000000000000000000301111525117636014044 0ustar Description: Upstream changes introduced in version 1.8-9 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . ddns3-client (1.8-9) unstable; urgency=low . * Fixes ftbfs with binutils-gold in ubuntu (Closes: #610709) . The person named in the Reviewed-By field signed this changelog entry. Reviewed-By: Ian Maclaine-cross Bug-Debian: http://bugs.debian.org/610709 Description: Fix ftbfs with ld --no-add-needed Author: Mahyuddin Susanto Bug-Ubuntu: https://launchpad.net/bugs/704868 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ddns3-client-1.8.orig/GNUmakefile +++ ddns3-client-1.8/GNUmakefile @@ -19,7 +19,7 @@ LIBS=$(LINUX_LIBS) all: ddns3 ddns3: ddns3.c libddns3.a - $(CC) ${CFLAGS} $(LIBS) ddns3.c libddns3.a -o ddns3 + $(CC) ${CFLAGS} ddns3.c libddns3.a -o ddns3 $(LIBS) libddns3.a: sockio.o crypto.o auth.o md5.o ctx.o $(AR) -cr libddns3.a *.o debian/manpages0000644000000000000000000000003611643501214010700 0ustar ddns3.1 debian/ddns3-client.1