summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-04-03 04:08:38 +0000
committerAlex Gorrod <alexg@wiredtiger.com>2014-04-03 04:08:38 +0000
commit514d9b9878f51ecf8a618076af3121b4e91b0653 (patch)
tree2615f87d0538257512a8375bb3d1cecdc45e56ec /dist
parentbeafb9afcc0270029576188dbb68cc772f863fc5 (diff)
downloadmongo-514d9b9878f51ecf8a618076af3121b4e91b0653.tar.gz
Add start of Debian packaging scripts.
To use these scripts: * Download a release of WiredTiger * Unpack the package, and rename a version of the package to be: wiredtiger_X.X.X.orig.tar.bz2 (note underscore) * Add the content of dist/package/debian to a folder into a 'debian' folder of the package you unpacked (I'm not sure if this is required) * From the root directory, run "debuild -us -uc"
Diffstat (limited to 'dist')
-rw-r--r--dist/package/debian/README.Debian8
-rw-r--r--dist/package/debian/README.source9
-rw-r--r--dist/package/debian/changelog5
-rw-r--r--dist/package/debian/compat1
-rw-r--r--dist/package/debian/control36
-rw-r--r--dist/package/debian/copyright26
-rw-r--r--dist/package/debian/docs2
-rw-r--r--dist/package/debian/files3
-rw-r--r--dist/package/debian/libwiredtiger-dev.dirs2
-rw-r--r--dist/package/debian/libwiredtiger-dev.install2
-rw-r--r--dist/package/debian/libwiredtiger-dev.substvars1
-rw-r--r--dist/package/debian/libwiredtiger.dirs1
-rw-r--r--dist/package/debian/libwiredtiger.install2
-rw-r--r--dist/package/debian/libwiredtiger.postinst.debhelper5
-rw-r--r--dist/package/debian/libwiredtiger.postrm.debhelper5
-rw-r--r--dist/package/debian/libwiredtiger.substvars2
-rwxr-xr-xdist/package/debian/rules13
-rw-r--r--dist/package/debian/shlibs.local1
-rw-r--r--dist/package/debian/source/format1
-rw-r--r--dist/package/debian/watch8
-rw-r--r--dist/package/debian/wiredtiger-util.dirs1
-rw-r--r--dist/package/debian/wiredtiger-util.install1
-rw-r--r--dist/package/debian/wiredtiger-util.substvars2
-rw-r--r--dist/package/debian/wiredtiger.doc-base12
24 files changed, 149 insertions, 0 deletions
diff --git a/dist/package/debian/README.Debian b/dist/package/debian/README.Debian
new file mode 100644
index 00000000000..2028c0740dc
--- /dev/null
+++ b/dist/package/debian/README.Debian
@@ -0,0 +1,8 @@
+wiredtiger for Debian
+---------------------
+
+This is a package of the WiredTiger database library for Debian based
+systems. For more information on WiredTiger please visit:
+http://www.wiredtiger.com or contact us at info@wiredtiger.com
+
+ -- Alex <alexg@wiredtiger.com> Tue, 01 Apr 2014 15:50:02 +1100
diff --git a/dist/package/debian/README.source b/dist/package/debian/README.source
new file mode 100644
index 00000000000..ddd6dc94c3d
--- /dev/null
+++ b/dist/package/debian/README.source
@@ -0,0 +1,9 @@
+wiredtiger for Debian
+---------------------
+
+<this file describes information about the source package, see Debian policy
+manual section 4.14. You WILL either need to modify or delete this file>
+
+
+
+
diff --git a/dist/package/debian/changelog b/dist/package/debian/changelog
new file mode 100644
index 00000000000..1481a506d6d
--- /dev/null
+++ b/dist/package/debian/changelog
@@ -0,0 +1,5 @@
+wiredtiger (2.1.2-1) UNRELEASED; urgency=low
+
+ * Initial release of WiredTiger
+
+ -- Alex <alexg@wiredtiger.com> Tue, 01 Apr 2014 15:50:02 +1100
diff --git a/dist/package/debian/compat b/dist/package/debian/compat
new file mode 100644
index 00000000000..45a4fb75db8
--- /dev/null
+++ b/dist/package/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/dist/package/debian/control b/dist/package/debian/control
new file mode 100644
index 00000000000..5ad2b71b4b9
--- /dev/null
+++ b/dist/package/debian/control
@@ -0,0 +1,36 @@
+Source: wiredtiger
+Priority: extra
+Maintainer: Alex Gorrod <alexg@wiredtiger.com>
+Build-Depends: debhelper (>= 8.0.0), autotools-dev
+Standards-Version: 3.9.4
+Section: libs
+Homepage: http://www.wiredtiger.com
+#Vcs-Git: git://git.debian.org/collab-maint/wiredtiger.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/wiredtiger.git;a=summary
+
+Package: libwiredtiger-dev
+Architecture: any
+Section: libdevel
+Priority: extra
+Depends: ${misc:Depends}
+Description: WiredTiger Database Libraries [development]
+ This is the development package which contains headers and static
+ libraries for the WiredTiger database library.
+
+Package: libwiredtiger
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: WiredTiger Database Libraries [runtime]
+ This is the runtime package for programs that use the WiredTiger
+ database library.
+
+Package: wiredtiger-util
+Architecture: any
+Section: database
+Priority: extra
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: WiredTiger Database Utilities
+ This package provides tools for manipulating WiredTiger databases
+
diff --git a/dist/package/debian/copyright b/dist/package/debian/copyright
new file mode 100644
index 00000000000..1394ad8b4bd
--- /dev/null
+++ b/dist/package/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: wiredtiger
+Source: <http://www.wiredtiger.com>
+
+Files: *
+Copyright: (c) 2008-2014 WiredTiger, Inc.
+License:
+ This program is free software: you can redistribute it and/or modify it under
+ the terms of either version 2 or version 3 of the GNU General Public License
+ as published by the Free Software Foundation.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2' and
+ `/usr/share/common-licenses/GPL-3'.
+ .
+ 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.
+ .
+ For a license to use the WiredTiger software under conditions other than those
+ described by the GNU General Public License, or for technical support for this
+ software, contact WiredTiger, Inc. at info@wiredtiger.com.
+ .
+ For further information, see the licensing section in the documentation.
+
diff --git a/dist/package/debian/docs b/dist/package/debian/docs
new file mode 100644
index 00000000000..50bd824bb7b
--- /dev/null
+++ b/dist/package/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/dist/package/debian/files b/dist/package/debian/files
new file mode 100644
index 00000000000..53662d0c48e
--- /dev/null
+++ b/dist/package/debian/files
@@ -0,0 +1,3 @@
+libwiredtiger-dev_2.1.2-1_amd64.deb libdevel extra
+libwiredtiger_2.1.2-1_amd64.deb libs extra
+wiredtiger-util_2.1.2-1_amd64.deb database extra
diff --git a/dist/package/debian/libwiredtiger-dev.dirs b/dist/package/debian/libwiredtiger-dev.dirs
new file mode 100644
index 00000000000..da07fddd09b
--- /dev/null
+++ b/dist/package/debian/libwiredtiger-dev.dirs
@@ -0,0 +1,2 @@
+usr/include
+usr/lib
diff --git a/dist/package/debian/libwiredtiger-dev.install b/dist/package/debian/libwiredtiger-dev.install
new file mode 100644
index 00000000000..deb99408b27
--- /dev/null
+++ b/dist/package/debian/libwiredtiger-dev.install
@@ -0,0 +1,2 @@
+usr/include/*
+usr/lib/pkgconfig/*
diff --git a/dist/package/debian/libwiredtiger-dev.substvars b/dist/package/debian/libwiredtiger-dev.substvars
new file mode 100644
index 00000000000..abd3ebebc30
--- /dev/null
+++ b/dist/package/debian/libwiredtiger-dev.substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/dist/package/debian/libwiredtiger.dirs b/dist/package/debian/libwiredtiger.dirs
new file mode 100644
index 00000000000..68457717bd8
--- /dev/null
+++ b/dist/package/debian/libwiredtiger.dirs
@@ -0,0 +1 @@
+usr/lib
diff --git a/dist/package/debian/libwiredtiger.install b/dist/package/debian/libwiredtiger.install
new file mode 100644
index 00000000000..27fae7a0850
--- /dev/null
+++ b/dist/package/debian/libwiredtiger.install
@@ -0,0 +1,2 @@
+usr/lib/libwiredtiger*.a
+usr/lib/libwiredtiger*.so
diff --git a/dist/package/debian/libwiredtiger.postinst.debhelper b/dist/package/debian/libwiredtiger.postinst.debhelper
new file mode 100644
index 00000000000..3d89d3ef629
--- /dev/null
+++ b/dist/package/debian/libwiredtiger.postinst.debhelper
@@ -0,0 +1,5 @@
+# Automatically added by dh_makeshlibs
+if [ "$1" = "configure" ]; then
+ ldconfig
+fi
+# End automatically added section
diff --git a/dist/package/debian/libwiredtiger.postrm.debhelper b/dist/package/debian/libwiredtiger.postrm.debhelper
new file mode 100644
index 00000000000..7f44047270f
--- /dev/null
+++ b/dist/package/debian/libwiredtiger.postrm.debhelper
@@ -0,0 +1,5 @@
+# Automatically added by dh_makeshlibs
+if [ "$1" = "remove" ]; then
+ ldconfig
+fi
+# End automatically added section
diff --git a/dist/package/debian/libwiredtiger.substvars b/dist/package/debian/libwiredtiger.substvars
new file mode 100644
index 00000000000..1e00e6fd7a6
--- /dev/null
+++ b/dist/package/debian/libwiredtiger.substvars
@@ -0,0 +1,2 @@
+shlibs:Depends=libc6 (>= 2.14)
+misc:Depends=
diff --git a/dist/package/debian/rules b/dist/package/debian/rules
new file mode 100755
index 00000000000..312e24d2e6f
--- /dev/null
+++ b/dist/package/debian/rules
@@ -0,0 +1,13 @@
+#!/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
+
+%:
+ dh $@ --with autotools-dev
diff --git a/dist/package/debian/shlibs.local b/dist/package/debian/shlibs.local
new file mode 100644
index 00000000000..a3b3face389
--- /dev/null
+++ b/dist/package/debian/shlibs.local
@@ -0,0 +1 @@
+libwiredtiger 2.1.2 wiredtiger (>> 2.1.2-0), wiredtiger (<< 2.1.2-99)
diff --git a/dist/package/debian/source/format b/dist/package/debian/source/format
new file mode 100644
index 00000000000..163aaf8d82b
--- /dev/null
+++ b/dist/package/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/dist/package/debian/watch b/dist/package/debian/watch
new file mode 100644
index 00000000000..9287dca3d91
--- /dev/null
+++ b/dist/package/debian/watch
@@ -0,0 +1,8 @@
+# Watch control file for uscan
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+http://source.wiredtiger.com/releases/wiredtiger-(.*)\.tar\.bz2
diff --git a/dist/package/debian/wiredtiger-util.dirs b/dist/package/debian/wiredtiger-util.dirs
new file mode 100644
index 00000000000..e7724817552
--- /dev/null
+++ b/dist/package/debian/wiredtiger-util.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/dist/package/debian/wiredtiger-util.install b/dist/package/debian/wiredtiger-util.install
new file mode 100644
index 00000000000..1df36c612fb
--- /dev/null
+++ b/dist/package/debian/wiredtiger-util.install
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/dist/package/debian/wiredtiger-util.substvars b/dist/package/debian/wiredtiger-util.substvars
new file mode 100644
index 00000000000..4dd9c7cf955
--- /dev/null
+++ b/dist/package/debian/wiredtiger-util.substvars
@@ -0,0 +1,2 @@
+shlibs:Depends=libc6 (>= 2.14), wiredtiger (>> 2.1.2-0), wiredtiger (<< 2.1.2-99)
+misc:Depends=
diff --git a/dist/package/debian/wiredtiger.doc-base b/dist/package/debian/wiredtiger.doc-base
new file mode 100644
index 00000000000..faa994f156f
--- /dev/null
+++ b/dist/package/debian/wiredtiger.doc-base
@@ -0,0 +1,12 @@
+Document: wiredtiger
+Title: Debian wiredtiger Manual
+Author: WiredTiger, Inc.
+Abstract: WiredTiger is a database storage engine library.
+Section: library
+
+Format: postscript
+Files: /usr/share/doc/wiredtiger/wiredtiger.ps.gz
+
+Format: HTML
+Index: /usr/share/doc/wiredtiger/html/index.html
+Files: /usr/share/doc/wiredtiger/html/*.html