--- ipcheck-0.233.orig/ipcheck.8 +++ ipcheck-0.233/ipcheck.8 @@ -0,0 +1,116 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. +.TH IPCHECK "8" "November 2003" "Debian GNU/Linux" "System Administration Utilities" +.SH NAME +ipcheck \- dyndns.org client +.SH DESCRIPTION +Usage : ipcheck.py [options] Username Password Hostnames +or ipcheck.py [options] \fB\-\-acctfile\fR acct_info_file +.PP +Options: \fB\-a\fR address manually specify the address +.TP +\fB\-r\fR URL +NAT router, use web IP detection +.TP +\fB\-A\fR text +scan syslog for an IP after text (Unix only) +.TP +\fB\-F\fR filename +guess the WAN IP from a firewall log +.TP +\fB\-b\fR +backup mx option ON (default OFF) +.TP +\fB\-c\fR +custom dns option (default dynamic) +.TP +\fB\-d\fR dir +directory for data files (default current) +.TP +\fB\-e\fR script +execute script after a successful update +.TP +\fB\-f\fR +force update regardless of current state +.TP +\fB\-g\fR +NAT router, let dyndns guess your IP +(do not use this in a cronjob, try \fB\-r\fR) +.TP +\fB\-h\fR +print this help text +.TP +\fB\-\-help\fR +print all available help text +.TP +\fB\-i\fR interface +interface for local address (default ppp0) +.TP +\fB\-j\fR +disable https +.TP +\fB\-l\fR +log debugging text to ipcheck.log file +.TP +\fB\-\-syslog\fR +log debugging text to syslog (Unix only) +.TP +\fB\-m\fR mxhost +mx host (default NOCHG) +.TP +\fB\-o\fR +set dyndns offline mode +.TP +\fB\-p\fR +proxy bypass on port 8245 +.TP +\fB\-q\fR +quiet mode (unless there is an error) +.TP +\fB\-s\fR +static dns option (default dynamic) +.TP +\fB\-t\fR +test run, do not send the update +.TP +\fB\-v\fR +verbose mode +.TP +\fB\-w\fR +wildcard mode ON (default OFF) +.TP +\fB\-\-makedat\fR +create the ipcheck.dat file by dns lookup +.TP +\fB\-\-devices\fR +print router options (Linksys, Netgear, etc) +.TP +\fB\-n\fR ip +the router IP address on the internal lan +.PP +For help with different options: python ipcheck.py \fB\-h\fR +For supported devices listing : python ipcheck.py \fB\-\-devices\fR +For long detailed help text : python ipcheck.py \fB\-\-help\fR +.PP +Make sure you can write to the current directory for data +files and that you always run from the same directory. +The first time you run the script, you will be asked to run +with the \fB\-\-makedat\fR option in addition to any other options. +This will create the data files for the hostnames and options +your specify on the command line. You should only do this once. +Subsequent runs should be made without the \fB\-\-makedat\fR option. +.PP +For help with different options: python ipcheck.py \fB\-h\fR +For supported devices listing : python ipcheck.py \fB\-\-devices\fR +For long detailed help text : python ipcheck.py \fB\-\-help\fR +.PP +Example 1: the external IP is on eth0 of the current machine +python ipcheck.py \fB\-l\fR \fB\-i\fR eth0 username password hostnames +.PP +Example 2: you are using the Linksys routing device +python ipcheck.py \fB\-l\fR \fB\-L\fR linksyspassword username password hostnames +.PP +Example 3: you want to use web based ip detection +python ipcheck.py \fB\-l\fR \fB\-r\fR checkip.dyndns.org:8245 ... +.PP +where ... is your dyndns username password and hostnames. +Hostnames should be comma delimited if there are more than one. --- ipcheck-0.233.orig/ipcheck.py +++ ipcheck-0.233/ipcheck.py @@ -5187,15 +5187,15 @@ logger.logit(logline) # try to get the html text + fp = None try: fp = h2.getfile() httpdata = fp.read() - fp.close() except: httpdata = "No output from http request." - # explicitly close - fp.close() + if fp: + fp.close() logline = "fd closed" logger.logit(logline) --- ipcheck-0.233.orig/index.html +++ ipcheck-0.233/index.html @@ -113,6 +113,321 @@

Documentation

+Make sure you can write to the current directory for data
+files and that you always run from the same directory.
+The first time you run the script, you will be asked to run
+with the --makedat option.  This will create the data files
+and complete the update.  You should only do this once.
+Subsequent runs should be made without the --makedat option.
+
+For help with different options: python ipcheck.py -h
+For supported devices listing  : python ipcheck.py --devices
+For long detailed help text    : python ipcheck.py --help
+
+In the following examples, ... = username password hostnames
+where hostnames is a comma separated list of hosts you wish
+to be updated.  The -l option creates an ipcheck.log file.
+
+Example 1: the external IP is on eth0 of the current machine
+python ipcheck.py -l -i eth0 ...
+
+Example 2: you are using the Linksys routing device
+python ipcheck.py -l -L linksyspassword ...
+
+Example 3: you want to use web based ip detection
+python ipcheck.py -l -r checkip.dyndns.org:8245 ...
+
+Usage  : ipcheck.py [options] Username Password Hostnames
+or       ipcheck.py [options] --acctfile acct_info_file 
+
+Options:  -a address     manually specify the address 
+          -b             backup mx option ON (default OFF) 
+          -c             custom dns option (default dynamic) 
+          -d dir         directory for data files (default current)
+          -e script      execute script after a successful update 
+          -f             force update regardless of current state 
+          -g             NAT router, let dyndns guess your IP 
+                         (do not use this in a cronjob, try -r) 
+          -h             print this help text 
+          --help         print all available help text 
+          -i interface   interface for local address (default ppp0) 
+          -l             log debugging text to ipcheck.log file 
+          --syslog       log debugging text to syslog (Unix only) 
+          -m mxhost      mx host to send if -b (default none) 
+          -o             set dyndns offline mode 
+          -p             proxy bypass on port 8245 
+          -q             quiet mode (unless there is an error) 
+          -r URL         NAT router, use web IP detection 
+          -s             static dns option (default dynamic) 
+          -t             test run, do not send the update 
+          -v             verbose mode 
+          -w             wildcard mode ON (default OFF) 
+          --makedat      create the ipcheck.dat file by dns lookup
+          --devices      print router options (Linksys, Netgear, etc)
+
+For help with different options: python ipcheck.py -h
+For supported devices listing  : python ipcheck.py --devices
+For long detailed help text    : python ipcheck.py --help
+
+
+The script will locate the address of your router automatically by 
+looking at the default route of the machine you are running on. 
+Then it will read the status page for the external IP address 
+and use that for updates.  You need to specify the admin password 
+with the appropriate option. 
+
+          -L password    Linksys (BEFSR41) NAT router password 
+          -N password    Netgear (RT311) NAT router password 
+          -D password    Draytek (Vigor2000) NAT router password 
+          -O password    Netopia (R9100) NAT router password 
+          -H password    HawkingTech router password 
+          -W password    Watchguard SOHO NAT firewall password 
+          -Y password    Cayman DSL 3220H NAT router password 
+
+You can change the default username for the above devices with: 
+
+          -U username    override default NAT router username 
+                         leave this option out to use the default 
+
+Devices that do not need a username: 
+
+          -X             Nexland router (no password set) 
+          -Z password    ZyXEL prestige router password 
+          -S             SMC Barricade (no password needed) 
+          -M password    Compex NetPassage 15 
+          -G             UgatePlus (no password needed) 
+          -7 password    DLink DI701 password 
+
+Cisco devices: 
+
+          -C password    Cisco (667i) DSL router password 
+          -I password    Cisco (700 series) ISDN router password 
+
+For Cisco IOS devices and any others that understand SNMP, you 
+can also use --snmp to detect the external IP. 
+
+          --snmp snmp_agent,community,numeric_objectid 
+
+You will need the pysnmp module from http://pysnmp.sourceforge.net/ 
+You also need to know the agent, community and numeric objectid: 
+python ipcheck.py --snmp 172.62.254.254,public,.1.3.5.2.1.2.10.2.5.4 ...
+where ... = username password hostnames 
+
+
+Start ipcheck.py with no arguments to get some quick examples.
+
+The script creates data files in the current working directory.
+Make sure you have write permission and that you run the script
+from the same directory each time.  You can use the -d option
+to specify an alternate directory for data files. 
+
+The first time you run the script, you will be asked to run
+with the --makedat option.  This will create the data files
+and complete the update.  You should only do this once.
+Subsequent runs should be made without the --makedat option.
+
+If -f is set, all hosts will be updated regardless of the 
+current error, wait or IP state.  You should never need this. 
+
+You can place your username password and hostnames in a file 
+(all on the first line) and use the --acctfile option if you do 
+not wish your password to show up on a ps. 
+
+The best way to run ipcheck is in the /etc/ppp/ip-up.local file 
+or the BSD ppp.linkup file (you will need to sleep 30 before 
+running the script since ppp.linkup runs before the link is up.) 
+The script will also run from a cronjob.  Just make sure the 
+hostnames are the same in each execution.  You should make sure
+it is using the same directory each time for data files.  The -d 
+option can be used to specify where data files go.
+
+The file ipcheck.dat contains the IP address and hostnames 
+used in the last update.  If the ipcheck.dat file is older 
+than 25 days, an update will be made to touch 
+the hostnames. 
+
+The file ipcheck.wait is created if dyndns requests a wait 
+before retrying.  This file will be automatically removed when 
+the wait is no longer in effect. 
+
+The file ipcheck.err is created if the response is an error. 
+It will not try to update again until this error is resolved. 
+You must remove the file yourself once the problem is fixed. 
+
+If your ISP has a badly behaved transparent proxy on port 80 
+traffic, you can try the -p option to use port 8245. 
+
+If a http message is sent to dyndns.org, the response will be 
+saved in the ipcheck.html file.
+
+Custom domains can be specified with the -c option.  You must 
+first complete the create database step on the Dyndns web page. 
+Suppose you have the domain ipcheck.org defined as an A record 
+and your nodes aliased to ipcheck.org with CNAME records.  Use: 
+python ipcheck.py -c username password ipcheck.org 
+
+Note that if you intended to maintain both a custom domain and 
+a dyndns domain (ie. ipcheck.dyndns.org) you should be using 
+the -d option to keep the data files in separate directories. 
+The custom domains are not compatible with the offline, mx, 
+backmx and wildcard options.  Setup your database accordingly. 
+
+The script can find your public IP address in one of several ways:
+
+1) interface IP detection is the default method and appropriate
+if the machine you are running on has an interface with the public
+IP addressed assigned.  The script knows how to query various 
+operating systems for the address of an interface specified 
+with the -i option (default ppp0).  Note on Win32 systems 
+specify the MAC address device after -i and on BeOS systems 
+specify the interface number after -i (eg. -i 1). 
+
+2) router IP detection is used if you have a routing device
+such as a Netgear RT311.  Use the --devices option to get a
+help on specific devices.  This method is used by the script
+if you specify one of the device-related options.
+
+3) web IP detection may be used if your device is not supported
+python ipcheck.py -r checkip.dyndns.org:8245 ... 
+where ... = username password hostnames 
+This method is used if you specify the -r option.
+IMPORTANT: Do not run web based IP detection more often 
+than once every 15 minutes.  It is costing dyndns bandwidth. 
+
+4) you can explicitly set the desired IP address with -a
+
+5) when -g is used, the script will not send any IP address
+at all (even ones detected by the previous options).  Only
+the account information will be sent to the dyndns server.
+The dyndns server will assign the hostnames to the source
+IP address of the request.  The assigned address is saved in
+the ipcheck.dat file.  IMPORTANT: Do not run this from a cronjob
+unless you know the address saved in the ipcheck.dat file 
+matches locally detected public IP to prevent unnecessary updates.
+
+If your have an unsupported device and are willing to help with
+some testing, email me. 
+
+The ipcheck homepage can be found at:
+http://ipcheck.sourceforge.net/
+
+Client development information can be found at:
+http://support.dyndns.org/dyndns/clients/devel/
+
+Please include the ipcheck.log file if you email me with a problem. 
+kal@users.sourceforge.net
+
+
+ + +
+kal@users.sourceforge.net +
+ + +ipcheck.py + + + + + + + + +
+

ipcheck.py homepage

+
+ + [Source Forge] + + + [dyndns] +
+

+ + + + + + + + + + + + + + + + + + + + + + + + + +
   
+ Download the latest release + + View the changelog +
   
+ + Mailing List + + +Low volume list for announcements about major releases. +
   
+ +Older Releases + + +Older releases directory. +
   
+ +

+

Introduction

+

+This is a simple Python script to register your dynamic IP address +using the NIC V2.0 protocol. +We aim to be fully compliant with the dyndns + +client specification. + +A big thank you to everyone that has contributed to this script +or sent along a note of encouragement. I try to keep organized +with who sent in what but if I've missed something in the +acknowledgements section of the script, please let me know. +

+We currently support all options and recommendations as of +June 12, 2001, including + +myDynDNS custom domains. +The script is very easy to use and supports multiple methods +for determining the external IP (parsing interfaces on the +local machine, + +web based IP detection, +direct support for devices from +Linksys, Netgear, Draytek, Netopia, HawkingTech, Watchgard, Cayman, +Nexland, ZyXEL, SMC, Compex, UgatePlus, DLink and Cisco). +

+Run the script with no command line arguments for quick start +instructions. + +

Documentation

+
 
 Make sure you can write to the current directory for data
 files and that you always run from the same directory.
--- ipcheck-0.233.orig/debian/control
+++ ipcheck-0.233/debian/control
@@ -0,0 +1,26 @@
+Source: ipcheck
+Section: net
+Priority: optional
+Maintainer: Mark Purcell 
+Build-Depends-Indep: debhelper (>> 3.0.0), python, help2man
+Standards-Version: 3.5.2
+
+Package: ipcheck
+Architecture: all
+Depends: python
+Description: Dyndns.org client to register your dynamic IP address
+ The Dynamic DNS service allows you to alias a dynamic IP address to a
+ static hostname, allowing your computer to be more easily accessed from
+ various locations on the Internet.
+ .
+ This is a simple Python script to register your dynamic IP address using 
+ the NIC V2.0 protocol. 
+ .
+ The script is very easy to use and supports multiple methods for determining 
+ the external IP (parsing interfaces on the local machine, web based IP 
+ detection, direct support for devices from Linksys, Netgear, Draytek, 
+ Netopia, HawkingTech, Watchgard, Cayman, Nexland, ZyXEL, SMC, Compex, 
+ UgatePlus, DLink and Cisco).  It also supports the dyndns offline mode. 
+ .
+ Starting with version 0.141 ipcheck uses https by default and will fall
+ back to http if a timeout occurs.
--- ipcheck-0.233.orig/debian/README.Debian
+++ ipcheck-0.233/debian/README.Debian
@@ -0,0 +1,22 @@
+ipcheck for Debian
+------------------
+
+This package provides an update service for the Free dynamic DNS hosting 
+service at dyndns.org.
+
+From: http://www.dyndns.org/dyndns/
+
+The Dynamic DNS service allows you to alias a dynamic IP address to a 
+static hostname, allowing your computer to be more easily accessed from 
+various locations on the Internet. We provide this service for free to the 
+Internet community as a whole.
+
+If you need help or support with the Dynamic DNS service, visit the Dynamic 
+DNS support section  of dyndns.org's 
+support website .
+
+A Dynamic DNS primer  has been written 
+by an outside party, and gives a pretty good, if somewhat technical, 
+explanation of dynamic DNS, what it is, and how it works. 
+
+ -- Mark Purcell , Wed, 25 Apr 2001 10:17:20 +1000
--- ipcheck-0.233.orig/debian/dirs
+++ ipcheck-0.233/debian/dirs
@@ -0,0 +1 @@
+usr/sbin
--- ipcheck-0.233.orig/debian/copyright
+++ ipcheck-0.233/debian/copyright
@@ -0,0 +1,20 @@
+This package was debianized by Mark Purcell  on
+Wed, 25 Apr 2001 10:17:20 +1000.
+
+It was downloaded from http://ipcheck.sourceforge.net/ipcheck.py
+
+Upstream Authors: Kal 
+
+Copyright:
+# Author  : Kal 
+
+# ipcheck.py
+#
+# Copyright GNU GENERAL PUBLIC LICENSE Version 2
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Author  : Kal 
+
+Released under the GNU General Public License, version 2
+or later, found on Debian GNU/Linux systems in the file
+/usr/share/common-licenses/GPL
--- ipcheck-0.233.orig/debian/changelog
+++ ipcheck-0.233/debian/changelog
@@ -0,0 +1,223 @@
+ipcheck (0.233-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "on python2.6: AttributeError: 'NoneType' object has no
+    attribute 'close'" (Closes: #587698, LP: #756657)
+
+ -- Miguel de Val Borro   Sun, 04 Dec 2011 15:57:08 +0100
+
+ipcheck (0.233-1) unstable; urgency=low
+
+  * New upstream release
+  * v0.226 Gene Cumm Barricade fixes and SSL check improvement
+    - Not using SSL (Closes: #353944)
+  * Refer to v0.141 in description not 1.4.1
+
+ -- Mark Purcell   Wed, 22 Feb 2006 17:51:33 +0000
+
+ipcheck (0.225-1) unstable; urgency=low
+
+  * New upstream release
+  * Closes: #231320: Major Security hole in ipcheck with SMC routers
+    7004ABR and 7004VBR
+  * Closes: #212976: Please reactivate SSL with Python 2
+  * Closes: #290184: Improper copyright file
+  * Update debian/copyright
+
+ -- Mark Purcell   Mon, 21 Feb 2005 08:27:43 +0000
+
+ipcheck (0.207-2) unstable; urgency=low
+
+  * Rebuild dpkg-dev != 1.10.11, Thanks mdz (Closes: Bug#212059)
+
+ -- Mark Purcell   Mon, 22 Sep 2003 21:03:12 +1000
+
+ipcheck (0.207-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Wed, 17 Sep 2003 23:19:58 +1000
+
+ipcheck (0.206-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Mon, 18 Aug 2003 21:22:30 +1000
+
+ipcheck (0.205-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sun,  6 Jul 2003 22:10:26 +1000
+
+ipcheck (0.202-1) unstable; urgency=low
+
+  * New upstream release
+  * Use wget -k option to fix relative links in index.html (Closes:
+    Bug#186883)
+  * Fixup dh_compress call - lintian
+  * lintian cleanup debian/copyright
+
+ -- Mark Purcell   Sun, 20 Apr 2003 23:08:16 +1000
+
+ipcheck (0.198-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sun, 29 Dec 2002 15:05:17 +1100
+
+ipcheck (0.196-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sun,  8 Dec 2002 21:16:39 +1100
+
+ipcheck (0.195-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sun, 10 Nov 2002 15:26:11 +1100
+
+ipcheck (0.187-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Thu,  3 Oct 2002 20:26:18 +1000
+
+ipcheck (0.185-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sun,  8 Sep 2002 21:59:55 +1000
+
+ipcheck (0.179-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sat, 27 Jul 2002 20:18:31 +1000
+
+ipcheck (0.177-1) unstable; urgency=low
+
+  * New upstream release (Closes: Bug#151778)
+
+ -- Mark Purcell   Wed,  3 Jul 2002 20:20:07 +1000
+
+ipcheck (0.174-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sat, 29 Jun 2002 03:21:09 +1000
+
+ipcheck (0.163-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Mon,  3 Jun 2002 19:32:14 +1000
+
+ipcheck (0.160-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Fri, 17 May 2002 20:06:02 +1000
+
+ipcheck (0.157-2) unstable; urgency=low
+
+  * lintian cleanup.  Provide man page ipcheck.py(8)
+
+ -- Mark Purcell   Sun,  7 Apr 2002 20:51:33 +1000
+
+ipcheck (0.157-1) unstable; urgency=medium
+
+  * New upstream release (Closes: Bug#141420)
+
+ -- Mark Purcell   Sat,  6 Apr 2002 12:26:10 +1000
+
+ipcheck (0.152-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sat,  9 Mar 2002 19:47:17 +1100
+
+ipcheck (0.151-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Mon, 18 Feb 2002 13:18:24 +1100
+
+ipcheck (0.146-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Wed,  2 Jan 2002 10:49:20 +1100
+
+ipcheck (0.141-1) unstable; urgency=low
+
+  * New upstream release (Closes: Bug#122296)
+
+ -- Mark Purcell   Tue,  4 Dec 2001 20:33:11 +1100
+
+ipcheck (0.134-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Thu, 15 Nov 2001 22:02:07 +1100
+
+ipcheck (0.133-1) unstable; urgency=low
+
+  * New upstream release
+  * Fix Depends for python policy changes. ipcheck is version independant program.
+
+ -- Mark Purcell   Sun,  4 Nov 2001 10:43:14 +1100
+
+ipcheck (0.132-2) unstable; urgency=low
+
+  * Update the `binary-indep' rule in debian/rules. 
+
+ -- Mark Purcell   Thu, 27 Sep 2001 21:19:48 +1000
+
+ipcheck (0.132-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Sat, 22 Sep 2001 23:46:01 +1000
+
+ipcheck (0.131-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mark Purcell   Fri, 31 Aug 2001 20:15:59 +1000
+
+ipcheck (0.124-3) unstable; urgency=low
+
+  * Remove doc-base files. 
+
+ -- Mark Purcell   Fri, 31 Aug 2001 17:07:21 +1000
+
+ipcheck (0.124-2) unstable; urgency=low
+
+  * Change to "Architecture: all"
+  * Update copyright to point to /usr/share/common-licenses/GPL
+  * Include changelog from http://ipcheck.sourceforge.net/changelog 
+  * Clean up recursive problems with 0.124 source package
+  * Comment out watch file which doesn't work
+  * Add get-orig-source target to debian/rules
+  * Thanks to Cyrille Chepelov - Closes: bug#109012
+
+ -- Mark Purcell   Sun, 26 Aug 2001 16:27:20 +1000
+
+ipcheck (0.124-1) unstable; urgency=low
+
+  * New Upstream Release 
+
+ -- Mark Purcell   Fri, 13 Jul 2001 23:31:24 +1000
+
+ipcheck (0.98-1) unstable; urgency=low
+
+  * Initial Release.
+  * Closes: bug#95209
+
+ -- Mark Purcell   Thu, 26 Apr 2001 00:52:03 +1000
+
+Local variables:
+mode: debian-changelog
+End:
--- ipcheck-0.233.orig/debian/rules
+++ ipcheck-0.233/debian/rules
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f 
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=3
+
+get-orig-source:
+	wget -nc http://ipcheck.sourceforge.net/changelog
+	wget -nc http://ipcheck.sourceforge.net/ipcheck.py
+	wget -nc http://ipcheck.sourceforge.net/
+	tar zcf ipcheck-`grep 'Version =' ipcheck.py | cut -d \" -f 2`.tar.gz changelog ipcheck.py index.html
+	#rm changelog ipcheck.py index.html
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp ipcheck.py.8
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/ipcheck.
+	#$(MAKE) install DESTDIR=$(CURDIR)/debian/ipcheck
+
+	install ipcheck.py $(CURDIR)/debian/ipcheck/usr/sbin/ipcheck
+
+	/usr/bin/help2man --name='dyndns.org client' --section=8 \
+		--source='Debian GNU/Linux' \
+		--output=ipcheck.8 \
+		--no-info --help-option='-h' -v '' \
+		$(CURDIR)/debian/ipcheck/usr/sbin/ipcheck
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs index.html
+	dh_installman ipcheck.8
+	dh_link /usr/sbin/ipcheck /usr/sbin/ipcheck.py
+	dh_link /usr/share/man/man8/ipcheck.8 /usr/share/man/man8/ipcheck.py.8
+	dh_installchangelogs changelog
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+binary-arch: build install
+	# Nothing to do..
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure