--- nitpic-0.1.orig/debian/control
+++ nitpic-0.1/debian/control
@@ -0,0 +1,14 @@
+Source: nitpic
+Section: electronics
+Priority: extra
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Build-Depends: libx11-dev, libxt-dev, libxaw7-dev, xutils-dev, binutils-dev, binutils, zlib1g-dev 
+Standards-Version: 3.7.3
+
+Package: nitpic
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: simulator for the Microchip PIC16C84 microcontroller
+ Nitpic is an X-based simulator for the Microchip PIC family of
+ microcontrollers.  It currently supports only the PIC16C84.
+ This is beta software.
--- nitpic-0.1.orig/debian/rules
+++ nitpic-0.1/debian/rules
@@ -0,0 +1,74 @@
+#! /usr/bin/make -f
+
+.PHONY: build build-indep build-arch clean binary binary-indep binary-arch checkdir checkroot
+
+package = nitpic
+d=$(shell pwd)/debian/tmp
+STRIP=strip --strip-unneeded --remove-section=.note --remove-section=.comment
+
+Makefile: Imakefile
+	xmkmf
+
+build: build-arch
+build-indep:
+build-arch: checkdir Makefile
+	$(MAKE)
+
+clean: checkdir Makefile
+	$(MAKE) clean
+	$(RM) -r debian/files debian/substvars debian/tmp
+	$(RM) Makefile
+	find . -name \*~ -print0 | xargs -0 $(RM)
+
+binary-indep:	checkdir build checkroot
+
+binary-arch:	checkdir build checkroot
+	$(RM) -r $(d)
+
+	install -d $(d)/DEBIAN
+	install -d $(d)/usr/bin
+	install -d $(d)/etc/X11/app-defaults
+	install -d $(d)/usr/share/doc/$(package)
+	install -d $(d)/usr/share/man/man1
+	
+
+	install -c debian/conffiles $(d)/DEBIAN/
+
+	install -c debian/changelog $(d)/usr/share/doc/$(package)/changelog.Debian
+	install -c README $(d)/usr/share/doc/$(package)
+	install -c test.* $(d)/usr/share/doc/$(package)
+	gzip -9vf $(d)/usr/share/doc/$(package)/*
+	install -c debian/copyright $(d)/usr/share/doc/$(package)/copyright
+
+	install -c nitpic $(d)/usr/bin
+	install -c XPICsim $(d)/etc/X11/app-defaults/
+
+	install -d $(d)/usr/share/$(package)/
+	install -c *.xbm $(d)/usr/share/nitpic/
+	
+	
+	install nitpic.man $(d)/usr/share/man/man1/nitpic.1
+	gzip -9vf $(d)/usr/share/man/man1/nitpic.1
+	
+	install -d $(d)/usr/share/lintian/overrides
+	install -c debian/lintian.overrides $(d)/usr/share/lintian/overrides/$(package)
+	
+	chown -fR root.root $(d)
+	find $(d) -type f -print0 | xargs -0 chmod 644
+	find $(d) -type d -print0 | xargs -0 chmod 755
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	$(STRIP) $(d)/usr/bin/nitpic
+endif
+	dpkg-shlibdeps $(d)/usr/bin/*
+	dpkg-gencontrol -isp -p$(package) -P$(d)
+	dpkg --build $(d) ..
+
+binary:	binary-indep binary-arch
+
+checkdir:
+	test -f ic.cc
+
+checkroot:
+	test "`whoami`" = "root"
+
+.PHONY:	build clean binary-indep binary-arch binary
--- nitpic-0.1.orig/debian/conffiles
+++ nitpic-0.1/debian/conffiles
@@ -0,0 +1 @@
+/etc/X11/app-defaults/XPICsim
--- nitpic-0.1.orig/debian/changelog
+++ nitpic-0.1/debian/changelog
@@ -0,0 +1,179 @@
+nitpic (0.1-13) unstable; urgency=low
+
+  * QA upload.
+  * Link statically against binutils libraries (Closes: #648043). As a
+    consequence, we also need to link against zlib.
+  * Drop ancient prerm script from /usr/doc transition.
+  * Add build-indep and build-arch targets to debian/rules.
+
+ -- Magnus Holmgren <holmgren@debian.org>  Tue, 08 Nov 2011 18:32:40 +0100
+
+nitpic (0.1-12) unstable; urgency=low
+
+  * QA upload.
+  * Fix "ftbfs with gcc-4.5": apply patch from Colin Watson / Ubuntu:
+    - Anonymous structs are not conformant C++.  Give W a struct name so 
+      that its linkage works.
+    Closes: #565088
+    LP: #756188
+  * Set Maintainer to Debian QA Group <packages@qa.debian.org>.
+    Closes: #552751 (cf. #629605)
+
+ -- gregor herrmann <gregoa@debian.org>  Tue, 27 Sep 2011 22:12:48 +0200
+
+nitpic (0.1-11.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed bashism in debian/rules (patch by Chris Lamb) (closes: #484417).
+  * Changed build dependency on obsolete xutils to xutils-dev.
+
+ -- Peter Eisentraut <petere@debian.org>  Wed, 09 Jul 2008 10:54:05 +0200
+
+nitpic (0.1-11.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Adding conditional for nostrip, according to Policy 10.1 (Closes: #437637)
+  * Updated Standards-Version to 3.7.3.
+
+ -- Jose Parrella <bureado@debian.org>  Mon, 07 Apr 2008 09:47:03 -0430
+
+nitpic (0.1-11) unstable; urgency=high
+
+  * Fixed FTBFS: build-depends on removed xlibs-deV (closes: #347138).
+ 
+ -- Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>  Fri, 20 Jan 2006 21:55:21 -0400
+
+nitpic (0.1-10) unstable; urgency=low
+  
+  * Fixed Missing shared lib dependencies (closes: #103449, #130645, #171284).
+  * Fixed package description typo(s) and the like (closes: #300023).
+  * New uploaders.
+
+ -- Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>  Sat, 03 Sep 2005 20:25:25 -0400
+
+nitpic (0.1-9) unstable; urgency=low
+
+  * New maintainer (closes: #227784).
+  * Fixed "FTBFS with gcc-3.4: default arguments are only permitted for function parameters"
+    (closes: #287809, #263265). Patch by Andreas Jochens <aj@andaco.de>
+
+ -- Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>  Sun, 02 Jan 2005 23:28:09 -0400
+   
+nitpic (0.1-8.4) unstable; urgency=low
+
+  * Uploading with maintainer set to QA group
+  * Applied Colin Watson's patch to fix segfaulting with no arguments (closes:
+    #186917)
+  * Removed debian/postinst because all it did was create /usr/doc link
+
+ -- Andrew Pollock <apollock@debian.org>  Sun, 15 Feb 2004 16:52:25 +1100
+
+nitpic (0.1-8.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Imakefile: Use ComplexCplusplusProgramTarget() so that we correctly link
+    with g++ rather than gcc (closes: #127162).
+  * nitpic.man, debian/rules: Add an extremely simple man page, necessary
+    because ComplexCplusplusProgramTargetNoMan() does not exist yet (see
+    #186321).
+  * 16c84.cc: C++ doesn't allow multiple non-extern definitions of an
+    object, and the attempt at a forward declaration of PIC16C84_INSTR is in
+    fact a definition. Change the forward declarator's storage class to
+    extern and that of the actual definition to auto.
+
+ -- Colin Watson <cjwatson@debian.org>  Mon, 31 Mar 2003 01:02:53 +0100
+
+nitpic (0.1-8.2) unstable; urgency=low
+
+  * NMU
+  *  (closes: #123697) Imakefile: change ComplexProgramTarget() to
+    ComplexProgramTargetNoMan() becouse this package don't include a
+    manpage.
+  * Removed 'Local Variables' in debian/changelog.
+
+ -- Otavio Real Salvador <otavio@freedom.ind.br>  Thu, 28 Feb 2002 19:13:11 -0300
+
+nitpic (0.1-8.1) unstable; urgency=low
+
+  * NMU
+  * 16c84.cc,main.cc: add #include <stdlib.h>
+  * 16c84.cc: 
+    - change all cases of "and" used as a variable name to "nitpic_and"
+      since "and" is now a reserved word in C++
+    - as above, for "or" and "xor"
+  * debian/control: updated Build-Depends; don't need c++-compiler (it is
+    Build-Essential), need libxaw7-dev
+
+ -- Branden Robinson <branden@debian.org>  Fri, 13 Jul 2001 12:43:31 -0600
+
+nitpic (0.1-8) unstable; urgency=low
+
+  * Change priority to extra.
+  * App-defaults directory changed by NMU. (closes: #86282)
+
+ -- Martin Mitchell <martin@debian.org>  Sun,  8 Apr 2001 20:57:53 +1000
+
+nitpic (0.1-7.1) unstable; urgency=low
+
+  * NMU
+  * XPICsim: look for .xbm's in /usr/share/nitpic
+  * debian/control:
+    - updated Build-Depends
+    - bumped Standards-Version to 3.5.2
+    - tweaked package description
+  * debian/{postinst,prerm}: /usr/doc -> /usr/share/doc migration policy
+  * debian/rules:
+    - install to FHS-compliant paths
+    - install X bitmap files to /usr/share/nitpic
+    - give appropriate arguments to "strip"
+    - ship new control files: conffiles, postinst, prerm
+    - invoke dpkg-gencontrol with -isp
+
+ -- Branden Robinson <branden@debian.org>  Sat, 17 Mar 2001 15:10:13 -0500
+
+nitpic (0.1-7) unstable; urgency=low
+
+  * Recompile due to changed binutils. (closes: #64357, #67818)
+
+ -- Martin Mitchell <martin@debian.org>  Sun, 30 Jul 2000 13:17:17 +1000
+
+nitpic (0.1-6) frozen unstable; urgency=low
+
+  * Const char * fixes for ARM. (closes: #58841)
+  * Update to standards version 3.1.1.
+
+ -- Martin Mitchell <martin@debian.org>  Sun, 27 Feb 2000 02:18:24 +1100
+
+nitpic (0.1-5) unstable; urgency=low
+
+  * Recompile for stdc++ 2.9.
+
+ -- Martin Mitchell <martin@debian.org>  Tue, 22 Sep 1998 04:53:54 +1000
+
+nitpic (0.1-4) frozen unstable; urgency=low
+
+  * Remove std.h reference. (#21666)
+  * Update to standards version 2.4.1.
+
+ -- Martin Mitchell <martin@debian.org>  Tue, 28 Apr 1998 02:27:14 +1000
+
+nitpic (0.1-3) unstable; urgency=low
+
+  * Fix dependency on obsolete libbfd package. (#16654)
+
+ -- Martin Mitchell <martin@debian.org>  Fri, 16 Jan 1998 00:14:57 +1100
+
+nitpic (0.1-2) unstable; urgency=low
+
+  * New maintainer.
+  * Updated to standards 2.3.0.1.
+  * Libc6 compile.
+  * Fix file overlaps. (#9012)
+
+ -- Martin Mitchell <martin@debian.org>  Tue, 11 Nov 1997 20:45:27 +1100
+
+nitpic (0.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Klee Dienes <klee@debian.org>  Fri, 7 Feb 1997 00:02:50 -0500
--- nitpic-0.1.orig/debian/lintian.overrides
+++ nitpic-0.1/debian/lintian.overrides
@@ -0,0 +1 @@
+nitpic: copyright-should-refer-to-common-license-file-for-gpl
--- nitpic-0.1.orig/debian/copyright
+++ nitpic-0.1/debian/copyright
@@ -0,0 +1,160 @@
+The nitpic package was assembled by Klee Dienes <klee@debian.org> from
+sources at <URL:http://huizen.dds.nl/~gnupic>.
+
+It is currently maintained by
+Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>
+
+The changes were fairly minimal, and consisted of adding various
+debian.* files to the distribution, as well as minor changes to the
+configuration files.
+
+The sup package is Copyright (C) by Dave Madden
+<dhm@vheissu.net.dcl.co.jp>, and is released under the terms of the
+following license (which appears to be substantially the same as the
+GPL):
+
+     NITPIC GENERAL PUBLIC LICENSE
+        (Clarified 11 Feb 1988)
+
+ Copyright (C) 1994 Dave Madden <dhm@vheissu.iii.net>
+Everyone is permitted to copy and distribute verbatim copies
+of this license, but changing it is not allowed.  You can also
+use this wording to make the terms for other programs.
+
+  The license agreements of most software companies keep you at the
+mercy of those companies.  By contrast, our general public license is
+intended to give everyone the right to share nitpic.  To make
+sure that you get the rights we want you to have, we need to make
+restrictions that forbid anyone to deny you these rights or to ask you
+to surrender the rights.  Hence this license agreement.
+
+  Specifically, we want to make sure that you have the right to give
+away copies of nitpic, that you receive source code or else can get it
+if you want it, that you can change nitpic or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To make sure that everyone has such rights, we have to forbid you to
+deprive anyone else of these rights.  For example, if you distribute
+copies of nitpic, you must give the recipients all the rights that you
+have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  Also, for our own protection, we must make certain that everyone
+finds out that there is no warranty for nitpic.  If nitpic is
+modified by someone else and passed on, we want its recipients to know
+that what they have is not what we distributed, so that any problems
+introduced by others will not reflect on our reputation.
+
+  Therefore we (Dave Madden <dhm@vheissu.iii.net> and Software
+Fools International) make the following terms which say what you must
+do to be allowed to distribute or change nitpic.
+
+        COPYING POLICIES
+
+  1. You may copy and distribute verbatim copies of nitpic source code
+as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy a valid copyright notice "Copyright
+(C) 1994 Software Fools International" (or with whatever year is
+appropriate); keep intact the notices on all files that refer to this
+License Agreement and to the absence of any warranty; and give any
+other recipients of the nitpic program a copy of this License
+Agreement along with the program.  You may charge a distribution fee
+for the physical act of transferring a copy.
+
+  2. You may modify your copy or copies of nitpic source code or
+any portion of it, and copy and distribute such modifications under
+the terms of Paragraph 1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating
+    that you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish,
+    that in whole or in part contains or is a derivative of nitpic
+    or any part thereof, to be licensed at no charge to all third
+    parties on terms identical to those contained in this License
+    Agreement (except that you may choose to grant more extensive
+    warranty protection to some or all third parties, at your option).
+
+    c) if the modified program serves as a text editor, cause it when
+    started running in the simplest and usual way, to print an
+    announcement including a valid copyright notice "Copyright (C)
+    1994 Software Fools International" (or with the year that is
+    appropriate), saying that there is no warranty (or else, saying
+    that you provide a warranty) and that users may redistribute the
+    program under these conditions, and telling the user how to view a
+    copy of this License Agreement.
+
+    d) You may charge a distribution fee for the physical act of
+    transferring a copy, and you may at your option offer warranty
+    protection in exchange for a fee.
+
+Mere aggregation of another unrelated program with this program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other program under the scope of these terms.
+
+  3. You may copy and distribute nitpic (or a portion or derivative of it,
+under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal
+    shipping charge) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+For an executable file, complete source code means all the source code for
+all modules it contains; but, as a special exception, it need not include
+source code for modules which are standard libraries that accompany the
+operating system on which the executable file runs.
+
+  4. You may not copy, sublicense, distribute or transfer nitpic
+except as expressly provided under this License Agreement.  Any attempt
+otherwise to copy, sublicense, distribute or transfer nitpic is void and
+your rights to use nitpic under this License agreement shall be
+automatically terminated.  However, parties who have received computer
+software programs from you with this License Agreement will not have
+their licenses terminated so long as such parties remain in full compliance.
+
+  5. If you wish to incorporate parts of nitpic into other free
+programs whose distribution conditions are different, write to
+Software Fools International.  We have not yet worked out a simple
+rule that can be stated here, but we will often permit this.  We will
+be guided by the two goals of preserving the free status of all
+derivatives of our free software and of promoting the sharing and
+reuse of software.
+
+Your comments and suggestions about our licensing policies and our
+software are welcome!  Please contact Software Fools International at
+dhm@vheissu.iii.net or call [+1](508)872-9858.
+
+           NO WARRANTY
+
+  BECAUSE NITPIC IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY NO
+WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
+WHEN OTHERWISE STATED IN WRITING, SOFTWARE FOOLS INTERNATIONAL AND/OR
+OTHER PARTIES PROVIDE NITPIC "AS IS" WITHOUT WARRANTY OF ANY KIND,
+EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+PROGRAM IS WITH YOU.  SHOULD THE NITPIC PROGRAM PROVE DEFECTIVE, YOU
+ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL SOFTWARE FOOLS
+INTERNATIONAL AND/OR ANY OTHER PARTY WHO MAY MODIFY AND REDISTRIBUTE
+NITPIC AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
+(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE
+PROGRAM TO OPERATE WITH PROGRAMS NOT DISTRIBUTED BY SOFTWARE FOOLS
+INTERNATIONAL) THE PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
