[PATCH 2/2] Add Debian packaging

roland.dreier at gmail.com roland.dreier at gmail.com
Mon Oct 31 16:05:56 EDT 2011


From: Roland Dreier <roland at purestorage.com>

Add support for building .deb packages; to use, one can do

    $ cp -r packaging/debian debian
    $ dpkg-buildpackage -b

This of course requires a libdivecomputer package as a build prerequisite.

Signed-off-by: Roland Dreier <roland at digitalvampire.org>
---
 packaging/debian/changelog     |    5 +++++
 packaging/debian/compat        |    1 +
 packaging/debian/control       |   15 +++++++++++++++
 packaging/debian/copyright     |   17 +++++++++++++++++
 packaging/debian/rules         |    5 +++++
 packaging/debian/source/format |    1 +
 6 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 packaging/debian/changelog
 create mode 100644 packaging/debian/compat
 create mode 100644 packaging/debian/control
 create mode 100644 packaging/debian/copyright
 create mode 100755 packaging/debian/rules
 create mode 100644 packaging/debian/source/format

diff --git a/packaging/debian/changelog b/packaging/debian/changelog
new file mode 100644
index 0000000..875e3eb
--- /dev/null
+++ b/packaging/debian/changelog
@@ -0,0 +1,5 @@
+subsurface (1.1-20111026-git036fccd3-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Roland Dreier <roland at digitalvampire.org>  Tue, 25 Oct 2011 14:24:12 -0700
diff --git a/packaging/debian/compat b/packaging/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/packaging/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/packaging/debian/control b/packaging/debian/control
new file mode 100644
index 0000000..7c2aa36
--- /dev/null
+++ b/packaging/debian/control
@@ -0,0 +1,15 @@
+Source: subsurface
+Priority: optional
+Maintainer: Roland Dreier <roland at digitalvampire.org>
+Build-Depends: autoconf, automake, libtool, debhelper (>= 8), dh-autoreconf,
+ pkg-config, libgtk2.0-dev, libgconf2-dev, libxml2-dev, libdivecomputer-dev
+Standards-Version: 3.9.2
+Section: utils
+Homepage: http://subsurface.hohndel.org
+
+Package: subsurface
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: simple dive log program written in C
+ Subsurface is a simple dive log program written in C.
diff --git a/packaging/debian/copyright b/packaging/debian/copyright
new file mode 100644
index 0000000..cd049e0
--- /dev/null
+++ b/packaging/debian/copyright
@@ -0,0 +1,17 @@
+Initial Debianization:
+This package was debianized by Roland Dreier <roland at digitalvampire.org> on
+Tue, 25 Oct 2011 04:22:07 -0700.
+
+It was downloaded from git://subsurface.hohndel.org/subsurface.git
+
+Copyright:
+
+Copyright 2011 Linus Torvalds
+Copyright 2011 Dirk Hohndel
+
+License:
+
+GPLv2
+
+On Debian systems, the complete text of the GNU General Public License
+version 2 can be found in the file '/usr/share/common-licenses/GPL-2'
diff --git a/packaging/debian/rules b/packaging/debian/rules
new file mode 100755
index 0000000..e984e9b
--- /dev/null
+++ b/packaging/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+%:
+	dh $@
diff --git a/packaging/debian/source/format b/packaging/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/packaging/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
-- 
1.7.5.4



More information about the subsurface mailing list