--- awardeco-0.2.orig/debian/dirs
+++ awardeco-0.2/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- awardeco-0.2.orig/debian/copyright
+++ awardeco-0.2/debian/copyright
@@ -0,0 +1,66 @@
+This package was debianized by Uwe Hermann <uwe@debian.org> on
+Sat,  2 Sep 2006 01:55:02 +0200.
+
+It was downloaded from: http://www.kaos.ru/biosgfx/
+
+Upstream Author:
+
+    Anton Borisov <anton.borisov@gmail.com>
+
+-------------------------------------------------------------------------------
+
+Copyright:
+
+    Copyright (C) 2000, 2003 Anton Borisov <anton.borisov@gmail.com>
+
+License:
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+-------------------------------------------------------------------------------
+
+awardfnc.c:
+
+Copyright:
+
+    Copyright (C) 2000, 2003 Anton Borisov <anton.borisov@gmail.com>
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+-------------------------------------------------------------------------------
+
+The Debian packaging is (C) 2006-2008, Uwe Hermann <uwe@debian.org> and
+is licensed under the GPL (version 2 or later), see above.
+
--- awardeco-0.2.orig/debian/changelog
+++ awardeco-0.2/debian/changelog
@@ -0,0 +1,46 @@
+awardeco (0.2-3.1.4.201403140249) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Fri, 14 Mar 2014 02:49:58 +0100
+
+awardeco (0.2-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Modify 20_kfreebsd.patch to also build on GNU/Hurd. (Closes: #532788).
+
+ -- Barry deFreese <bdefreese@debian.org>  Wed, 23 Dec 2009 15:48:47 -0500
+
+awardeco (0.2-3) unstable; urgency=low
+
+  * Acknowledge NMU, thanks Giacomo Catenazzi (Closes: #438385).
+  * Install the binary in /usr/bin, not /bin.
+  * Standards-Version: 3.7.3 (no changes required).
+  * debian/control: Add Homepage field.
+  * Honor the 'nostrip' build option (Closes: #436495).
+
+ -- Uwe Hermann <uwe@debian.org>  Sat, 09 Feb 2008 00:11:22 +0100
+
+awardeco (0.2-2.1) unstable; urgency=low
+
+  * Non-Maintainer Upload at BSP in Zurich: fix rc bug.
+  * Use the C99 bit length integer, to be safe on various
+    architectures (Closes: #438385).
+  * Fix also headers inclusion (memcpy: <string.h>, exit: <stdlib.h>).
+
+ -- Giacomo Catenazzi <cate@debian.org>  Thu, 17 Jan 2008 08:17:08 +0100
+
+awardeco (0.2-2) unstable; urgency=low
+
+  * Fix FTBFS on GNU/kFreeBSD (Closes: #414235).
+    Thanks Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> for the patch.
+
+ -- Uwe Hermann <uwe@debian.org>  Sun, 08 Apr 2007 02:36:56 +0200
+
+awardeco (0.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #385125).
+  * I wrote a manpage for awardeco, as there was none upstream.
+
+ -- Uwe Hermann <uwe@debian.org>  Sat,  2 Sep 2006 17:23:09 +0200
+
--- awardeco-0.2.orig/debian/compat
+++ awardeco-0.2/debian/compat
@@ -0,0 +1 @@
+5
--- awardeco-0.2.orig/debian/awardeco.1
+++ awardeco-0.2/debian/awardeco.1
@@ -0,0 +1,41 @@
+.TH AWARDECO 1 "August 22, 2006"
+.SH NAME
+awardeco \- Decompress flashfiles equipped with an AWARD BIOS
+.SH SYNOPSIS
+.B awardeco
+.RB "filename"
+.RB [ "OPTIONS" ]
+.SH DESCRIPTION
+.B awardeco
+is a program which can decompress BIOS images which contain an AWARD BIOS.
+.SH OPTIONS
+.B \-l
+List BIOS structure.
+.PP
+.B \-la
+List all BIOS structure elements.
+.PP
+.B \-x
+Extract BIOS modules.
+.PP
+.B \-xa
+Try to find all module hooks and unpack them.
+.PP
+.B \-xr
+This option is intended to cut and paste the packed module as is
+into a file.
+.PP
+.B \-h
+Show help text and exit.
+.SH BUGS
+Please report any bugs to Anton Borisov <anton.borisov@gmail.com>.
+.SH LICENCE
+.B awardeco
+is covered by the GNU General Public License (GPL), version 2 or later.
+Parts are covered by the GNU Lesser General Public License (LGPL),
+version 2.1 or later.
+.SH AUTHORS
+Anton Borisov <anton.borisov@gmail.com>
+.PP
+This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>.
+It is licensed under the terms of the GNU GPL (version 2 or later).
--- awardeco-0.2.orig/debian/rules
+++ awardeco-0.2/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+  
+DEB_INSTALL_MANPAGES_awardeco := debian/awardeco.1
+
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+DEB_BUILDDIR := src
+DEB_MAKE_MAKEFILE := Makefile
+
--- awardeco-0.2.orig/debian/awardeco.install
+++ awardeco-0.2/debian/awardeco.install
@@ -0,0 +1 @@
+src/awardeco usr/bin
--- awardeco-0.2.orig/debian/control
+++ awardeco-0.2/debian/control
@@ -0,0 +1,15 @@
+Source: awardeco
+Section: utils
+Priority: optional
+Maintainer: Uwe Hermann <uwe@debian.org>
+Build-Depends: cdbs, debhelper (>= 5)
+Standards-Version: 3.7.3
+Homepage: http://www.kaos.ru/biosgfx/
+
+Package: awardeco
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Decompress flashfiles equipped with an AWARD BIOS
+ Awardeco is a program which can decompress BIOS images which
+ contain an AWARD BIOS.
+
--- awardeco-0.2.orig/debian/docs
+++ awardeco-0.2/debian/docs
@@ -0,0 +1 @@
+README
--- awardeco-0.2.orig/debian/patches/30_fix_int_types.patch
+++ awardeco-0.2/debian/patches/30_fix_int_types.patch
@@ -0,0 +1,36 @@
+diff -Nur awardeco-0.2/src/awardeco.h awardeco-0.2.new/src/awardeco.h
+--- awardeco-0.2/src/awardeco.h	2006-08-05 11:38:03.000000000 +0200
++++ awardeco-0.2.new/src/awardeco.h	2008-01-17 08:25:23.000000000 +0100
+@@ -10,10 +10,11 @@
+ #define AWARDECO_H 1
+ 
+ #include	<stdio.h>
++#include	<stdint.h>
+ 
+-typedef unsigned char	byte;
+-typedef unsigned short	word;
+-typedef unsigned long	dword;
++typedef uint8_t		byte;
++typedef uint16_t	word;
++typedef uint32_t	dword;
+ 
+ #define	Xtract 		0x10
+ #define	List   		0x11
+diff -Nur awardeco-0.2/src/awardfnc.c awardeco-0.2.new/src/awardfnc.c
+--- awardeco-0.2/src/awardfnc.c	2006-08-05 11:38:03.000000000 +0200
++++ awardeco-0.2.new/src/awardfnc.c	2008-01-17 08:26:24.000000000 +0100
+@@ -10,10 +10,11 @@
+ #define AWARDFUNC_H 1
+ 
+ #include	<stdio.h>
++#include	<stdint.h>
+ 
+-typedef unsigned char	byte;
+-typedef unsigned short	word;
+-typedef unsigned long	dword;
++typedef uint8_t		byte;
++typedef uint16_t	word;
++typedef uint32_t	dword;
+ 
+ #define	Xtract 		0x10
+ #define	List   		0x11
--- awardeco-0.2.orig/debian/patches/15_makefile_honor_nostrip.patch
+++ awardeco-0.2/debian/patches/15_makefile_honor_nostrip.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.orig	2008-02-09 00:22:56.000000000 +0100
++++ src/Makefile	2008-02-09 00:23:03.000000000 +0100
+@@ -8,7 +8,7 @@
+ all: awardeco
+ 
+ awardeco: awardfnc kernel
+-	gcc awardeco.c awardfnc.o kernel.o -s -fpack-struct -o awardeco
++	gcc awardeco.c awardfnc.o kernel.o -fpack-struct -o awardeco
+ 
+ awardfnc:
+ 	gcc awardfnc.c -c -o awardfnc.o -fpack-struct
--- awardeco-0.2.orig/debian/patches/10_makefile.patch
+++ awardeco-0.2/debian/patches/10_makefile.patch
@@ -0,0 +1,13 @@
+--- src/Makefile.orig	2006-09-02 02:07:52.000000000 +0200
++++ src/Makefile	2006-09-02 02:09:01.000000000 +0200
+@@ -5,7 +5,9 @@
+ 
+ MAKE = make
+ 
+-awardeco:
++all: awardeco
++
++awardeco: awardfnc kernel
+ 	gcc awardeco.c awardfnc.o kernel.o -s -fpack-struct -o awardeco
+ 
+ awardfnc:
--- awardeco-0.2.orig/debian/patches/50_fix_warnings.patch
+++ awardeco-0.2/debian/patches/50_fix_warnings.patch
@@ -0,0 +1,21 @@
+diff -Nur awardeco-0.2/src/awardfnc.c awardeco-0.2.new/src/awardfnc.c
+--- awardeco-0.2/src/awardfnc.c	2008-01-16 08:28:09.000000000 +0100
++++ awardeco-0.2.new/src/awardfnc.c	2008-01-16 08:30:41.000000000 +0100
+@@ -153,7 +153,7 @@
+ 
+ byte *GetFullDate(byte *mon, byte *day, byte *year)
+ 	{
+-		byte *Months[]={"",
++		static byte const*const Months[]={"",
+ 				"January",
+ 				"February",
+ 				"March",
+@@ -166,7 +166,7 @@
+ 				"October",
+ 				"November",
+ 				"December"};
+-		byte Buf[20];
++		static byte Buf[20];  // Warning: we return this buffer, so place it in heap not on stack!
+ 		sprintf(Buf,"%2.2s",year);
+ 
+ 		if((atoi(Buf)>=0) && (atoi(Buf)<70)) sprintf(Buf,"%.2s %s %s%.2s",day,Months[atoi(mon)],"20",year);
--- awardeco-0.2.orig/debian/patches/40_fix_header.patch
+++ awardeco-0.2/debian/patches/40_fix_header.patch
@@ -0,0 +1,12 @@
+diff -Nur awardeco-0.2/src/awardfnc.c awardeco-0.2.new/src/awardfnc.c
+--- awardeco-0.2/src/awardfnc.c	2008-01-17 08:26:37.000000000 +0100
++++ awardeco-0.2.new/src/awardfnc.c	2008-01-17 08:27:05.000000000 +0100
+@@ -11,6 +11,8 @@
+ 
+ #include	<stdio.h>
+ #include	<stdint.h>
++#include	<string.h>
++#include	<stdlib.h>
+ 
+ typedef uint8_t		byte;
+ typedef uint16_t	word;
--- awardeco-0.2.orig/debian/patches/20_kfreebsd.patch
+++ awardeco-0.2/debian/patches/20_kfreebsd.patch
@@ -0,0 +1,11 @@
+--- awardeco-0.2/src/awardeco.c	2007-03-10 06:46:51.732342000 +0100
++++ awardeco-0.2/src/awardeco.c	2007-03-10 06:48:23.000000000 +0100
+@@ -21,7 +21,7 @@
+ #include        <stdio.h>                                                       
+ #include        <stdlib.h>                                                      
+ 
+-#if defined(LINUX) || defined(__LINUX__) || defined(__linux__)
++#if defined(LINUX) || defined(__LINUX__) || defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
+     #include    <memory.h>
+     #define     __LINUX_NOW__
+ #else
--- awardeco-0.2.orig/src/Makefile
+++ awardeco-0.2/src/Makefile
@@ -22,4 +22,4 @@
 	make clean
 	make awardfnc
 	make kernel
-	make awardeco
\ No newline at end of file
+	make awardeco
