--- kbuild-0.1.3svn1610.orig/debian/compat
+++ kbuild-0.1.3svn1610/debian/compat
@@ -0,0 +1 @@
+5
--- kbuild-0.1.3svn1610.orig/debian/manpages
+++ kbuild-0.1.3svn1610/debian/manpages
@@ -0,0 +1 @@
+debian/kmk.1
--- kbuild-0.1.3svn1610.orig/debian/copyright
+++ kbuild-0.1.3svn1610/debian/copyright
@@ -0,0 +1,45 @@
+This package was debianized by Torsten Werner <twerner@debian.org> on
+Sat May  5 14:23:24 CEST 2007.
+
+It was downloaded from http://svn.netlabs.org/kbuild
+
+Upstream Author:
+2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net>
+
+Copyright:
+(C) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net>
+
+License:
+
+    This program 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 program 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 program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, 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'.
+
+
+kBuild ships modified sources of ash, make and sed.
+
+GNU make is Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+Free Software Foundation, Inc.
+GNU sed is Copyright (C) 2003 - Free Software Foundation, Inc.
+Both make and sed are licensed under the GPL.
+
+ash is Copyright (C) 1993 The Regents of the University of California.  ash is
+licensed under the BSD license, see `/usr/share/common-licenses/BSD'.
+
+
+The Debian packaging is (C) 2007, Torsten Werner <twerner@debian.org> and is
+licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- kbuild-0.1.3svn1610.orig/debian/changelog
+++ kbuild-0.1.3svn1610/debian/changelog
@@ -0,0 +1,190 @@
+kbuild (1:0.1.3svn1610-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Michael Meskes <meskes@debian.org>  Tue, 17 Jun 2008 12:27:58 +0200
+
+kbuild (1:0.1.3svn1610-1) unstable; urgency=low
+
+  * new upstream version (Closes: #479046, #480012)
+  * Remove patch cpu.diff that has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org>  Thu, 08 May 2008 20:20:07 +0200
+
+kbuild (1:0.1.3svn1587-1) unstable; urgency=low
+
+  * new upstream version
+  * Add support for armv5tejl.
+
+ -- Torsten Werner <twerner@debian.org>  Thu, 17 Apr 2008 22:08:34 +0200
+
+kbuild (1:0.1.2svn1393-2) unstable; urgency=high
+
+  * Add patch to fix build on parisc.
+  * Set urgency to high because we are fixing a FTBFS bug on 1 arch.
+
+ -- Torsten Werner <twerner@debian.org>  Thu, 10 Apr 2008 22:42:26 +0200
+
+kbuild (1:0.1.2svn1393-1) unstable; urgency=low
+
+  * new upstream release
+  * Remove our patch because it has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 09 Mar 2008 22:29:26 +0100
+
+kbuild (1:0.1.2svn1377-5) unstable; urgency=low
+
+  * Add support for s390x.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 30 Dec 2007 23:54:18 +0100
+
+kbuild (1:0.1.2svn1377-4) unstable; urgency=low
+
+  * Add support for mips.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 30 Dec 2007 22:53:09 +0100
+
+kbuild (1:0.1.2svn1377-3) unstable; urgency=low
+
+  * Add support for armv5tel.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 28 Dec 2007 23:39:11 +0100
+
+kbuild (1:0.1.2svn1377-2) unstable; urgency=low
+
+  * Add support for PA-RISC.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 28 Dec 2007 13:20:11 +0100
+
+kbuild (1:0.1.2svn1377-1) unstable; urgency=low
+
+  * Use version number (KBUILD_VERSION) from file Config.kmk for our package.
+  * Always bootstrap kBuild because it is required.
+  * Add Build-Depends: autoconf, automake, cvs.
+  * Remove Build-Depends: doxygen, kbuild.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 22 Dec 2007 11:53:03 +0100
+
+kbuild (1377-2) unstable; urgency=low
+
+  * Add patch cpu.diff to support Debian's architectures.
+  * Set LDFLAGS to -Wl,--as-needed to avoid linking of unneeded libraries.
+  * Use the freshly built kmk for the installation step instead of the old one
+    used for the build step. Rationale: that is a very basic test that the new
+    kmk is really working.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 21 Dec 2007 18:06:38 +0100
+
+kbuild (1377-1) unstable; urgency=low
+
+  * new upstream version
+  * Add some debugging output (gcc macros).
+  * Update Homepage and Vcs headers in debian/control.
+  * Change Standards-Version: 3.7.3.
+  * Add manpage symlinks for kmk_redirect and kmk_test.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 21 Dec 2007 12:30:37 +0100
+
+kbuild (1366-1) unstable; urgency=low
+
+  * new upstream version
+    - Does not ship kBuild.Doxyfile any more.
+  * Remove all references to the obsoleted documentation files.
+    (Closes: #454038)
+  * Remove Depends: autoconf, automake1.9.
+
+ -- Torsten Werner <twerner@debian.org>  Mon, 03 Dec 2007 18:59:04 +0100
+
+kbuild (1258-1~bpo40+1) etch-backports; urgency=low
+
+  * backport for etch
+  * commented out INPUT line in kBuild.DoxyFile as this broke compilation
+
+ -- Michael Meskes <meskes@debian.org>  Thu, 15 Nov 2007 17:56:13 +0000
+
+kbuild (1258-1) unstable; urgency=low
+
+  * new upstream release
+  * Remove the last patch because it has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 28 Oct 2007 23:05:09 +0100
+
+kbuild (1173-1) unstable; urgency=low
+
+  * new upstream release
+  * Fix the get-orig-source target in debian/rules.
+  * Removed all patches that have been applied upstream.
+  * Add more man page symlinks (kmk_cmp and kmk_md5sum).
+
+ -- Torsten Werner <twerner@debian.org>  Tue, 02 Oct 2007 21:59:51 +0200
+
+kbuild (1096-1) unstable; urgency=low
+
+  * new upstream version
+  * Add kbuild to Build-Depends.
+  * Fix clean target. (Closes: #442611)
+  * Comment the patches.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 16 Sep 2007 19:06:22 +0200
+
+kbuild (1080-2) unstable; urgency=low
+
+  * Add patch arm.diff to support armv4l too.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 21 Jul 2007 12:26:46 +0200
+
+kbuild (1080-1) unstable; urgency=low
+
+  * New upstream version
+  * Add a patch debug.diff that fixes debugging output.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 21 Jul 2007 08:27:12 +0200
+
+kbuild (1060-1) unstable; urgency=low
+
+  * New upstream version
+  * Bootstrap every architecture again because some binaries are buggy.
+
+ -- Torsten Werner <twerner@debian.org>  Sat,  9 Jun 2007 07:42:44 +0200
+
+kbuild (894-5) unstable; urgency=low
+
+  * Remove directory 'out' in clean target. (Closes: #424426)
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 19 May 2007 23:25:17 +0200
+
+kbuild (894-4) unstable; urgency=low
+
+  * Add hppa, ia64, mips, mipsel, powerpc, s390 to already bootstrapped
+    architectures.
+  * Add patch unused.diff to fix a build problem on alpha.
+
+ -- Torsten Werner <twerner@debian.org>  Mon, 14 May 2007 05:30:43 +0200
+
+kbuild (894-3) unstable; urgency=low
+
+  * Add yet another fix for the missing architectures.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 12 May 2007 18:32:30 +0200
+
+kbuild (894-2) unstable; urgency=low
+
+  * Complete the last (incomplete) patch.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 12 May 2007 15:20:34 +0200
+
+kbuild (894-1) unstable; urgency=low
+
+  * New upstream revision.
+  * Use the revision number from debian/changelog for debian/orig-tar.sh.
+  * Add Build-Depends: kbuild [amd64 i386].
+  * Add a patch to support all Debian architectures.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 12 May 2007 14:38:49 +0200
+
+kbuild (893-1) unstable; urgency=low
+
+  * Initial release (Closes: #422367)
+
+ -- Torsten Werner <twerner@debian.org>  Fri,  4 May 2007 20:35:40 +0200
+
--- kbuild-0.1.3svn1610.orig/debian/orig-tar.sh
+++ kbuild-0.1.3svn1610/debian/orig-tar.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+SVNROOT=$1
+VERSION=$2
+REVISION=$(echo $VERSION | sed -e's,.*svn,,')
+
+DIR=kbuild-$REVISION
+TAR=../kbuild_$VERSION.orig.tar.gz
+
+svn co -r $REVISION $SVNROOT $DIR
+(cd $DIR; kmk clean; mv out/*/release/obj/SvnInfo.kmk .)
+tar -c -z  --exclude '*/kBuild/bin*' --exclude '*/out/*' --exclude '*/.svn*' -f $TAR $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+
--- kbuild-0.1.3svn1610.orig/debian/links
+++ kbuild-0.1.3svn1610/debian/links
@@ -0,0 +1,22 @@
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_append.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ash.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cat.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cmp.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cp.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_echo.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mkdir.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mv.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_install.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ln.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_md5sum.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_printf.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_redirect.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rm.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rmdir.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_gmake.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_sed.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_test.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepPre.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepIDB.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kObjCache.1.gz
+
--- kbuild-0.1.3svn1610.orig/debian/control
+++ kbuild-0.1.3svn1610/debian/control
@@ -0,0 +1,33 @@
+Source: kbuild
+Section: devel
+Priority: extra
+Maintainer: Torsten Werner <twerner@debian.org>
+Build-Depends: autoconf, automake, byacc, cdbs, cvs, debhelper (>= 5), flex,
+ libacl1-dev, quilt
+Standards-Version: 3.7.3
+Homepage: http://svn.netlabs.org/kbuild
+Vcs-Svn: https://bollin.googlecode.com/svn/kbuild/trunk
+Vcs-Browser: http://bollin.googlecode.com/svn/kbuild/trunk
+
+Package: kbuild
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: framework for writing simple makefiles for complex tasks
+ The goals of the kBuild framework:
+  - Similar behavior cross all supported platforms.
+  - Flexibility, don't create unnecessary restrictions preventing ad-hoc
+    solutions.
+  - Makefile can very simple to write and maintain. 
+ .
+ There are four concepts being tried out in the current kBuild incaration:
+  - One configuration file for a subtree automatically included.
+  - Target configuration templates as the primary mechanism for makefile
+    simplification.
+  - Tools and SDKs for helping out the templates with flexibility.
+  - Non-recursive makefile method by using sub-makefiles.
+ .
+ kBuild does not provide any facilities for checking compiler/library/header
+ configurations, that's not in its scope. If this is important for your
+ project, check out the autoconf tool in the GNU build system. It is possible
+ to use kBuild together with autoconf if you like, but you might just as well
+ use the full GNU package.
--- kbuild-0.1.3svn1610.orig/debian/rules
+++ kbuild-0.1.3svn1610/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+YACC      := YACC=/usr/bin/byacc
+BOOTSTRAP := ASH=/bin/bash ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \
+  RM=/bin/rm INSTALL=/usr/bin/install $(YACC)
+
+build/kbuild:: debian/stamp-build
+debian/stamp-build:
+	$(info DEBUG: macros defined by gcc:)
+	-gcc -dM -E - < /dev/null
+	kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd` $(BOOTSTRAP)
+	kBuild/env.sh kmk rebuild PATH_INS=`pwd` $(YACC)
+	pod2man -c 'kBuild for Debian GNU/Linux' \
+	  -r kBuild-$(DEB_UPSTREAM_VERSION) debian/kmk.pod > debian/kmk.1
+	touch $@
+
+install/kbuild::
+	kBuild/env.sh kmk install NIX_INSTALL_DIR=/usr LDFLAGS=-Wl,--as-needed
+	cd out/*.*/release/usr/share/kBuild && chmod a-x *.kmk */*.kmk
+
+clean::
+	-kBuild/env.sh kmk uninstall
+	$(RM) -r debian/stamp-* debian/kmk.1 out kBuild/bin/*/*
+
+
+SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk
+
+get-orig-info:
+	svn info $(SVNROOT)
+
+get-orig-source:
+	sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION)
+
--- kbuild-0.1.3svn1610.orig/debian/install
+++ kbuild-0.1.3svn1610/debian/install
@@ -0,0 +1,2 @@
+out/*.*/release/usr /
+
--- kbuild-0.1.3svn1610.orig/debian/kmk.pod
+++ kbuild-0.1.3svn1610/debian/kmk.pod
@@ -0,0 +1,25 @@
+=head1 NAME
+
+kmk - framework for writing simple makefiles for complex tasks
+
+=head1 SYNOPSIS
+
+B<kmk> [S<I<options>>]
+
+=head1 DESCRIPTION
+
+kmk and its helper tools are an extension to GNU make to ease writing
+portable Makefile. There is not a lot of documentation though. A
+starting point is L<http://svn.netlabs.org/kbuild>.
+
+On Debian systems the kBuild binaries can be found in F</usr/bin> and its data
+files in F</usr/share/kBuild>.
+
+=head1 SEE ALSO
+
+L<make(1)>
+
+=head1 AUTHOR
+
+Torsten Werner <twerner@debian.org>
+
