--- netkit-tftp-0.17.orig/debian/rules
+++ netkit-tftp-0.17/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# GNU copyright 1997 to 1999 by Joey Hess.
+# Copyright (c) 1999 Herbert Xu <herbert@debian.org>.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+#export DH_COMPAT=2
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ if [ ! -f MCONFIG ]; then \
+ ./configure; \
+ fi
+ $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+
+ [ ! -f MCONFIG ] || $(MAKE) distclean
+
+ dh_clean
+
+install: DH_OPTIONS=
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) -C tftp install INSTALLROOT=`pwd`/debian/tftp \
+ MANDIR='/usr/share/man'
+ $(MAKE) -C tftpd install INSTALLROOT=`pwd`/debian/tftpd \
+ MANDIR='/usr/share/man'
+
+ touch install-stamp
+
+# This single target is used to build all the packages, all at once, or
+# one at a time. So keep in mind: any options passed to commands here will
+# affect _all_ packages. Anything you want to only affect one package
+# should be put in another target, such as the install target.
+binary-common: build install
+ # Need this version of debhelper for DH_OPTIONS to work.
+ #deprecated#dh_testversion 1.1.17
+ dh_testdir
+ dh_testroot
+# dh_installdebconf
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installemacsen
+# dh_installpam
+# dh_installinit
+ dh_installcron
+ dh_installinfo
+# dh_undocumented
+ dh_installchangelogs ChangeLog
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ # You may want to make some executables suid here.
+# dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep:
+# (Uncomment this next line if you have such packages.)
+# $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch:
+ $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Any other binary targets build just one binary package at a time.
+binary-%:
+ make -f debian/rules binary-common DH_OPTIONS=-p$*
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- netkit-tftp-0.17.orig/debian/tftp.docs
+++ netkit-tftp-0.17/debian/tftp.docs
@@ -0,0 +1 @@
+BUGS
--- netkit-tftp-0.17.orig/debian/README.Debian
+++ netkit-tftp-0.17/debian/README.Debian
@@ -0,0 +1,8 @@
+tftpd for Debian
+----------------
+
+Please note that the default tftp directory is set to /boot by default in
+inetd.conf.
+
+Herbert Xu, <herbert@debian.org>
+$Id: README.Debian,v 1.1 2001/12/01 10:40:08 herbert Exp $
--- netkit-tftp-0.17.orig/debian/tftpd.docs
+++ netkit-tftp-0.17/debian/tftpd.docs
@@ -0,0 +1 @@
+README
--- netkit-tftp-0.17.orig/debian/changelog
+++ netkit-tftp-0.17/debian/changelog
@@ -0,0 +1,158 @@
+netkit-tftp (0.17-18) unstable; urgency=low
+
+ * debian/control: added ${misc:Depends} to binary packages
+ * debian/compat: moved to 7
+ * Add IPv6 support, once again thanks to Mats Erik Andersson.
+ (Closes: #536509)
+ * Patch from Ubuntu (Closes: #494309), thanks Stefan Lesicnik:
+ - Return ENOTFOUND instead of EUNDEF for files that do not exist
+ - Adds debian/watch file (even when they won't happen...)
+ - debian/rules: Removes sed which adds -g (debug) option to gcc
+ * Removed '-s' from install calls in Makefiles and added dh_strip.
+ (Closes: #437617)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Fri, 24 Sep 2010 18:05:54 +0200
+
+netkit-tftp (0.17-17) unstable; urgency=low
+
+ * Require hostname for connection name (Closes: #375365)
+ Thanks Michael Welle for the patch.
+ * Don't reset the socket before sending last ACK. (Closes: #351403)
+ Thanks Michael Welle for the patch.
+ * Don't ignore make clean errors to make lintian happy.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Tue, 30 Dec 2008 15:03:15 +0100
+
+netkit-tftp (0.17-16) unstable; urgency=high
+
+ * tftpd.c: Fixed security bug that made tftpd serve files from
+ the filesystem root directory when the tftpd root directory
+ was wrongly specified. Thanks Tomasz Nowiński for finding this
+ out.
+ * tftpd.c: Return 1 (File Not Found) instead of 0 (Not defined) to conform
+ to TFTP RFC.
+ * Revert patch that allowed uploading NEW files to the server.
+ Behaving just like the man page states (Closes: #335200)
+ * Bumped Standards-Version to 3.8.0.0, no change.
+ * Removed debian/tftpd.prerm, no need for it.
+ * Removed inetd entry on package removal (Closes: #351867)
+ * Replaced netbase Depends with openbsd-inetd | inet-superserver.
+ (Closes: #401888)
+ * Mention in package description that tftpd is not suitable for PXE
+ booting. (Closes: #401288)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Tue, 05 Aug 2008 13:15:15 +0200
+
+netkit-tftp (0.17-15) unstable; urgency=low
+
+ * tftpd/tftpd.c: Fixed file mode when new files are uploaded.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Fri, 14 Oct 2005 11:33:37 +0200
+
+netkit-tftp (0.17-14) unstable; urgency=low
+
+ * Fix dyslexia problem. Actually made the default directory
+ /srv/tftp.
+ * tftpd/tftpd.c patched to allow uploading files that didn't exist
+ previously on the server.
+ Thanks Rodrigo Steinmüller Wanderley <rwanderley@natalnet.br>
+ for finding this out and the patch.
+ * Bumped Standards-Version to 3.6.2.0, no change.
+ * Moved to debhelper compatibility 4. Created debian/compat.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Thu, 13 Oct 2005 12:14:55 +0200
+
+netkit-tftp (0.17-13) unstable; urgency=low
+
+ * Fixed typo in man page. (Closes: #310347)
+ * Changed default tftpd directory to /svr/tftp (Closes: #255204)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Tue, 12 Jul 2005 19:44:36 +0200
+
+netkit-tftp (0.17-12) unstable; urgency=low
+
+ * Changed maintainer email address
+ * Reworded tftp and tftpd Descriptions
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Fri, 25 Mar 2005 19:05:49 +0100
+
+netkit-tftp (0.17-11) unstable; urgency=low
+
+ * New Maintainer. (Closes: #249716)
+ * Added Depends on netbase to tftp. (Closes: #245764)
+ * Added versioned Build-Depends on debhelper.
+ * Bumped Standards-Version to 3.6.1, no change.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as> Wed, 19 May 2004 09:41:49 +0200
+
+netkit-tftp (0.17-10) unstable; urgency=low
+
+ * Fixed inetd service name in prerm/postrm (closes: #171178).
+
+ -- Herbert Xu <herbert@debian.org> Sun, 22 Dec 2002 15:48:30 +1100
+
+netkit-tftp (0.17-9) unstable; urgency=low
+
+ * Always reopen socket after a get/put in tftp (closes: #130292).
+
+ -- Herbert Xu <herbert@debian.org> Wed, 30 Jan 2002 20:56:47 +1100
+
+netkit-tftp (0.17-8) unstable; urgency=low
+
+ * Reopen socket on all errors in tftp (closes: #130292).
+
+ -- Herbert Xu <herbert@debian.org> Mon, 28 Jan 2002 21:43:17 +1100
+
+netkit-tftp (0.17-7) unstable; urgency=low
+
+ * Call synchnet on all errors in tftp (closes: #130292).
+
+ -- Herbert Xu <herbert@debian.org> Fri, 25 Jan 2002 19:06:31 +1100
+
+netkit-tftp (0.17-6) unstable; urgency=low
+
+ * Added note about default tftp location in README.Debian (closes: #121522).
+
+ -- Herbert Xu <herbert@debian.org> Sat, 22 Dec 2001 13:07:55 +1100
+
+netkit-tftp (0.17-5) unstable; urgency=low
+
+ * Fixed loop condition in sendfile (closes: #92231).
+
+ -- Herbert Xu <herbert@debian.org> Mon, 2 Apr 2001 21:38:15 +1000
+
+netkit-tftp (0.17-4) unstable; urgency=low
+
+ * Use arpa/tftp.h from glibc (closes: #88346).
+
+ -- Herbert Xu <herbert@debian.org> Sun, 4 Mar 2001 10:23:45 +1100
+
+netkit-tftp (0.17-3) unstable; urgency=low
+
+ * Restored block == 1 check that was removed in 0.17 (closes: #88286).
+
+ -- Herbert Xu <herbert@debian.org> Sat, 3 Mar 2001 10:19:40 +1100
+
+netkit-tftp (0.17-2) unstable; urgency=low
+
+ * Removed emacsism in this very file (closes: #74272).
+ * Merged option processing changes from Ian Jackson (closes: #74273).
+
+ -- Herbert Xu <herbert@debian.org> Sat, 21 Oct 2000 12:12:28 +1100
+
+netkit-tftp (0.17-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Herbert Xu <herbert@debian.org> Sat, 12 Aug 2000 12:04:31 +1000
+
+netkit-tftp (0.10-1) unstable; urgency=low
+
+ * Initial Release.
+ * Based on netkit-tftp (closes: #39450).
+ * Implemented -n and -s (closes: #23917).
+ Note that -s was done without chroot. Instead all absolute filenames are
+ treated as relative ones.
+
+ -- Herbert Xu <herbert@debian.org> Tue, 26 Oct 1999 12:23:51 +1000
+
--- netkit-tftp-0.17.orig/debian/control
+++ netkit-tftp-0.17/debian/control
@@ -0,0 +1,29 @@
+Source: netkit-tftp
+Section: net
+Priority: optional
+Maintainer: Alberto Gonzalez Iniesta <agi@inittab.org>
+Standards-Version: 3.9.0.0
+Build-Depends: debhelper (>= 7)
+
+Package: tftp
+Architecture: any
+Depends: netbase, ${shlibs:Depends}, ${misc:Depends}
+Replaces: netstd
+Description: Trivial file transfer protocol client
+ Tftp is the user interface to the Internet TFTP (Trivial File Transfer
+ Protocol), which allows users to transfer files to and from a remote machine.
+ The remote host may be specified on the command line, in which case tftp uses
+ host as the default host for future transfers.
+
+Package: tftpd
+Architecture: any
+Depends: openbsd-inetd | inet-superserver, ${shlibs:Depends}, ${misc:Depends}
+Replaces: netstd
+Description: Trivial file transfer protocol server
+ Tftpd is a server which supports the Internet Trivial File Transfer Protocol
+ (RFC 783). The TFTP server operates at the port indicated in the `tftp'
+ service description; see services(5). The server is normally started by
+ inetd(8).
+ Tftpd is not suitable for use with the PXE bootloader; for that,
+ use atftpd or tftpd-hpa.
+
--- netkit-tftp-0.17.orig/debian/tftpd.postinst
+++ netkit-tftp-0.17/debian/tftpd.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+# $Id: tftpd.postinst,v 1.1 1999/10/26 04:43:01 herbert Exp $
+
+case "$1" in
+abort-upgrade | abort-deconfigure | abort-remove)
+ update-inetd --enable tftp
+ ;;
+configure)
+ update-inetd --group BOOT --add "tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp"
+ ;;
+*)
+ printf "$0: incorrect arguments: $*\n" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
--- netkit-tftp-0.17.orig/debian/watch
+++ netkit-tftp-0.17/debian/watch
@@ -0,0 +1,2 @@
+version=2
+ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-tftp-(.*)\.tar\.gz
--- netkit-tftp-0.17.orig/debian/compat
+++ netkit-tftp-0.17/debian/compat
@@ -0,0 +1 @@
+7
--- netkit-tftp-0.17.orig/debian/copyright
+++ netkit-tftp-0.17/debian/copyright
@@ -0,0 +1,15 @@
+This package was split from netstd by Herbert Xu herbert@debian.org on
+Tue, 26 Oct 1999 12:29:16 +1000
+
+netstd was created by Peter Tobias tobias@et-inf.fho-emden.de on
+Wed, 20 Jul 1994 17:23:21 +0200.
+
+It was downloaded from ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/.
+
+Copyright:
+
+Copyright (c) 1983, 1991 The Regents of the University of California.
+
+The license can be found in /usr/share/common-licenses/BSD.
+
+$Id: copyright,v 1.2 2000/08/12 01:28:48 herbert Exp $
--- netkit-tftp-0.17.orig/debian/tftpd.dirs
+++ netkit-tftp-0.17/debian/tftpd.dirs
@@ -0,0 +1,2 @@
+usr/sbin
+usr/share/man/man8
--- netkit-tftp-0.17.orig/debian/tftp.dirs
+++ netkit-tftp-0.17/debian/tftp.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1
--- netkit-tftp-0.17.orig/debian/tftpd.postrm
+++ netkit-tftp-0.17/debian/tftpd.postrm
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+# $Id: tftpd.postrm,v 1.2 2002/12/22 05:17:12 herbert Exp $
+
+case "$1" in
+abort-install | abort-upgrade | upgrade | failed-upgrade | disappear)
+ ;;
+purge|remove)
+ # If netbase is not installed, then we don't need to do the remove.
+ if command -v update-inetd >/dev/null 2>&1; then
+ update-inetd --remove tftp
+ fi
+ ;;
+*)
+ echo "$0: incorrect arguments: $*" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#