--- 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/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 +seperate 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 , +for the +.B Debian GNU/Linux +system (but may be used by others). --- bootpc-0.64.orig/debian/changelog +++ bootpc-0.64/debian/changelog @@ -0,0 +1,22 @@ +bootpc (0.64-3) unstable; urgency=low + + * New maintainer. + + -- Anibal Monsalve Salazar 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 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 Tue, 23 Mar 1999 13:53:50 +1100 + +Local variables: +mode: debian-changelog +End: --- 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 +Standards-Version: 3.6.1 +Build-Depends: debhelper + +Package: bootpc +Architecture: any +Depends: ${shlibs: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/copyright +++ bootpc-0.64/debian/copyright @@ -0,0 +1,15 @@ +This package was split from netstd by Herbert Xu herbert@debian.org on +Sun, 21 Mar 1999 14:16:28 +1100. + +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. + +$Id: copyright,v 1.2 2000/11/15 10:34:43 herbert Exp $ --- bootpc-0.64.orig/debian/dirs +++ bootpc-0.64/debian/dirs @@ -0,0 +1 @@ +sbin --- bootpc-0.64.orig/debian/docs +++ bootpc-0.64/debian/docs @@ -0,0 +1,3 @@ +DHCP +README +WHEN-IT-FAILS --- bootpc-0.64.orig/debian/examples +++ bootpc-0.64/debian/examples @@ -0,0 +1 @@ +rc.bootp --- bootpc-0.64.orig/debian/rules +++ bootpc-0.64/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. + +# 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 + + -$(MAKE) clean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp bootpc debian/tmp/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_testversion + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installinit + dh_installcron + dh_installmanpages +# dh_undocumented + dh_installchangelogs ChangeLog + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol +# dh_makeshlibs + 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