Compare commits

..

15 commits

Author SHA1 Message Date
Rogério Brito
013204f84c Remove unused lintian overrides.
Closes: #705060
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 23:56:34 -03:00
Rogério Brito
83ee14ab46 Add newer/more clients to the mongodb-clients package.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 23:50:52 -03:00
Rogério Brito
22efae5f0b Add bsondump to the clients package.
Closes: #679018
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 22:46:46 -03:00
Rogério Brito
b5296f71b1 debian/control: Augment descriptions of packages.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 22:45:39 -03:00
Rogério Brito
e7b43140ee Add README.Debian file to mongodb-server.
Closes: #705054
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 22:39:27 -03:00
Rogério Brito
423d11c6dc gitignore: Ignore quilt's state directory.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 21:42:02 -03:00
Rogério Brito
94a6d929e1 debian/control: Make mongodb arch all, instead of arch-specific.
The package mongodb is only a metapackage intended to pull in other packages
and it has absolutely zero architecture-specific content.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2013-04-16 20:05:11 -03:00
Rogério Brito
d85c075855 debian/patches: Add patch to use the system libstemmer library.
This way we depend on even fewer embedded libraries.
2013-04-12 23:52:22 -03:00
Rogério Brito
df784a3241 debian/README.source: Be more descriptive on the workflow. 2013-04-12 22:27:24 -03:00
Rogério Brito
3326d9eb41 Add a small note to README.Debian to document differences from upstream.
There are more places where we diverge from upstream's defaults (e.g., the
logging location), but we are fixing these issues incrementally.
2013-04-12 22:15:59 -03:00
Rogério Brito
e239a9fe4d debian/rules: Use as many system libraries as possible. 2013-04-12 20:47:59 -03:00
Rogério Brito
17fcb2c477 d/control: Add more build-deps for compliant packages. 2013-04-12 00:16:28 -03:00
Rogério Brito
8287fd7e03 d/control: Add more build-deps to avoid use of embedded libraries. 2013-04-12 00:09:57 -03:00
Rogério Brito
d44e3d49f2 d/{control,copyright}: Normalize fields with wrap-and-sort.
This also happens to kill trailing whitespace.
2013-04-11 23:15:21 -03:00
Rogério Brito
ab6f6c303d debian/control: Retouch the package descriptions. 2013-04-11 22:51:25 -03:00
12 changed files with 162 additions and 96 deletions

1
.gitignore vendored
View file

@ -158,3 +158,4 @@ src/third_party/js-1.7/jskwgen
src/mongo/buildinfo.cpp
buildinfo.cpp
/.settings/
/.pc

11
debian/README.Debian vendored
View file

@ -1,6 +1,15 @@
MongoDB for Debian
------------------
Database at different location from upstream
To be consistent with the Debian Policy, the mongodb-server package puts
the databases under the /var/lib/mongodb directory instead of what
upstream uses in its documentation (namely, /data/db).
You can change this on your installation by editing the configuration file
/etc/mongodb.conf in the dbpath directive.
Binds only to localhost
As mongo needs some tuning to become secure, it binds to localhost by
@ -14,4 +23,4 @@ Why only for x86 and amd64?
that the mongodb will be useful even it is not available for all Debian
supported platforms.
-- Antonin Kral <A.Kral@sh.cvut.cz>, Fri, 12 Feb 2010 09:19, +0100
-- Rogério Brito <rbrito@ime.usp.br>, Fri, 12 Apr 2013 22:10:41 -0300

27
debian/README.source vendored
View file

@ -1,13 +1,26 @@
gbp
===
git-buildpackage
================
Use of git-import-orig is highly encouraged.
Use of the command `git-import-orig` from the git-buildpackage suite of
scripts is highly encouraged, as it makes for an easier maintenance of the
packaging.
When importing new upstream versions, it is recommended to run:
git-buildpackage --pristine-tar --uscan
so that most of the tasks are automated.
debian/gbp.conf
===============
debian/* files from upstream tarball are filtered out because the merge is really
difficult to maintain.
It is up to the maintainer to check manually for upstream changes in debian dir,
especially man pages.
The `debian/*` files from the upstream tarball are filtered out (read:
"mostly ignored") because of divergences that create conflicts that are
difficult to merge.
That being said, it is a good thing to manually check what upstream changed
in their `debian` dir and adapt those changes to the Debian packaging, as
they may have changed build dependencies or other assumptions.
-- Rogério Brito <rbrito@ime.usp.br>, Fri, 12 Apr 2013 22:26:07 -0300

110
debian/control vendored
View file

@ -2,53 +2,78 @@ Source: mongodb
Section: database
Priority: optional
Maintainer: Antonin Kral <A.Kral@sh.cvut.cz>
Uploaders: Roberto C. Sanchez <roberto@connexer.com>, Jérémy Lal <kapouer@melix.org>
Build-Depends: debhelper (>= 9), cdbs (>= 0.4.73~), libpcre3, libpcre3-dev, scons, libreadline-dev, libboost-dev, libboost-thread-dev, libboost-filesystem-dev, libboost-program-options-dev, libboost-date-time-dev, python-pymongo
Uploaders:
Roberto C. Sanchez <roberto@connexer.com>,
Jérémy Lal <kapouer@melix.org>
Build-Depends:
cdbs (>= 0.4.73~),
debhelper (>= 9),
libboost-date-time-dev,
libboost-dev,
libboost-filesystem-dev,
libboost-program-options-dev,
libboost-thread-dev,
libgoogle-perftools-dev,
libpcap-dev,
libpcre3,
libpcre3-dev,
libreadline-dev,
libsnappy-dev,
libstemmer-dev,
libv8-dev,
python-pymongo,
scons
Standards-Version: 3.9.3
Vcs-Git: git://github.com/bobek/mongo-debian.git
Vcs-Browser: https://github.com/bobek/mongo-debian
Homepage: http://www.mongodb.org
Package: mongodb
Architecture: i386 amd64
Depends: mongodb-server (>= 1:2.4.1-2), mongodb-dev, ${shlibs:Depends}, ${misc:Depends}
Architecture: all
Depends:
mongodb-dev,
mongodb-server (>= 1:2.4.1-2),
${misc:Depends},
${shlibs:Depends}
Description: object/document-oriented database (metapackage)
MongoDB is a high-performance, open source, schema-free
document-oriented data store that's easy to deploy, manage
document-oriented data store that's easy to deploy, manage
and use. It's network accessible, written in C++ and offers
the following features :
the following features:
.
* Collection oriented storage - easy storage of object-
style data
* Collection oriented storage - easy storage of object-style data
* Full index support, including on inner objects
* Query profiling
* Replication and fail-over support
* Efficient storage of binary data including large
objects (e.g. videos)
* Efficient storage of binary data including large objects (e.g. videos)
* Auto-sharding for cloud-level scalability
.
High performance, scalability, and reasonable depth of
functionality are the goals for the project.
.
This is a metapackage that depends on all the mongodb parts.
This is a convenience metapackage that depends on all the mongodb parts:
the server, the clients and the development files (headers and library).
Package: mongodb-server
Architecture: i386 amd64
Depends: mongodb-clients, ${shlibs:Depends}, ${misc:Depends}, adduser
Replaces: mongodb (<= 1:1.4.2-2)
Architecture: amd64 i386
Depends:
adduser,
mongodb-clients,
${misc:Depends},
${shlibs:Depends}
Replaces:
mongodb (<= 1:1.4.2-2)
Description: object/document-oriented database (server package)
MongoDB is a high-performance, open source, schema-free
document-oriented data store that's easy to deploy, manage
document-oriented data store that's easy to deploy, manage
and use. It's network accessible, written in C++ and offers
the following features :
the following features:
.
* Collection oriented storage - easy storage of object-
style data
* Collection oriented storage - easy storage of object-style data
* Full index support, including on inner objects
* Query profiling
* Replication and fail-over support
* Efficient storage of binary data including large
objects (e.g. videos)
* Efficient storage of binary data including large objects (e.g. videos)
* Auto-sharding for cloud-level scalability
.
High performance, scalability, and reasonable depth of
@ -57,22 +82,23 @@ Description: object/document-oriented database (server package)
This package contains the server itself.
Package: mongodb-clients
Architecture: i386 amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: mongodb (<= 1:1.4.2-2)
Architecture: amd64 i386
Depends:
${misc:Depends},
${shlibs:Depends}
Replaces:
mongodb (<= 1:1.4.2-2)
Description: object/document-oriented database (client apps)
MongoDB is a high-performance, open source, schema-free
document-oriented data store that's easy to deploy, manage
document-oriented data store that's easy to deploy, manage
and use. It's network accessible, written in C++ and offers
the following features :
the following features:
.
* Collection oriented storage - easy storage of object-
style data
* Collection oriented storage - easy storage of object-style data
* Full index support, including on inner objects
* Query profiling
* Replication and fail-over support
* Efficient storage of binary data including large
objects (e.g. videos)
* Efficient storage of binary data including large objects (e.g. videos)
* Auto-sharding for cloud-level scalability
.
High performance, scalability, and reasonable depth of
@ -82,27 +108,29 @@ Description: object/document-oriented database (client apps)
Package: mongodb-dev
Section: libdevel
Architecture: i386 amd64
Depends: libboost-dev, ${shlibs:Depends}, ${misc:Depends}
Suggests: mongodb-server
Replaces: mongodb (<= 1:1.4.2-2)
Architecture: amd64 i386
Depends:
libboost-dev,
${misc:Depends},
${shlibs:Depends}
Suggests:
mongodb-server
Replaces:
mongodb (<= 1:1.4.2-2)
Description: object/document-oriented database (development)
MongoDB is a high-performance, open source, schema-free
document-oriented data store that's easy to deploy, manage
document-oriented data store that's easy to deploy, manage
and use. It's network accessible, written in C++ and offers
the following features :
the following features:
.
* Collection oriented storage - easy storage of object-
style data
* Collection oriented storage - easy storage of object-style data
* Full index support, including on inner objects
* Query profiling
* Replication and fail-over support
* Efficient storage of binary data including large
objects (e.g. videos)
* Efficient storage of binary data including large objects (e.g. videos)
* Auto-sharding for cloud-level scalability
.
High performance, scalability, and reasonable depth of
functionality are the goals for the project.
.
Development headers and libraries.
This package contains the development headers and libraries.

10
debian/copyright vendored
View file

@ -1,4 +1,4 @@
This package was debianized
This package was debianized
by Kristina Chodorow <kristina@10gen.com>
and Antonin Kral <A.Kral@bobek.cz>
@ -13,7 +13,7 @@ Upstream Authors:
Kristina Chodorow
Debian Maintainers:
Antonin Kral
Roberto C. Sanchez
@ -25,8 +25,8 @@ License:
Apache License 2.0
http://www.apache.org/licenses/LICENSE-2.0
On a Debian system, the license can be found at
/usr/share/common-licenses/Apache-2.0
On a Debian system, the license can be found at
/usr/share/common-licenses/Apache-2.0
AGPL 3.0
http://www.fsf.org/licensing/licenses/agpl-3.0.html
@ -44,7 +44,7 @@ License Notice for SCONS
SCONS and it components, generated code and utilities (e.g. gch.py) are
licensed under GPL 2.
License Notice for Boost
------------------------

View file

@ -1,7 +1,12 @@
debian/tmp/usr/bin/bsondump
debian/tmp/usr/bin/mongo
debian/tmp/usr/bin/mongodump
debian/tmp/usr/bin/mongoexport
debian/tmp/usr/bin/mongofiles
debian/tmp/usr/bin/mongoimport
debian/tmp/usr/bin/mongooplog
debian/tmp/usr/bin/mongoperf
debian/tmp/usr/bin/mongorestore
debian/tmp/usr/bin/mongosniff
debian/tmp/usr/bin/mongostat
debian/tmp/usr/bin/mongotop

View file

@ -1,30 +0,0 @@
# Agreed with upstream, that redefining rpath is necessary as xulrunner used to
# change API without changing so-name
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongo /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongodump /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongoexport /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongofiles /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongoimport /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongorestore /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongostat /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongo /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongodump /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongoexport /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongofiles /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongoimport /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongorestore /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath ./usr/bin/mongostat /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongo /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongodump /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongoexport /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongofiles /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongoimport /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongorestore /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongostat /usr/lib/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongo /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongodump /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongoexport /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongofiles /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongoimport /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongorestore /usr/lib64/xulrunner-1.9.1
mongodb-clients: binary-or-shlib-defines-rpath usr/bin/mongostat /usr/lib64/xulrunner-1.9.1

26
debian/mongodb-server.README.Debian vendored Normal file
View file

@ -0,0 +1,26 @@
MongoDB for Debian
------------------
Database at different location from upstream
To be consistent with the Debian Policy, the mongodb-server package puts
the databases under the /var/lib/mongodb directory instead of what
upstream uses in its documentation (namely, /data/db).
You can change this on your installation by editing the configuration file
/etc/mongodb.conf in the dbpath directive.
Binds only to localhost
As mongo needs some tuning to become secure, it binds to localhost by
default. You can change this behavior in /etc/mongodb.conf by
editing/removing/commenting out bind_ip line.
Why only for x86 and amd64?
The mongodb server depends on both little-endianness and unaligned memory
access, which I believe means it can only work on i386 and amd64. We believe
that the mongodb will be useful even it is not available for all Debian
supported platforms.
-- Rogério Brito <rbrito@ime.usp.br>, Fri, 12 Apr 2013 22:10:41 -0300

View file

@ -1,10 +0,0 @@
# Agreed with upstream, that redefining rpath is necessary as xulrunner used to
# change API without changing so-name
mongodb-server: binary-or-shlib-defines-rpath ./usr/bin/mongod /usr/lib/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath ./usr/bin/mongos /usr/lib/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath ./usr/bin/mongod /usr/lib64/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath ./usr/bin/mongos /usr/lib64/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath usr/bin/mongod /usr/lib/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath usr/bin/mongos /usr/lib/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath usr/bin/mongod /usr/lib64/xulrunner-1.9.1
mongodb-server: binary-or-shlib-defines-rpath usr/bin/mongos /usr/lib64/xulrunner-1.9.1

View file

@ -0,0 +1,22 @@
From 06641cf5dfebebb975d8308c823d5a18daaa1738 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
Date: Fri, 12 Apr 2013 23:50:07 -0300
Subject: [PATCH] Use libstemmer when using system libraries.
---
SConstruct | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/SConstruct
+++ b/SConstruct
@@ -785,7 +785,9 @@
CPPDEFINES=['BOOST_ALL_NO_LIB'])
env.Prepend(CPPPATH=['$BUILD_DIR/third_party/s2'])
-env.Prepend(CPPPATH=['$BUILD_DIR/third_party/libstemmer_c/include'])
+
+if not use_system_version_of_library("stemmer"):
+ env.Prepend(CPPPATH=['$BUILD_DIR/third_party/libstemmer_c/include'])
env.Append( CPPPATH=['$EXTRACPPPATH'],
LIBPATH=['$EXTRALIBPATH'] )

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
0001-Use-libstemmer-when-using-system-libraries.patch

5
debian/rules vendored
View file

@ -19,8 +19,9 @@ ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
endif
DEB_SCONS_BUILD_TARGET = all
DEB_SCONS_INSTALL_OPTIONS += --prefix=$(CURDIR)/debian/tmp/usr --full
DEB_SCONS_CHECK_TARGET = --smokedbprefix=$(CURDIR)/debian/tmp-test smoke
DEB_SCONS_BUILD_OPTIONS = --use-system-all
DEB_SCONS_INSTALL_OPTIONS += --prefix=$(CURDIR)/debian/tmp/usr --full --use-system-all
DEB_SCONS_CHECK_TARGET = --smokedbprefix=$(CURDIR)/debian/tmp-test smoke --use-system-all
clean::
find . -name "*.pyc" -delete