debian/0000755000000000000000000000000012254274343007174 5ustar debian/liblmdb0.symbols0000644000000000000000000000325112254274264012276 0ustar liblmdb.so.0 liblmdb0 #MINVER# mdb_cmp@Base 0.9.7 mdb_cursor_close@Base 0.9.7 mdb_cursor_count@Base 0.9.7 mdb_cursor_dbi@Base 0.9.7 mdb_cursor_del@Base 0.9.7 mdb_cursor_get@Base 0.9.7 mdb_cursor_open@Base 0.9.7 mdb_cursor_put@Base 0.9.7 mdb_cursor_renew@Base 0.9.7 mdb_cursor_txn@Base 0.9.7 mdb_dbi_close@Base 0.9.7 mdb_dbi_flags@Base 0.9.7 mdb_dbi_open@Base 0.9.7 mdb_dcmp@Base 0.9.7 mdb_del@Base 0.9.7 mdb_drop@Base 0.9.7 mdb_env_close@Base 0.9.7 mdb_env_copy@Base 0.9.7 mdb_env_copyfd@Base 0.9.6 mdb_env_create@Base 0.9.7 mdb_env_get_fd@Base 0.9.9 mdb_env_get_flags@Base 0.9.7 mdb_env_get_maxkeysize@Base 0.9.7 mdb_env_get_maxreaders@Base 0.9.7 mdb_env_get_path@Base 0.9.7 mdb_env_info@Base 0.9.7 mdb_env_open@Base 0.9.7 mdb_env_set_flags@Base 0.9.7 mdb_env_set_mapsize@Base 0.9.7 mdb_env_set_maxdbs@Base 0.9.7 mdb_env_set_maxreaders@Base 0.9.7 mdb_env_stat@Base 0.9.7 mdb_env_sync@Base 0.9.7 mdb_get@Base 0.9.7 mdb_mid2l_append@Base 0.9.7 mdb_mid2l_insert@Base 0.9.7 mdb_mid2l_search@Base 0.9.7 mdb_midl_alloc@Base 0.9.7 mdb_midl_append@Base 0.9.7 mdb_midl_append_list@Base 0.9.7 mdb_midl_append_range@Base 0.9.7 mdb_midl_free@Base 0.9.7 mdb_midl_need@Base 0.9.7 mdb_midl_search@Base 0.9.7 mdb_midl_shrink@Base 0.9.7 mdb_midl_sort@Base 0.9.7 mdb_put@Base 0.9.7 mdb_reader_check@Base 0.9.7 mdb_reader_list@Base 0.9.7 mdb_set_compare@Base 0.9.7 mdb_set_dupsort@Base 0.9.7 mdb_set_relctx@Base 0.9.7 mdb_set_relfunc@Base 0.9.7 mdb_stat@Base 0.9.7 mdb_strerror@Base 0.9.7 mdb_txn_abort@Base 0.9.7 mdb_txn_begin@Base 0.9.7 mdb_txn_commit@Base 0.9.7 mdb_txn_env@Base 0.9.7 mdb_txn_renew@Base 0.9.7 mdb_txn_reset@Base 0.9.7 mdb_version@Base 0.9.7 debian/liblmdb-dev.install0000644000000000000000000000006512254274264012750 0ustar usr/include usr/lib/*/liblmdb.so usr/lib/*/liblmdb.a debian/lmdb-doc.manpages0000644000000000000000000000003512254274264012372 0ustar libraries/liblmdb/man/man3/* debian/liblmdb0.install0000644000000000000000000000002712254274264012252 0ustar usr/lib/*/liblmdb.so.* debian/copyright0000644000000000000000000000513112254274264011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Howard Chu, Symas Corp. Upstream-Contact: Howard Chu Source: https://gitorious.org/mdb/mdb Files: * Copyright: 2011-2013 Howard Chu, Symas Corp. License: OpenLDAP-2.8 Files: debian/* Copyright: 2013 Ondřej Surý License: OpenLDAP-2.8 License: OpenLDAP-2.8 License: The OpenLDAP Public License Version 2.8, 17 August 2003 . Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions in source form must retain copyright statements and notices, . 2. Redistributions in binary form must reproduce applicable copyright statements and notices, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution, and . 3. Redistributions must contain a verbatim copy of this document. . The OpenLDAP Foundation may revise this license from time to time. Each revision is distinguished by a version number. You may use this Software under terms of this license revision or under the terms of any subsequent revision of the license. . THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED 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 OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) OR OWNER(S) OF THE SOFTWARE 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. . The names of the authors and copyright holders must not be used in advertising or otherwise to promote the sale, use or other dealing in this Software without specific, written prior permission. Title to copyright in this Software shall at all times remain with copyright holders. . OpenLDAP is a registered trademark of the OpenLDAP Foundation. . Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, California, USA. All Rights Reserved. Permission to copy and distribute verbatim copies of this document is granted. debian/lmdb-doc.docs0000644000000000000000000000002712254274264011530 0ustar libraries/liblmdb/html debian/source/0000755000000000000000000000000012254274264010476 5ustar debian/source/format0000644000000000000000000000001412254274264011704 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000200512254274264011045 0ustar lmdb (0.9.10-1) unstable; urgency=low * New upstream version 0.9.10 * Properly add Breaks&Replaces liblmdb-dev (<< 0.9.9-1) to lmdb-doc (Closes: #728165) -- Ondřej Surý Wed, 18 Dec 2013 11:27:57 +0100 lmdb (0.9.9-1) unstable; urgency=low * New upstream version 0.9.9 * Move manpages from liblmdb-dev to lmdb-doc package (Closes: #723665) * Merge all debian patches to single maintainable patch * Update liblmdb0 symbols -- Ondřej Surý Fri, 25 Oct 2013 10:00:17 +0200 lmdb (0.9.7-1) unstable; urgency=low * New upstream version 0.9.7 * Initial release based on work by Jean-Christophe Dubacq (Closes: #694757) * Debian changes from upstream: + The binaries are linked with shared library (not the static) + The lmdb library now has a proper SONAME + MultiArch: The lmdb library is installed into /usr/lib/ * Add lmdb-doc with doxygen generated documentation -- Ondřej Surý Mon, 19 Aug 2013 10:47:52 +0200 debian/lmdb-utils.install0000644000000000000000000000003712254274264012642 0ustar usr/bin/* usr/share/man/man1/* debian/control0000644000000000000000000000751312254274264010607 0ustar Source: lmdb Section: database Priority: optional Maintainer: Debian Berkeley DB Group Uploaders: Ondřej Surý Build-Depends: debhelper (>= 9), doxygen Standards-Version: 3.9.4 Homepage: http://symas.com/mdb/ Package: lmdb-utils Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: foreign Description: Lightning Memory-Mapped Database Utilities This package provides tools for manipulating LMDB databases: * mdb_stat - LMDB environment status tool * mdb_copy - LMDB environment copy tool . Lighting Memory-Mapped Database (LMDB) is an ultra-fast, ultra-compact key-value embedded data store developed for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM). Package: lmdb-dbg Architecture: any Section: debug Priority: extra Pre-Depends: multiarch-support Depends: liblmdb0 (= ${binary:Version}), ${misc:Depends} Multi-Arch: same Description: Lightning Memory-Mapped Database debug files This package provides the detached debug symbols for the LMDB libraries and utilities. . Lighting Memory-Mapped Database (LMDB) is an ultra-fast, ultra-compact key-value embedded data store developed for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM). Package: liblmdb0 Architecture: any Section: libs Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Lightning Memory-Mapped Database shared library This package contains the LMDB shared library. . Lighting Memory-Mapped Database (LMDB) is an ultra-fast, ultra-compact key-value embedded data store developed for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM). Package: liblmdb-dev Architecture: any Section: libdevel Pre-Depends: multiarch-support Multi-Arch: same Depends: liblmdb0 (= ${binary:Version}), ${misc:Depends} Recommends: lmdb-doc Description: Lightning Memory-Mapped Database development files This package contains the development libraries, header files. Install lmdb-doc package for man pages. . Lighting Memory-Mapped Database (LMDB) is an ultra-fast, ultra-compact key-value embedded data store developed for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM). Package: lmdb-doc Architecture: all Section: doc Depends: ${misc:Depends} Breaks: liblmdb-dev (<< 0.9.9-1) Replaces: liblmdb-dev (<< 0.9.9-1) Description: Lightning Memory-Mapped Database doxygen documentation This package contains the doxygen generated documentation and the man pages for the LMDB library. . Lighting Memory-Mapped Database (LMDB) is an ultra-fast, ultra-compact key-value embedded data store developed for the OpenLDAP Project. It uses memory-mapped files, so it has the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space, (it is not limited to the size of physical RAM). debian/rules0000755000000000000000000000126112254274264010256 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_HOST_MULTIARCH MANPAGES=compat.3 debug.3 errors.3 idls.3 internal.3 lmdb.h.3 mt_dbflag.3 readers.3 todo.3 Version.3 %: dh $@ -Dlibraries/liblmdb/ override_dh_auto_clean: dh_auto_clean -Dlibraries/liblmdb/ rm -rf html man override_dh_auto_build: dh_auto_build -Dlibraries/liblmdb/ cd libraries/liblmdb && doxygen cd libraries/liblmdb && \ for m in $(MANPAGES); do \ mv man/man3/$$m man/man3/mdb_$$m; \ done override_dh_strip: dh_strip --dbg-package=lmdb-dbg override_dh_install: dh_install -X.la --fail-missing override_dh_auto_test: dh_auto_test -Dlibraries/liblmdb/ debian/patches/0000755000000000000000000000000012254274264010625 5ustar debian/patches/0000_debian_quirks.patch0000644000000000000000000000516112254274264015130 0ustar --- lmdb.orig/libraries/liblmdb/Makefile +++ lmdb/libraries/liblmdb/Makefile @@ -23,45 +23,53 @@ OPT = -O2 -g CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS) LDLIBS = SOLIBS = -prefix = /usr/local +SOVER = 0 +prefix = /usr +INSTALL = cp -d -p ######################################################################## IHDRS = lmdb.h ILIBS = liblmdb.a liblmdb.so +ELIBS = liblmdb.so.$(SOVER) liblmdb.so.$(SOVER).0.0 IPROGS = mdb_stat mdb_copy IDOCS = mdb_stat.1 mdb_copy.1 PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5 all: $(ILIBS) $(PROGS) install: $(ILIBS) $(IPROGS) $(IHDRS) - for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done - for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done - for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done - for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done + for d in bin lib/$(DEB_HOST_MULTIARCH) include share/man/man1; do mkdir -p $(DESTDIR)$(prefix)/$$d; done + for f in $(IPROGS); do $(INSTALL) $$f $(DESTDIR)$(prefix)/bin; done + for f in $(ILIBS); do $(INSTALL) $$f $(DESTDIR)$(prefix)/lib/$(DEB_HOST_MULTIARCH); done + for f in $(ELIBS); do $(INSTALL) $$f $(DESTDIR)$(prefix)/lib/$(DEB_HOST_MULTIARCH); done + for f in $(IHDRS); do $(INSTALL) $$f $(DESTDIR)$(prefix)/include; done + for f in $(IDOCS); do $(INSTALL) $$f $(DESTDIR)$(prefix)/share/man/man1; done + clean: - rm -rf $(PROGS) *.[ao] *.so *~ testdb + rm -rf $(PROGS) *.[ao] *.so *.so.* *~ testdb test: all mkdir testdb - ./mtest && ./mdb_stat testdb + LD_LIBRARY_PATH=$(CURDIR) ./mtest && LD_LIBRARY_PATH=$(CURDIR) ./mdb_stat testdb liblmdb.a: mdb.o midl.o ar rs $@ mdb.o midl.o liblmdb.so: mdb.o midl.o # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS) - $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.o midl.o $(SOLIBS) - -mdb_stat: mdb_stat.o liblmdb.a -mdb_copy: mdb_copy.o liblmdb.a -mtest: mtest.o liblmdb.a -mtest2: mtest2.o liblmdb.a -mtest3: mtest3.o liblmdb.a -mtest4: mtest4.o liblmdb.a -mtest5: mtest5.o liblmdb.a -mtest6: mtest6.o liblmdb.a + $(CC) $(LDFLAGS) -fPIC -Wl,-soname,liblmdb.so.$(SOVER) -pthread -Wl,-Bsymbolic -shared -o $@.$(SOVER).0.0 mdb.o midl.o $(SOLIBS) + ln -s $@.$(SOVER).0.0 liblmdb.so.$(SOVER) + ln -s liblmdb.so.$(SOVER) liblmdb.so + +mdb_stat: mdb_stat.o liblmdb.so.$(SOVER) +mdb_copy: mdb_copy.o liblmdb.so.$(SOVER) +mtest: mtest.o liblmdb.so.$(SOVER) +mtest2: mtest2.o liblmdb.so.$(SOVER) +mtest3: mtest3.o liblmdb.so.$(SOVER) +mtest4: mtest4.o liblmdb.so.$(SOVER) +mtest5: mtest5.o liblmdb.so.$(SOVER) +mtest6: mtest6.o liblmdb.so.$(SOVER) mdb.o: mdb.c lmdb.h midl.h $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -c mdb.c debian/patches/series0000644000000000000000000000003112254274264012034 0ustar 0000_debian_quirks.patch debian/compat0000644000000000000000000000000212254274264010374 0ustar 9