--- bootpc-0.64.orig/main.c
+++ bootpc-0.64/main.c
@@ -21,7 +21,7 @@
 
 #include "bootpc.h"
 
-FILE * logfile = stderr ;
+FILE * logfile;
 
 int main(int argc,
 	 char *argv[])
@@ -33,6 +33,8 @@
   char *device, *bootfile, *server ;
   int returniffail=0, printflag = BP_PRINT_OUT ;
 
+  logfile = stderr ;
+
 /* defaults unless overridden by command line options 10/02/94  JSP */
   device = "eth0" ;             /* first ethernet card */
   bootfile = "" ;               /* No bootfile by default */
--- bootpc-0.64.orig/Makefile
+++ bootpc-0.64/Makefile
@@ -33,11 +33,11 @@
 
 ${PROG}: ${OBJS}
 	${CC} -o ${PROG} ${CFLAGS} ${OBJS}
-	strip ${PROG}
+	#strip ${PROG}
 
 ${PROG}-static: ${OBJS}
 	${CC} -static -o ${PROG} ${CFLAGS} ${OBJS}
-	strip ${PROG}
+	#strip ${PROG}
 
 # Make up a distribution file from the bits we want people to see
 distrib:  $(CFILES) $(CHEADS) $(MISC)
--- bootpc-0.64.orig/bootpc.c
+++ bootpc-0.64/bootpc.c
@@ -331,6 +331,8 @@
   unsigned char *cookie = (unsigned char *)(bootp_recv->bp_vend) ;
   struct in_addr temp_addr, my_addr ;
 
+  temp_addr.s_addr = bootp_recv->bp_giaddr.s_addr ;
+  OutString("GATEWAY", (unsigned char *)inet_ntoa(temp_addr), -1);
   temp_addr.s_addr = bootp_recv->bp_siaddr.s_addr ;
   OutString("SERVER", (unsigned char *)inet_ntoa(temp_addr), -1);
   my_addr.s_addr = bootp_recv->bp_yiaddr.s_addr ;
@@ -676,7 +678,7 @@
 }
 
 /* Takes an address and returns useful bits of the name after lookup,
-   this was a seperate program, but it is more compact to have both
+   this was a separate program, but it is more compact to have both
    together.  17/02/94  JSP */
 
 int in2host(char *address,
--- bootpc-0.64.orig/debian/bootpc.8
+++ bootpc-0.64/debian/bootpc.8
@@ -0,0 +1,92 @@
+.\" $Id: bootpc.8,v 1.1 1999/03/23 02:57:12 herbert Exp $
+.TH BOOTPC 8 "1999 March 21st" "BOOTPC" "Debian GNU/Linux Manual"
+.SH NAME
+bootpc \- bootp client
+.SH SYNOPSIS
+.B bootpc
+.RB [ --bootfile
+.IR file ]
+.RB [ --dev
+.IR device ]
+.RB [ --verbose ]
+.RB [ --debug ]
+.RB [ --server
+.IR addr ]
+.RB [ --hwaddr
+.IR addr ]
+.RB [ --returniffail ]
+.RB [ --waitformore
+.IR length ]
+.RB [ --in2host
+.IR addr ]
+.RB [ --serverbcast ]
+.RB [ --help ]
+.SH "DESCRIPTION"
+This manual page documents briefly the
+.B bootpc
+command.
+This manual page was written for the
+.B Debian GNU/Linux
+distribution (but may be used by others), because the original
+program does not have a manual page.
+.PP
+.B bootpc
+is a boot protocol client used to grab the machine's IP address, set up DNS
+nameservers and other useful information.
+.SH OPTIONS
+.TP
+.BI "--bootfile " file
+Tell the server to use
+.I file
+as the boot file.
+.TP
+.BI "--dev " device
+Use
+.I device
+to communicate with the server.
+.TP
+.B --verbose
+Be verbose.
+.TP
+.B --debug
+Produce debugging output.
+.TP
+.BI "--server " addr
+Use the IP address
+.I addr
+to communicate with the server.
+.TP
+.BI "--hwaddr " addr
+Use
+.I addr
+as our hardware address rather than what the operating system gives us.
+.TP
+.B --returniffail
+Terminate the program if a failure occurs.  By default
+.B bootpc
+will ask the user to press a key if the request did not succeed.
+.TP
+.BI "--waitformore " length
+Wait for more responses when one is received.
+.B bootpc
+will wait for at most
+.I length
+seconds.  This is probably only useful for debugging.
+.TP
+.BI "--in2host " addr
+Takes an address and returns useful bits of the name after lookup, this was a
+separate program, but it is more compact to have both together.
+.TP
+.B --serverbcast
+Tell the server to send back a broadcast reply.  This is necessary on
+.B Linux
+2.1 and 2.2.
+.TP
+.B --help
+Display the usage of
+.BR bootpc .
+.SH AUTHOR
+This manual page was written by Herbert Xu <herbert@debian.org>,
+for the
+.B Debian GNU/Linux
+system (but may be used by others).
--- bootpc-0.64.orig/debian/dirs
+++ bootpc-0.64/debian/dirs
@@ -0,0 +1 @@
+sbin
--- bootpc-0.64.orig/debian/copyright
+++ bootpc-0.64/debian/copyright
@@ -0,0 +1,16 @@
+This package was split from netstd by Herbert Xu herbert@debian.org on
+Sun, 21 Mar 1999 14:16:28 +1100.
+
+It is maintained by Anibal Monsalve Salazar <anibal@debian.org>.
+
+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 http://www.damtp.cam.ac.uk/linux/bootpc/.
+
+Copyright:
+
+Copyright (c) 1996,1998 University of Cambridge
+
+The license can be found in /usr/share/common-licenses/GPL.
+
--- bootpc-0.64.orig/debian/examples
+++ bootpc-0.64/debian/examples
@@ -0,0 +1 @@
+rc.bootp
--- bootpc-0.64.orig/debian/changelog
+++ bootpc-0.64/debian/changelog
@@ -0,0 +1,57 @@
+bootpc (0.64-7.4.201403150944) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Sat, 15 Mar 2014 09:44:28 +0100
+
+bootpc (0.64-7) unstable; urgency=low
+
+  * Bumped Standards-Version to 3.7.3 
+  * Commented out stripping in Makefile. Closes: #436601
+  * Fixed the following lintian issue:
+    - debian-rules-ignores-make-clean-error
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Sat, 01 Mar 2008 10:33:34 +1100
+
+bootpc (0.64-6) unstable; urgency=low
+
+  * Fixed "Does not display gateway IP address from the bootp
+    server response", closes: #362456. Patch by Rafal Krypa
+    <mail@iceberg.pl>.
+  * Set Standards-Version to 3.7.2.
+  * Fixed package-uses-deprecated-debhelper-compat-version.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Thu, 22 Jun 2006 08:44:09 +1000
+
+bootpc (0.64-5) unstable; urgency=low
+
+  * Fixed "man bootpc typo: seperate", closes: #323532.
+  * Set Standards-Version to 3.6.2.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Thu, 18 Aug 2005 11:43:31 +1000
+
+bootpc (0.64-4) unstable; urgency=low
+
+  * New maintainer's email address.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Sun, 06 Feb 2005 22:29:02 +1100
+
+bootpc (0.64-3) unstable; urgency=low
+
+  * New maintainer.
+
+ -- Anibal Monsalve Salazar <A.Monsalve.Salazar@IEEE.org>  Thu, 20 May 2004 09:02:57 +1000
+
+bootpc (0.64-2) unstable; urgency=low
+
+  * Made compliant with policy version 3.2.1 (closes: #70209).
+
+ -- Herbert Xu <herbert@debian.org>  Wed, 15 Nov 2000 21:32:15 +1100
+
+bootpc (0.64-1) unstable; urgency=low
+
+  * Split from netstd.
+  * New upstream release (fixes #33386).
+
+ -- Herbert Xu <herbert@debian.org>  Tue, 23 Mar 1999 13:53:50 +1100
+
--- bootpc-0.64.orig/debian/compat
+++ bootpc-0.64/debian/compat
@@ -0,0 +1 @@
+5
--- bootpc-0.64.orig/debian/rules
+++ bootpc-0.64/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Copyright (C) 2004-2005 Anibal Monsalve Salazar <anibal@debian.org>
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	$(MAKE) CFLAGS="-O2 -g -Wall"
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp install-stamp
+
+	[ ! -f Makefile ] || $(MAKE) clean
+
+	dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	cp bootpc debian/bootpc/sbin
+
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installcron
+	dh_installmanpages
+	dh_installchangelogs ChangeLog
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+source diff:                                                                  
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- bootpc-0.64.orig/debian/control
+++ bootpc-0.64/debian/control
@@ -0,0 +1,14 @@
+Source: bootpc
+Section: net
+Priority: extra
+Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
+Standards-Version: 3.7.3
+Build-Depends: debhelper (>= 5)
+
+Package: bootpc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: netstd
+Description: bootp client
+ This is a boot protocol client used to grab the machines ip number, set up
+ DNS nameservers and other useful information.
--- bootpc-0.64.orig/debian/docs
+++ bootpc-0.64/debian/docs
@@ -0,0 +1,3 @@
+DHCP
+README
+WHEN-IT-FAILS
