Add debian/ubuntu packaging.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d03848
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+debian/files
+debian/*.substvars
+debian/*.debhelper.log
+debian/*/*
diff --git a/Makefile b/Makefile
index 6f82544..764bd23 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,13 @@
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of Vincent Driessen.
#
-prefix=/usr/local
+
+# Determine if we're inside a debian build ..
+ifdef DEB_BUILD_ARCH
+ prefix=$(DESTDIR)/usr/
+else
+ prefix=/usr/local
+endif
# files that need mode 755
EXEC_FILES=git-flow
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f889596
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gitflow (0.4.1) unstable; urgency=low
+
+ * Initial Debian Packaging
+
+ -- Kiall Mac Innes <kiall@managedit.ie> Mon, 25 Apr 2011 23:51:42 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b80cc47
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: gitflow
+Section: unknown
+Priority: extra
+Maintainer: Kiall Mac Innes <kiall@managedit.ie>
+Build-Depends: debhelper (>= 7.0.50~), git
+Standards-Version: 3.9.1
+Homepage: http://nvie.com/posts/a-successful-git-branching-model/
+Vcs-Git: https://github.com/nvie/gitflow.git
+Vcs-Browser: https://github.com/nvie/gitflow
+
+Package: gitflow
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Git extensions to provide high-level repository operations for Vincent Driessen's branching model
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a08359a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,40 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: gitflow
+Source: <url://example.com>
+
+Files: *
+Copyright: <years> <put author's name and email here>
+ <years> <likewise for another author>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2011 Kiall <kiall@managedit.ie>
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..ceda507
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.mdown
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..79092d6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+override_dh_testdir:
+ dh_testdir
+ git submodule init && git submodule update
+%:
+ dh $@