summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2013-11-15 22:16:50 +0000
committerJelmer Vernooij <jelmer@samba.org>2013-11-15 22:16:50 +0000
commita8d743fe4abf91b90f20179fbb79593429dd88cc (patch)
tree32c194697dbf05f6a7cde2c0994ee2b2af18ca57
parent14d20ec9b386aaf657cdf394865edbfbbe3fa850 (diff)
Package ntdb 1.0.
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control94
-rw-r--r--debian/copyright12
-rw-r--r--debian/gbp.conf4
-rw-r--r--debian/libntdb-dev.dirs2
-rw-r--r--debian/libntdb-dev.docs1
-rw-r--r--debian/libntdb-dev.install3
-rw-r--r--debian/libntdb1.install1
-rw-r--r--debian/libntdb1.symbols81
-rw-r--r--debian/ntdb-tools.install2
-rw-r--r--debian/python-ntdb.install1
-rwxr-xr-xdebian/rules62
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rw-r--r--debian/tests/python-testsuite2
-rw-r--r--debian/watch2
17 files changed, 277 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8904fa7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ntdb (1.0-1) UNRELEASED; urgency=low
+
+ * Initial release. Closes: #729165
+
+ -- Jelmer Vernooij <jelmer@debian.org> Fri, 15 Nov 2013 22:06:52 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..556a38e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,94 @@
+Source: ntdb
+Section: devel
+Priority: optional
+Maintainer: Jelmer Vernooij <jelmer@debian.org>
+Build-Depends: debhelper (>= 9),
+ docbook-xml,
+ docbook-xsl,
+ python-all-dbg (>= 2.6.6-3),
+ python-all-dev (>= 2.6.6-3),
+ xsltproc
+Homepage: http://tdb.samba.org/
+Standards-Version: 3.9.4
+Vcs-Git: git://git.debian.org/pkg-samba/ntdb.git
+XS-Testsuite: autopkgtest
+
+Package: libntdb1
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Architecture: any
+Section: libs
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Trivial Database - shared library
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains the shared library file.
+
+Package: ntdb-tools
+Section: utils
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Trivial Database - bundled binaries
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains bundled test and utility binaries
+
+Package: libntdb-dev
+Section: libdevel
+Architecture: any
+Depends: libc6-dev, libntdb1 (= ${binary:Version}), ${misc:Depends}
+Description: Trivial Database - development files
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains the development files.
+
+Package: libntdb1-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: libntdb1 (= ${binary:Version}), ${misc:Depends}
+Recommends: libc6-dbg
+Description: Trivial Database - debug symbols
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains the debug symbols.
+
+Package: python-ntdb
+Section: python
+Architecture: any
+Depends: libntdb1 (= ${binary:Version}),
+ ${misc:Depends},
+ ${python:Depends},
+ ${shlibs:Depends}
+Provides: ${python:Provides}
+Description: Python bindings for TDB
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains the Python bindings.
+
+Package: python-ntdb-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: python-ntdb (= ${binary:Version}),
+ ${misc:Depends},
+ ${python:Depends},
+ ${shlibs:Depends}
+Recommends: python-dbg, libntdb1-dbg
+Provides: ${python:Provides}
+Description: Python bindings for TDB - debug extension
+ This is a simple database API. It is modelled after the structure
+ of GDBM. TDB features, unlike GDBM, multiple writers support with
+ appropriate locking and transactions.
+ .
+ This package contains the Python debug extension.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d4026b4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,12 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ntdb
+Upstream-Contact: Rusty Russell <rusty@samba.org>
+Source: http://tdb.samba.org/
+
+Files: debian/*
+Copyright:
+ 2013 Jelmer Vernooij <jelmer@samba.org>
+License: LGPL-3+
+ Debian packaging is licensed under the GNU Lesser General Public License,
+ version 3 or later. The text of the license is available on Debian
+ systems in the /usr/share/common-licenses/LGPL-3 file.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cdef61d
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,4 @@
+[DEFAULT]
+overlay = True
+sign-tags = True
+pristine-tar = False
diff --git a/debian/libntdb-dev.dirs b/debian/libntdb-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/debian/libntdb-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/debian/libntdb-dev.docs b/debian/libntdb-dev.docs
new file mode 100644
index 0000000..dca5b3b
--- /dev/null
+++ b/debian/libntdb-dev.docs
@@ -0,0 +1 @@
+docs/README
diff --git a/debian/libntdb-dev.install b/debian/libntdb-dev.install
new file mode 100644
index 0000000..c4c0c0f
--- /dev/null
+++ b/debian/libntdb-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/ntdb.pc
diff --git a/debian/libntdb1.install b/debian/libntdb1.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libntdb1.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libntdb1.symbols b/debian/libntdb1.symbols
new file mode 100644
index 0000000..b24b303
--- /dev/null
+++ b/debian/libntdb1.symbols
@@ -0,0 +1,81 @@
+libtdb.so.1 libtdb1 #MINVER#
+ TDB_1.2.10@TDB_1.2.10 1.2.10
+ TDB_1.2.11@TDB_1.2.11 1.2.11
+ TDB_1.2.12@TDB_1.2.12 1.2.12
+ TDB_1.2.1@TDB_1.2.1 1.2.7+git20101215
+ TDB_1.2.2@TDB_1.2.2 1.2.7+git20101215
+ TDB_1.2.3@TDB_1.2.3 1.2.9+git20120207
+ TDB_1.2.4@TDB_1.2.4 1.2.9+git20120207
+ TDB_1.2.5@TDB_1.2.5 1.2.7+git20101215
+ TDB_1.2.6@TDB_1.2.6 1.2.9+git20120207
+ TDB_1.2.7@TDB_1.2.7 1.2.9+git20120207
+ TDB_1.2.8@TDB_1.2.8 1.2.9+git20120207
+ TDB_1.2.9@TDB_1.2.9 1.2.9
+ tdb_add_flags@TDB_1.2.1 1.2.7+git20101214
+ tdb_append@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainlock@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainlock_mark@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainlock_nonblock@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainlock_read@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainlock_unmark@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainunlock@TDB_1.2.1 1.2.7+git20101214
+ tdb_chainunlock_read@TDB_1.2.1 1.2.7+git20101214
+ tdb_check@TDB_1.2.1 1.2.7+git20101214
+ tdb_close@TDB_1.2.1 1.2.7+git20101214
+ tdb_delete@TDB_1.2.1 1.2.7+git20101214
+ tdb_dump_all@TDB_1.2.1 1.2.7+git20101214
+ tdb_enable_seqnum@TDB_1.2.1 1.2.7+git20101214
+ tdb_error@TDB_1.2.1 1.2.7+git20101214
+ tdb_errorstr@TDB_1.2.1 1.2.7+git20101214
+ tdb_exists@TDB_1.2.1 1.2.7+git20101214
+ tdb_fd@TDB_1.2.1 1.2.7+git20101214
+ tdb_fetch@TDB_1.2.1 1.2.7+git20101214
+ tdb_firstkey@TDB_1.2.1 1.2.7+git20101214
+ tdb_freelist_size@TDB_1.2.1 1.2.7+git20101214
+ tdb_get_flags@TDB_1.2.1 1.2.7+git20101214
+ tdb_get_logging_private@TDB_1.2.1 1.2.7+git20101214
+ tdb_get_seqnum@TDB_1.2.1 1.2.7+git20101214
+ tdb_hash_size@TDB_1.2.1 1.2.7+git20101214
+ tdb_increment_seqnum_nonblock@TDB_1.2.1 1.2.7+git20101214
+ tdb_jenkins_hash@TDB_1.2.5 1.2.7+git20101214
+ tdb_lock_nonblock@TDB_1.2.1 1.2.10
+ tdb_lockall@TDB_1.2.1 1.2.7+git20101214
+ tdb_lockall_mark@TDB_1.2.1 1.2.7+git20101214
+ tdb_lockall_nonblock@TDB_1.2.1 1.2.7+git20101214
+ tdb_lockall_read@TDB_1.2.1 1.2.7+git20101214
+ tdb_lockall_read_nonblock@TDB_1.2.1 1.2.7+git20101214
+ tdb_lockall_unmark@TDB_1.2.1 1.2.7+git20101214
+ tdb_log_fn@TDB_1.2.1 1.2.7+git20101214
+ tdb_logging_function@TDB_1.2.1 1.2.7+git20101214
+ tdb_map_size@TDB_1.2.1 1.2.7+git20101214
+ tdb_name@TDB_1.2.1 1.2.7+git20101214
+ tdb_nextkey@TDB_1.2.1 1.2.7+git20101214
+ tdb_null@TDB_1.2.2 1.2.7+git20101214
+ tdb_open@TDB_1.2.1 1.2.7+git20101214
+ tdb_open_ex@TDB_1.2.1 1.2.7+git20101214
+ tdb_parse_record@TDB_1.2.1 1.2.7+git20101214
+ tdb_printfreelist@TDB_1.2.1 1.2.7+git20101214
+ tdb_remove_flags@TDB_1.2.1 1.1.2~git20080520
+ tdb_reopen@TDB_1.2.1 1.2.7+git20101214
+ tdb_reopen_all@TDB_1.2.1 1.2.7+git20101214
+ tdb_repack@TDB_1.2.1 1.1.2~git20081222
+ tdb_rescue@TDB_1.2.11 1.2.11
+ tdb_set_logging_function@TDB_1.2.1 1.2.7+git20101214
+ tdb_set_max_dead@TDB_1.2.1 1.2.7+git20101214
+ tdb_setalarm_sigptr@TDB_1.2.1 1.2.7+git20101214
+ tdb_store@TDB_1.2.1 1.2.7+git20101214
+ tdb_summary@TDB_1.2.9 1.2.9
+ tdb_transaction_cancel@TDB_1.2.1 1.2.7+git20101214
+ tdb_transaction_commit@TDB_1.2.1 1.2.7+git20101214
+ tdb_transaction_prepare_commit@TDB_1.2.1 1.2.7+git20101214
+ tdb_transaction_start@TDB_1.2.1 1.2.7+git20101214
+ tdb_transaction_start_nonblock@TDB_1.2.1 1.2.7+git20101214
+ tdb_transaction_write_lock_mark@TDB_1.2.10 1.2.10
+ tdb_transaction_write_lock_unmark@TDB_1.2.10 1.2.10
+ tdb_traverse@TDB_1.2.1 1.2.7+git20101214
+ tdb_traverse_read@TDB_1.2.1 1.2.7+git20101214
+ tdb_unlock@TDB_1.2.1 1.2.10
+ tdb_unlockall@TDB_1.2.1 1.2.7+git20101214
+ tdb_unlockall_read@TDB_1.2.1 1.2.7+git20101214
+ tdb_validate_freelist@TDB_1.2.1 1.2.7+git20101214
+ tdb_wipe_all@TDB_1.2.1 1.1.2~git20080520
diff --git a/debian/ntdb-tools.install b/debian/ntdb-tools.install
new file mode 100644
index 0000000..f418ff7
--- /dev/null
+++ b/debian/ntdb-tools.install
@@ -0,0 +1,2 @@
+usr/bin/tdb*
+usr/share/man/man8/*.8
diff --git a/debian/python-ntdb.install b/debian/python-ntdb.install
new file mode 100644
index 0000000..607c065
--- /dev/null
+++ b/debian/python-ntdb.install
@@ -0,0 +1 @@
+usr/lib/python*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..aba7a96
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
+CFLAGS += -g -Wall
+SHLD_FLAGS += -shared -Wl,--as-needed
+
+DESTDIR=$(CURDIR)/debian/tmp
+export PYTHON=$(shell which `pyversions -d`)
+export PYTHON_CONFIG=$(PYTHON)-config
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+%:
+ dh $* --with python2
+
+override_dh_auto_configure:
+ PYTHON="$(PYTHON)" PYTHON_CONFIG="$(PYTHON_CONFIG)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+ ./configure --prefix=/usr --disable-rpath-install --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+get-packaged-orig-source:
+ ./debian/build-orig.sh
+
+override_dh_python2:
+ dh_python2 --no-guessing-versions
+
+override_dh_auto_build:
+ $(MAKE) all SHLD_FLAGS="$(SHLD_FLAGS)"
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ $(MAKE) check
+endif
+
+override_dh_auto_clean:
+ [ ! -f Makefile ] || $(MAKE) distclean
+ rm -rf build
+ # Waf should be doing this; see
+ # https://bugzilla.samba.org/show_bug.cgi?id=8854
+ rm -f .lock-wscript
+ # Waf should be doing this; see
+ # https://bugzilla.samba.org/show_bug.cgi?id=8855
+ rm -f buildtools/wafsamba/*.pyc \
+ buildtools/wafadmin/*.pyc \
+ buildtools/wafadmin/Tools/*.pyc
+
+override_dh_auto_install:
+ $(MAKE) install DESTDIR=$(DESTDIR)
+ # Waf should be doing this..
+ ar cr libntdb.a bin/default/common/*.o
+ mv libntdb.a $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_strip:
+ dh_strip -p libntdb1 --dbg-package=libntdb1-dbg
+ dh_strip -p python-ntdb --dbg-package=python-ntdb-dbg
+ dh_strip -p ntdb-tools
+
+override_dh_makeshlibs:
+ dh_makeshlibs -- -c4
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..154628f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: python-testsuite
+Depends: python-ntdb, python
+Features: build-needed
diff --git a/debian/tests/python-testsuite b/debian/tests/python-testsuite
new file mode 100644
index 0000000..31f0aa5
--- /dev/null
+++ b/debian/tests/python-testsuite
@@ -0,0 +1,2 @@
+#!/bin/sh
+python ${0%/*}/../../python/tests/simple.py
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..846a084
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://ftp.samba.org/pub/tdb ntdb-(.+).tar.gz