nslint (3.0a2-1.1) debian-dir only changes

Summary

 debian/README.source                           |    1 
 debian/changelog                               |  144 +++++++++++++++++++++++++
 debian/compat                                  |    1 
 debian/control                                 |   17 ++
 debian/copyright                               |   29 +++++
 debian/dirs                                    |    3 
 debian/docs                                    |    1 
 debian/patches/10-fix-install-mode.patch       |   16 ++
 debian/patches/11-fix-missing-include.patch    |   15 ++
 debian/patches/12-fix-missing-prototypes.patch |   20 +++
 debian/patches/30-fix-config-path.patch        |   15 ++
 debian/patches/35-fix-nsl-linkage.patch        |   92 +++++++++++++++
 debian/patches/series                          |    5 
 debian/prerm                                   |   11 +
 debian/rules                                   |   94 ++++++++++++++++
 debian/watch                                   |    2 
 16 files changed, 466 insertions(+)

    
download this patch

Patch contents

--- nslint-3.0a2.orig/debian/prerm
+++ nslint-3.0a2/debian/prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+PACKAGE=nslint
+
+# on upgrade and removal, remove /usr/doc/$PACKAGE link if it exists
+if ( [ "$1" = "upgrade" ] || [  "$1" = "remove" ] ) \
+    && [ -L /usr/doc/$PACKAGE ]; then
+        rm -f /usr/doc/$PACKAGE
+fi
+#DEBHELPER#
--- nslint-3.0a2.orig/debian/changelog
+++ nslint-3.0a2/debian/changelog
@@ -0,0 +1,144 @@
+nslint (3.0a2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed bug involving -wl needing to be -Wl. (Closes: #625177) 
+
+ -- Noah Swartz <swartzcr@media.mit.edu>  Sun, 21 Aug 2011 18:55:07 -0400
+
+nslint (3.0a2-1) unstable; urgency=low
+
+  * new upstream version
+    - add IPv6 support (closes: #535913)
+  * update description (closes: #521671)
+  * use upstreams install-sh now that upstream ships a sane version
+
+ -- Sven Mueller <sven@debian.org>  Thu, 22 Oct 2009 18:27:49 +0200
+
+nslint (2.1a9-1) unstable; urgency=low
+
+  * new upstream version 
+  * remove upstreams broken install-sh link on clean and also before configure
+    so that our copy (install.sh) is used
+
+ -- Sven Mueller <sven@debian.org>  Mon, 13 Oct 2008 14:01:18 +0200
+
+nslint (2.1a8-2) unstable; urgency=low
+
+  * Upgrade policy
+  * fix patches to work with new 3.0 (quilt) source format (Closes: #485351) 
+
+ -- Sven Mueller <sven@debian.org>  Tue, 22 Jul 2008 17:54:36 +0200
+
+nslint (2.1a8-1) unstable; urgency=low
+
+  * new upstream version 2.1a8
+  * move from dpatch to quilt
+
+ -- Sven Mueller <sven@debian.org>  Thu,  6 Mar 2008 15:42:37 +0100
+
+nslint (2.1a6-6) unstable; urgency=low
+
+  * Set section on nslint binary package
+  * move packaging to debhelper. The old version is more and more
+    unmaintainable for me. This also adds md5sums to the .deb.
+
+ -- Sven Mueller <sven@debian.org>  Fri, 17 Aug 2007 17:36:25 +0200
+
+nslint (2.1a6-5) unstable; urgency=low
+
+  * Handle nostrip option in DEB_BUILD_OPTIONS correctly (closes: #437644)
+  * Update autotools files config.guess and config.sub
+
+ -- Sven Mueller <sven@debian.org>  Mon, 13 Aug 2007 16:19:27 +0200
+
+nslint (2.1a6-4) unstable; urgency=low
+
+  * Fix nslint executable permissions
+  * Fix nslint.8.gz manpage permissions
+  * Correct email address in changelog
+  * Update standards version
+  * Update config.{sub,guess}
+
+ -- Sven Mueller <sven@debian.org>  Fri, 27 Oct 2006 16:38:08 +0200
+
+nslint (2.1a6-3) unstable; urgency=low
+
+  * Call /usr/bin/test explicitly where the matching "dash" built-in works
+    differently. (Closes: #373242)
+  * depend on autotools-dev and cleanup config.guess, config.sub in clean
+    target. (This would also eliminate/hide the above bug)
+  * update to current policy version
+
+ -- Sven Mueller <debian@incase.de>  Wed, 14 Jun 2006 18:44:52 +0200
+
+nslint (2.1a6-2) unstable; urgency=low
+
+  * Use /etc/bind/named.conf by default if it exists (Closes: #372584)
+  * Switch maintainer address to sven@debian.org
+
+ -- Sven Mueller <sven@debian.org>  Tue, 13 Jun 2006 14:12:03 +0200
+
+nslint (2.1a6-1) unstable; urgency=low
+
+  * New upstream version 
+
+ -- Sven Mueller <debian@incase.de>  Tue, 25 Apr 2006 15:22:31 +0200
+
+nslint (2.1a3-6) unstable; urgency=low
+
+  * Comment /usr/doc/$PACKAGE removal and make the condition a bit easier to
+    read (at least for me). This also removes a bash'ism.
+  * Update policy version to current 3.6.2.2 
+
+ -- Sven Mueller <debian@incase.de>  Thu, 23 Mar 2006 22:18:51 +0100
+
+nslint (2.1a3-5) unstable; urgency=low
+
+  * Fix Build-Depends
+
+ -- Sven Mueller <debian@incase.de>  Thu,  8 Sep 2005 18:51:53 +0200
+
+nslint (2.1a3-4) unstable; urgency=low
+
+  * update uscan watch file
+  * Move the applied patches to use dpatch (not many of them right now, but I
+    want to be prepared for necessary updates.
+
+ -- Sven Mueller <debian@incase.de>  Tue,  5 Jul 2005 14:57:53 +0200
+
+nslint (2.1a3-2) unstable; urgency=low
+
+  * Remove postinst script. It used to set a /usr/doc/$PACKAGE link,
+    which isn't needed and caused a lintian warning
+  * Add a debian/watch file
+
+ -- Sven Mueller <debian@incase.de>  Sun, 21 Nov 2004 23:23:03 +0100
+
+nslint (2.1a3-1) unstable; urgency=low
+
+  * New upstream version (closes: #163987)
+  * New upstream supports bind9 TTL format (closes:#158925)
+  * Update config.guess/config.sub
+  * New package maintainer after consulting original maintainer
+
+ -- Sven Mueller <debian@incase.de>  Wed, 10 Nov 2004 12:38:35 +0100
+
+nslint (2.0.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Add section and priority fields in the deb.
+  * Made sure to install files with the right mode.
+  * Rewrite debian/rules to get rid of debstd (yuck!)
+  * Upgrade policy from 2.4.0 to 3.2.1: FHS, build-deps (none), 
+    /usr/doc compability
+  * Use /etc/bind/named.conf, closes: #75981.
+
+ -- Tommi Virtanen <tv@debian.org>  Wed,  1 Nov 2000 01:01:16 +0200
+
+nslint (2.0a5-1) unstable; urgency=low
+
+  * Changed install -m modes from 555 and 444 to 755 and 644.
+  * Initial Release.
+
+ -- Tommi Virtanen <tv@debian.org>  Sat, 16 May 1998 10:08:31 +0300
+
--- nslint-3.0a2.orig/debian/rules
+++ nslint-3.0a2/debian/rules
@@ -0,0 +1,94 @@
+#!/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.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+include /usr/share/quilt/quilt.make
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+DOCDIR:=`pwd`/debian/nslint/usr/share/doc/$(PACKAGE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: $(QUILT_STAMPFN) configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	test -e debian/control
+	/usr/bin/test config.guess -nt /usr/share/misc/config.guess || cp /usr/share/misc/config.guess .
+	/usr/bin/test config.sub -nt /usr/share/misc/config.sub || cp /usr/share/misc/config.sub .
+	if [ ! -x install-sh ]; then chmod +x install-sh ; fi
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp:  configure-stamp
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch $@
+
+clean: clean-patched unpatch
+	-rmdir debian/patched > /dev/null 2>&1 || true
+
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	-rm -f config.cache gnuc.h
+	-rm -f config.guess config.sub
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/nslint.
+	$(MAKE) install \
+		prefix="`pwd`/debian/nslint/usr" \
+		MANDEST="`pwd`/debian/nslint/usr/share/man"
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGES
+	dh_installdocs README
+	dh_install
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- nslint-3.0a2.orig/debian/control
+++ nslint-3.0a2/debian/control
@@ -0,0 +1,17 @@
+Source: nslint
+Section: net
+Priority: optional
+Maintainer: Sven Mueller <sven@debian.org>
+Build-Depends: debhelper (>= 5), quilt (>= 0.40), autotools-dev
+Standards-Version: 3.8.3
+
+Package: nslint
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: bind
+Description: Lint for DNS files, checks integrity
+ Nslint reads the nameserver configuration files and performs a 
+ number of consistency checks on the DNS records.
+ .
+ Nslint understands both ancient style named.boot and BIND 8's 
+ named.conf files (which are also used by BIND 9).
--- nslint-3.0a2.orig/debian/docs
+++ nslint-3.0a2/debian/docs
@@ -0,0 +1 @@
+README
--- nslint-3.0a2.orig/debian/watch
+++ nslint-3.0a2/debian/watch
@@ -0,0 +1,2 @@
+version=2
+ftp://ftp.ee.lbl.gov/nslint-?_?([\w+\d+\.]+|\d+)\.tar\.gz debian uupdate
--- nslint-3.0a2.orig/debian/compat
+++ nslint-3.0a2/debian/compat
@@ -0,0 +1 @@
+5
--- nslint-3.0a2.orig/debian/README.source
+++ nslint-3.0a2/debian/README.source
@@ -0,0 +1 @@
+Please refer to /usr/share/doc/quilt/README.source
--- nslint-3.0a2.orig/debian/dirs
+++ nslint-3.0a2/debian/dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/doc
+usr/share/man/man8
--- nslint-3.0a2.orig/debian/copyright
+++ nslint-3.0a2/debian/copyright
@@ -0,0 +1,29 @@
+This package was first debianized by Tommi Virtanen tv@debian.org on
+Sat, 16 May 1998 10:08:31 +0300.
+As of version 2.1a3, Sven Mueller debian@incase.de took over maintenance on
+Wed, 10 Nov 2004 12:38:35 +0100.
+
+It was downloaded from ftp://ftp.ee.lbl.gov/nslint-2.1a3.tar.gz
+
+Copyright:
+
+/*
+ * Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ *      The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that: (1) source code distributions
+ * retain the above copyright notice and this paragraph in its entirety, (2)
+ * distributions including binary code include the above copyright notice and
+ * this paragraph in its entirety in the documentation or other materials
+ * provided with the distribution, and (3) all advertising materials mentioning
+ * features or use of this software display the following acknowledgement:
+ * ``This product includes software developed by the University of California,
+ * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
+ * the University nor the names of its contributors may be used to endorse
+ * or promote products derived from this software without specific prior
+ * written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
--- nslint-3.0a2.orig/debian/patches/12-fix-missing-prototypes.patch
+++ nslint-3.0a2/debian/patches/12-fix-missing-prototypes.patch
@@ -0,0 +1,20 @@
+--- a/nslint.c.orig
++++ b/nslint.c
+@@ -185,7 +185,7 @@
+ void	process(const char *, const char *, const char *);
+ int	rfc1034host(const char *, int);
+ int	updateitem(const char *, u_int32_t, int, u_int, int);
+-__dead	void usage(void) __attribute__((volatile));
++void	usage(void);
+ 
+ extern	char *optarg;
+ extern	int optind, opterr;
+@@ -2443,7 +2443,7 @@
+ 	return (cp);
+ }
+ 
+-__dead void
++void
+ usage(void)
+ {
+ 	extern char version[];
--- nslint-3.0a2.orig/debian/patches/35-fix-nsl-linkage.patch
+++ nslint-3.0a2/debian/patches/35-fix-nsl-linkage.patch
@@ -0,0 +1,92 @@
+Fix unwanted linkage to libnsl
+==============================
+--- trunk.orig/configure.in
++++ trunk/configure.in
+@@ -23,7 +23,7 @@
+ AC_CHECK_HEADERS(fcntl.h memory.h)
+ 
+ AC_REPLACE_FUNCS(strerror)
+-AC_CHECK_LIB(nsl, main)
++dnl AC_CHECK_LIB(nsl, main)
+ AC_CHECK_LIB(socket, main)
+ 
+ AC_LBL_CHECK_TYPE(int32_t, int)
+--- trunk.orig/configure
++++ trunk/configure
+@@ -5427,76 +5427,6 @@
+ done
+ 
+ 
+-
+-{ $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
+-$as_echo_n "checking for main in -lnsl... " >&6; }
+-if test "${ac_cv_lib_nsl_main+set}" = set; then
+-  $as_echo_n "(cached) " >&6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lnsl  $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h.  */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h.  */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (ac_try="$ac_link"
+-case "(($ac_try" in
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+-  *) ac_try_echo=$ac_try;;
+-esac
+-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+-$as_echo "$ac_try_echo") >&5
+-  (eval "$ac_link") 2>conftest.er1
+-  ac_status=$?
+-  grep -v '^ *+' conftest.er1 >conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err >&5
+-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); } && {
+-	 test -z "$ac_c_werror_flag" ||
+-	 test ! -s conftest.err
+-       } && test -s conftest$ac_exeext && {
+-	 test "$cross_compiling" = yes ||
+-	 $as_test_x conftest$ac_exeext
+-       }; then
+-  ac_cv_lib_nsl_main=yes
+-else
+-  $as_echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-	ac_cv_lib_nsl_main=no
+-fi
+-
+-rm -rf conftest.dSYM
+-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+-      conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
+-$as_echo "$ac_cv_lib_nsl_main" >&6; }
+-if test $ac_cv_lib_nsl_main = yes; then
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBNSL 1
+-_ACEOF
+-
+-  LIBS="-lnsl $LIBS"
+-
+-fi
+-
+-
+ { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
+ $as_echo_n "checking for main in -lsocket... " >&6; }
+ if test "${ac_cv_lib_socket_main+set}" = set; then
--- nslint-3.0a2.orig/debian/patches/10-fix-install-mode.patch
+++ nslint-3.0a2/debian/patches/10-fix-install-mode.patch
@@ -0,0 +1,16 @@
+Fix installation mode for installed files (allow owner to write file)
+=====================================================================
+--- trunk.orig/Makefile.in
++++ trunk/Makefile.in
+@@ -96,9 +96,9 @@
+ 	sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
+ 
+ install: force
+-	$(INSTALL) -m 555 -o bin -g bin $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
++	$(INSTALL) -m 755 -o bin -g bin $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
+ 	@diff $(srcdir)/$(PROG).8 $(DESTDIR)$(MANDEST)/man8 >/dev/null 2>&1 || \
+-		$(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).8 $(DESTDIR)$(MANDEST)/man8/
++		$(INSTALL) -m 644 -o bin -g bin $(srcdir)/$(PROG).8 $(DESTDIR)$(MANDEST)/man8/
+ 
+ clean: force
+ 	rm -f $(CLEANFILES)
--- nslint-3.0a2.orig/debian/patches/30-fix-config-path.patch
+++ nslint-3.0a2/debian/patches/30-fix-config-path.patch
@@ -0,0 +1,15 @@
+Fix path of main config file
+============================
+--- a/nslint.c.orig
++++ b/nslint.c
+@@ -191,8 +191,8 @@
+ char	*bootfile = "/etc/namedb/named.boot";
+ char	*conffile = "/etc/namedb/named.conf";
+ #else
+-char	*bootfile = "/etc/named.boot";
+-char	*conffile = "/etc/named.conf";
++char	*bootfile = "/etc/bind/named.boot";
++char	*conffile = "/etc/bind/named.conf";
+ #endif
+ char	*nslintboot;
+ char	*nslintconf;
--- nslint-3.0a2.orig/debian/patches/11-fix-missing-include.patch
+++ nslint-3.0a2/debian/patches/11-fix-missing-include.patch
@@ -0,0 +1,15 @@
+--- a/savestr.c.orig
++++ b/savestr.c
+@@ -28,7 +28,12 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#ifdef HAVE_STRING_H
+ #include <string.h>
++#endif
++#ifdef HAVE_STRINGS_H
++#include <strings.h>
++#endif
+ 
+ #include "gnuc.h"
+ #ifdef HAVE_OS_PROTO_H
--- nslint-3.0a2.orig/debian/patches/series
+++ nslint-3.0a2/debian/patches/series
@@ -0,0 +1,5 @@
+10-fix-install-mode.patch
+#11-fix-missing-include.patch
+#12-fix-missing-prototypes.patch
+30-fix-config-path.patch
+35-fix-nsl-linkage.patch