--- dlint-1.4.0.orig/debian/patches/00list +++ dlint-1.4.0/debian/patches/00list @@ -0,0 +1,2 @@ +10_sort-tail-deprecated-syntax +10_fix_old_urls --- dlint-1.4.0.orig/debian/patches/10_sort-tail-deprecated-syntax.dpatch +++ dlint-1.4.0/debian/patches/10_sort-tail-deprecated-syntax.dpatch @@ -0,0 +1,46 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_sort-tail-deprecated-syntax.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Do not use deprecated syntax of tail and sort. + +@DPATCH@ +diff -urNad dlint~/dlint dlint/dlint +--- dlint~/dlint 2004-08-23 21:27:50.000000000 +0200 ++++ dlint/dlint 2006-11-10 23:19:03.114445518 +0100 +@@ -304,7 +304,7 @@ + fi + # Re-order nameservers from highest SOA serial number to lowest. + # This also removes bogus nameservers from $TMPNS. +- sort +0nr $TMPSERIALS | awk '{print $2}' > $TMPNS ++ sort -k 1nr $TMPSERIALS | awk '{print $2}' > $TMPNS + rm -f $TMPSERIALS + fi + +@@ -318,7 +318,7 @@ + badns=true + while test $i -le `wc -l < $TMPNS`; do + badns=false +- ns=`tail +$i $TMPNS | head -1` ++ ns=`tail -n +$i $TMPNS | head -1` + echo ";; trying nameserver $ns" + #echo "XX @$ns $domain AXFR" + dig @$ns $domain AXFR $digopts 2> $TMPERR | $rrfilt > $TMPZONE +@@ -392,7 +392,7 @@ + fi + while test $i -lt $len; do + i=`expr $i + 1` +- set `tail +$i $TMPPTR | head -1` ++ set `tail -n +$i $TMPPTR | head -1` + inaddr=$1 host=$3 + # if not 4 numeric octets, assume it's a network address. + num=`echo $inaddr | tr . '\012' | awk '{r++} /^in-addr$/ {print r - 1}'` +@@ -473,7 +473,7 @@ + fi + while test $i -lt $len; do + i=`expr $i + 1` +- set `tail +$i $TMPA | head -1` ++ set `tail -n +$i $TMPA | head -1` + host=$1 addr=$3 + inaddr=`echo $addr | awk -F. '{print $4 "." $3 "." $2 "." $1 ".in-addr.arpa."}'` + #echo "XX $inaddr PTR" --- dlint-1.4.0.orig/debian/patches/10_fix_old_urls.dpatch +++ dlint-1.4.0/debian/patches/10_fix_old_urls.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_fix_old_urls.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Removes/corrects old URLs + +@DPATCH@ +diff -urNad dlint~/README dlint/README +--- dlint~/README 2004-08-23 21:27:50.000000000 +0200 ++++ dlint/README 2007-02-10 00:36:10.374739304 +0100 +@@ -27,7 +27,7 @@ + + Dlint is also available on the Internet from your web browser: + +- http://www.domtools.com/dlint/ ++ http://www.domtools.com/ + + (this server imposes a timeout period; to lint a big zone, you should + install dlint yourself and use it locally - that's what this package is for). +@@ -166,7 +166,7 @@ + + The latest version of Dlint can be found at the master site: + +- http://www.domtools.com/dns/dlint.shtml ++ http://www.domtools.com/ + + -- + Paul Balyoz, Unix Sysadmin and Programmer +diff -urNad dlint~/dlint.1 dlint/dlint.1 +--- dlint~/dlint.1 2004-08-23 21:27:50.000000000 +0200 ++++ dlint/dlint.1 2007-02-10 00:37:02.116760376 +0100 +@@ -85,7 +85,7 @@ + .SH AUTHOR + Paul Balyoz + .SH DISTRIBUTION +-http://www.domtools.com/dns/dlint.shtml ++http://www.domtools.com/ + .SH COPYRIGHT + Copyright (C) 1993-1998 Paul A. Balyoz + .LP --- dlint-1.4.0.orig/debian/copyright +++ dlint-1.4.0/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Florian Hinzmann fh@debian.org on +Mon, 20 Jul 1998 23:38:52 +0200. + +Its actual homepage is http://www.domtools.com/ +Upstream author is Paul Balyoz + +Copyright: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + A copy of the GNU General Public License can be found at + /usr/share/common-licenses/GPL or ordered from + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA --- dlint-1.4.0.orig/debian/dirs +++ dlint-1.4.0/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/dlint +usr/share/man/man1 --- dlint-1.4.0.orig/debian/rules +++ dlint-1.4.0/debian/rules @@ -0,0 +1,90 @@ +#!/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 + +include /usr/share/dpatch/dpatch.make + + +configure: configure-stamp +configure-stamp: patch + 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. + #$(MAKE) + #/usr/bin/docbook-to-man debian/dlint.sgml > dlint.1 + + touch build-stamp + +clean: unpatch clean-unpatched + +clean-unpatched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/dlint + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installman dlint.1 + dh_installinfo +# dh_undocumented + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +# Build architecture-dependent files here. +binary-arch: build install + + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- dlint-1.4.0.orig/debian/compat +++ dlint-1.4.0/debian/compat @@ -0,0 +1 @@ +5 \ No newline at end of file --- dlint-1.4.0.orig/debian/control +++ dlint-1.4.0/debian/control @@ -0,0 +1,20 @@ +Source: dlint +Section: net +Priority: extra +Maintainer: Florian Hinzmann +Standards-Version: 3.7.2 +Build-Depends: dpatch, debhelper (>= 5) + +Package: dlint +Architecture: all +Depends: ${perl:Depends}, dnsutils +Description: Checks dns zone information using nameserver lookups + This program analyzes any DNS zone you specify, and reports any problems it + finds by displaying errors and warnings. Then it descends recursively to + examine all zones below the given one (this can be disabled with a command- + line option). + . + You don't have to feed any BIND conffiles to Dlint. Dlint uses + nameserver calls to gather information. + . + Designed for Unix, dlint is written in Bourne Shell and Perl. --- dlint-1.4.0.orig/debian/docs +++ dlint-1.4.0/debian/docs @@ -0,0 +1 @@ +BUGS README TESTCASES --- dlint-1.4.0.orig/debian/changelog +++ dlint-1.4.0/debian/changelog @@ -0,0 +1,150 @@ +dlint (1.4.0-7) unstable; urgency=medium + + * Large parts of upstream website has vanished. Correct respectively remove + URLs accordingly from README file, manual file and package description + (Closes: #406153). + + -- Florian Hinzmann Sat, 10 Feb 2007 00:30:24 +0100 + +dlint (1.4.0-6) unstable; urgency=low + + * Updates calls to tail and sort to use new syntax and avoid deprecation + warnings (Closes: #396959). + * Started using dpatch for this fix. + + -- Florian Hinzmann Fri, 10 Nov 2006 22:56:59 +0100 + +dlint (1.4.0-5) unstable; urgency=low + + * Add watch file. + * Acknowledge NMU, thanks. + * Switch to dephelper compatibility level 5. + * Bump standards version to 3.7.2 (no changes necessary). + + -- Florian Hinzmann Wed, 1 Nov 2006 23:24:30 +0100 + +dlint (1.4.0-4.1) unstable; urgency=low + + [ Thijs Kinkhorst ] + * Non-Maintainer Upload + + * Finish the /usr/doc transition (Closes: #322782). + * Change Build-Depends-Indep on debhelper to Build-Depends. + * Remove obsolete README.Debian about non-US. + * Update FSF address in copyright. + + [ Amaya Rodrigo Sastre ] + * Upload + + -- Amaya Rodrigo Sastre Sat, 17 Jun 2006 21:15:32 +0200 + +dlint (1.4.0-4) unstable; urgency=low + + * Moved from non-US to US main. + + -- Florian Hinzmann Wed, 27 Mar 2002 09:04:12 +0100 + +dlint (1.4.0-3) unstable; urgency=high + + * High urgency because this upload fixes a serious bug and + dlint is considered a standard package because it is part + of the task "dns-server". + * Moved dlint to non-US temporarily, closes: bug#123637. + * Changed "Build-Depends" to "Build-Depends-Indep", this + was an lintian error. + * Corrected wrong path to GPL in file debian/copyright, + closes: bug#126930. + * Added filename of manpage as an argument to dh_installman. + It worked without before, but now dh_installman needs this. + + -- Florian Hinzmann Wed, 10 Jan 2002 09:04:11 +0100 + +dlint (1.4.0-2) unstable; urgency=low + + * Added versioned Build-Depends for debhelper according + to perl policy version 1.17. + + -- Florian Hinzmann Fri, 23 Feb 2001 12:25:18 +0100 + +dlint (1.4.0-1) unstable; urgency=low + + * New upstream version. + + -- Florian Hinzmann Sat, 2 Dec 2000 19:09:53 +0100 + +dlint (1.3.4-3) unstable; urgency=low + + * Moved Build-Depends to source section of control file. + + -- Florian Hinzmann Tue, 19 Sep 2000 17:11:55 +0200 + +dlint (1.3.4-2) unstable; urgency=low + + * Uses dh_perl to fill dependancies in control file. + * Inserted Build-Depends. + * Moved help script from lib to share as it is arch independant. + + -- Florian Hinzmann Fri, 11 Aug 2000 17:41:54 +0200 + +dlint (1.3.4-1) unstable; urgency=low + + * New upstream release. + * Patch for safe creation of tempfiles is included. (closes: Bug#58555) + + -- Florian Hinzmann Sun, 6 Aug 2000 12:32:57 +0200 + +dlint (1.3.3-3) unstable; urgency=low + + * DLint was not present in unstable (aka woody). + 1.3.3-3 includes no changes to 1.3.3-2, I just do this upload + to have dlint in woody again. (closes: Bug#61063) + + -- Florian Hinzmann Mon, 27 Mar 2000 10:05:29 +0200 + +dlint (1.3.3-2) frozen; urgency=low + + * Non maintainer upload with permission of maintainer. + * Applied patch from the BTS to unsafe temp files (closes: #58555). + + -- Christian Kurz Sat, 4 Mar 2000 22:06:18 +0100 + +dlint (1.3.3-1) unstable; urgency=low + + * New upstream release. + + -- Florian Hinzmann Tue, 19 Oct 1999 13:47:23 +0200 + +dlint (1.3.2-3) unstable; urgency=low + + * Dlint depends on perl5 now. + + -- Florian Hinzmann Tue, 19 Oct 1999 13:45:48 +0200 + +dlint (1.3.2-2) unstable; urgency=low + + * Bugfix: There were quotes missing at the end of a line. + + -- Florian Hinzmann Mon, 5 Jul 1999 08:52:44 +0200 + +dlint (1.3.2-1) unstable; urgency=low + + * New upstream release. + + -- Florian Hinzmann Mon, 19 Oct 1998 12:14:21 +0200 + +dlint (1.3.1-2) unstable; urgency=low + + * digparse is installed in /usr/lib/dlint instead of /usr/bin as it + is not to be called by user. + * Corrected FSF address (fixes Lintian error). + * Upstream changelog is now named changelog.gz (fixes Lintian warning). + * Added missing .gz to /usr/doc/dlint/README (#25051). + * Binaries and manpages are in /usr instead of /usr/X11R6 now (#25423). + + -- Florian Hinzmann Fri, 14 Aug 1998 16:32:08 +0200 + +dlint (1.3.1-1) unstable; urgency=low + + * Initial Release. + + -- Florian Hinzmann Mon, 20 Jul 1998 23:38:52 +0200 --- dlint-1.4.0.orig/debian/watch +++ dlint-1.4.0/debian/watch @@ -0,0 +1,18 @@ +# format version number, currently 2; this line is compulsory! +version=2 + +# Line continuations are performed with \ + +# This the format for an FTP site: +# Full-site-with-pattern [Version [Action]] + +# This is one format for an HTTP site, which is the same +# as the FTP format +#http://www.domtools.com/pub/dlint([0-9\.]+)\.tar\.gz \ +# debian + + +# This is a variant HTTP format with more possibilities: +# Homepage Pattern [Version [Action]] +http://domtools.com/ .*dlint([0-9\.]+)\.tar\.gz \ + debian --- dlint-1.4.0.orig/dlint +++ dlint-1.4.0/dlint @@ -65,19 +65,19 @@ # RR filter from DiG output format to all FQDN on every line format. # Change this path for your site! See Makefile. -rrfilt="/usr/local/bin/digparse" +rrfilt="/usr/share/dlint/digparse" # ------------- END CONFIGURATIONS ------------------------- -TMPNS=/var/tmp/dlintns.$$ -TMPZONE=/var/tmp/dlintzone.$$ -TMPPTR=/var/tmp/dlintptr.$$ -TMPA=/var/tmp/dlinta.$$ -TMPSUBDOMS=/var/tmp/dlintsubdoms.$$ -TMPERR=/var/tmp/dlinterr.$$ -TMPERR2=/var/tmp/dlinterr2.$$ -TMPSERIALS=/var/tmp/dlintserials.$$ +TMPNS=`tempfile --prefix=dlintns` +TMPZONE=`tempfile --prefix=dlintzone` +TMPPTR=`tempfile --prefix=dlintptr` +TMPA=`tempfile --prefix=dlinta` +TMPSUBDOMS=`tempfile --prefix=dlintsubdoms` +TMPERR=`tempfile --prefix=dlinterr` +TMPERR2=`tempfile --prefix=dlinterr2` +TMPSERIALS=`tempfile --prefix=dlintserials` trap "rm -f $TMPNS $TMPZONE $TMPPTR $TMPA $TMPSUBDOMS $TMPERR $TMPERR2; exit 4" 1 2 3 15 --- dlint-1.4.0.orig/Makefile +++ dlint-1.4.0/Makefile @@ -5,9 +5,12 @@ VERSION=1.4.0 # Basic area to install things in: -DEST=$(DESTROOT)/usr/local +#DEST=$(DESTROOT)/usr/local +# Path is provided in $(DESTDIR) from debian/rules +DEST=$(DESTDIR)/usr BIN=$(DEST)/bin +SHARE=$(DEST)/share/dlint MANEXT=1 MAN=$(DEST)/man/man$(MANEXT) @@ -21,8 +24,9 @@ install: $(INSTALL) -c -m 755 -o bin -g bin dlint $(BIN) - $(INSTALL) -c -m 755 -o bin -g bin digparse $(BIN) - $(INSTALL) -c -m 644 -o bin -g bin dlint.1 $(MAN)/dlint.$(MANEXT) + $(INSTALL) -c -m 755 -o bin -g bin digparse $(SHARE) + #manual page is installed by dh_installmanpages + #$(INSTALL) -c -m 644 -o bin -g bin dlint.1 $(MAN)/dlint.$(MANEXT) clean: -rm -f *.shar core