summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-07-26 16:35:24 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2013-07-26 17:01:00 -0400
commit51a46c5f9a42dc68ca5a05c7771440f509b7a742 (patch)
treeb5b590406b3a45dbeb77f28c4688c123f174d17f /debian
parent8a1429687d6259203db2d96b829e8e020b1a99e6 (diff)
downloadmongo-51a46c5f9a42dc68ca5a05c7771440f509b7a742.tar.gz
SERVER-963 Split and externalize Linux packages
This includes splitting rpm and .deb packages into sub-packages and externalizing the spec and control files to be maintained as static files.
Diffstat (limited to 'debian')
-rw-r--r--debian/control108
-rw-r--r--debian/rules74
2 files changed, 164 insertions, 18 deletions
diff --git a/debian/control b/debian/control
index 5aa3c9aaaff..e6e070284dd 100644
--- a/debian/control
+++ b/debian/control
@@ -1,14 +1,15 @@
-Source: mongodb
+Source: mongodb-10gen-unstable
Section: devel
Priority: optional
Maintainer: Richard Kreuter <richard@10gen.com>
-Build-Depends: debhelper (>= 7), libpcre3, libpcre3-dev, scons, xulrunner-dev, libboost1.35-dev | libboost1.37-dev | libboost1.38-dev | libboost1.40-dev | libboost1.42-dev, libboost-thread1.35-dev | libboost-thread1.37-dev | libboost-thread1.38-dev | libboost-thread1.40-dev | libboost-thread1.42-dev, libboost-filesystem1.35-dev | libboost-filesystem1.37-dev | libboost-filesystem1.38-dev | libboost-filesystem1.40-dev | libboost-filesystem1.42-dev, libboost-program-options1.35-dev | libboost-program-options1.37-dev | libboost-program-options1.38-dev | libboost-program-options1.40-dev | libboost-program-options1.42-dev, libboost-date-time1.35-dev | libboost-date-time1.37-dev | libboost-date-time1.38-dev | libboost-date-time1.40-dev | libboost-date-time1.42-dev, libpcap-dev, libreadline-dev
+Build-Depends:
Standards-Version: 3.8.0
Homepage: http://www.mongodb.org
-Package: mongodb
+Package: mongodb-10gen-unstable
+Conflicts: mongodb, mongodb-stable, mongodb-nightly, mongodb-10gen, mongodb-10gen-unstable
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-dev
+Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), mongodb-10gen-unstable-shell, mongodb-10gen-unstable-server, mongodb-10gen-unstable-mongos, mongodb-10gen-unstable-tools
Description: An object/document-oriented database
MongoDB is a high-performance, open source, schema-free
document-oriented data store that's easy to deploy, manage
@@ -22,8 +23,105 @@ Description: An object/document-oriented database
* Replication and fail-over support
* Efficient storage of binary data including large
objects (e.g. videos)
- * Auto-sharding for cloud-level scalability
+ * Auto-sharding for cloud-level scalability (Q209)
.
High performance, scalability, and reasonable depth of
functionality are the goals for the project.
+
+Package: mongodb-10gen-unstable-shell
+Conflicts: mongodb-10gen-shell, mongodb-10gen-enterprise-shell
+Architecture: any
+Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
+Description: An object/document-oriented database
+ MongoDB is a high-performance, open source, schema-free
+ document-oriented data store that's easy to deploy, manage
+ and use. It's network accessible, written in C++ and offers
+ the following features :
+ .
+ * 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)
+ * Auto-sharding for cloud-level scalability (Q209)
+ .
+ High performance, scalability, and reasonable depth of
+ functionality are the goals for the project.
+ .
+ This Debian package installs the mongo shell.
+
+Package: mongodb-10gen-unstable-server
+Conflicts: mongodb-10gen-server, mongodb-10gen-enterprise-server
+Architecture: any
+Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
+Description: An object/document-oriented database
+ MongoDB is a high-performance, open source, schema-free
+ document-oriented data store that's easy to deploy, manage
+ and use. It's network accessible, written in C++ and offers
+ the following features :
+ .
+ * 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)
+ * Auto-sharding for cloud-level scalability (Q209)
+ .
+ High performance, scalability, and reasonable depth of
+ functionality are the goals for the project.
+ .
+ This Debian package installs the mongod server.
+
+Package: mongodb-10gen-unstable-mongos
+Conflicts: mongodb-10gen-mongos, mongodb-10gen-enterprise-mongos
+Architecture: any
+Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
+Description: An object/document-oriented database
+ MongoDB is a high-performance, open source, schema-free
+ document-oriented data store that's easy to deploy, manage
+ and use. It's network accessible, written in C++ and offers
+ the following features :
+ .
+ * 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)
+ * Auto-sharding for cloud-level scalability (Q209)
+ .
+ High performance, scalability, and reasonable depth of
+ functionality are the goals for the project.
+ .
+ This Debian package installs the mongos program.
+
+Package: mongodb-10gen-unstable-tools
+Conflicts: mongodb-10gen-tools, mongodb-10gen-enterprise-tools
+Architecture: any
+Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
+Description: An object/document-oriented database
+ MongoDB is a high-performance, open source, schema-free
+ document-oriented data store that's easy to deploy, manage
+ and use. It's network accessible, written in C++ and offers
+ the following features :
+ .
+ * 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)
+ * Auto-sharding for cloud-level scalability (Q209)
+ .
+ High performance, scalability, and reasonable depth of
+ functionality are the goals for the project.
+ .
+ This Debian package installs standard utilities for
+ interacting with MongoDB.
diff --git a/debian/rules b/debian/rules
index 2afdfdb942c..21e3ffe8757 100644
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
# 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
+export DH_VERBOSE=1
configure: configure-stamp
@@ -24,9 +24,24 @@ build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
- scons
+# THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
+ # scons
#docbook-to-man debian/mongodb.sgml > mongodb.1
- ls debian/*.1 > debian/mongodb.manpages
+ echo debian/bsondump.1 > debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongodump.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongoexport.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongofiles.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongoimport.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongooplog.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongoperf.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongorestore.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongosniff.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongostat.1 >> debian/mongodb-10gen-unstable-tools.manpages
+ echo debian/mongotop.1 >> debian/mongodb-10gen-unstable-tools.manpages
+
+ echo debian/mongo.1 > debian/mongodb-10gen-unstable-shell.manpages
+ echo debian/mongod.1 > debian/mongodb-10gen-unstable-server.manpages
+ echo debian/mongos.1 > debian/mongodb-10gen-unstable-mongos.manpages
touch $@
@@ -38,7 +53,14 @@ clean:
# FIXME: scons freaks out at the presence of target files
# under debian/mongodb.
#scons -c
- rm -rf $(CURDIR)/debian/mongodb
+
+ rm -f debian/*.manpages
+
+ rm -rf $(CURDIR)/debian/mongodb-10gen-unstable
+ rm -rf $(CURDIR)/debian/mongodb-10gen-unstable-shell
+ rm -rf $(CURDIR)/debian/mongodb-10gen-unstable-server
+ rm -rf $(CURDIR)/debian/mongodb-10gen-unstable-mongos
+ rm -rf $(CURDIR)/debian/mongodb-10gen-unstable-tools
rm -f config.log
rm -f mongo
rm -f mongod
@@ -64,13 +86,38 @@ install: build
dh_prep
dh_installdirs
- scons --prefix=$(CURDIR)/debian/mongodb/usr install
- mkdir -p $(CURDIR)/debian/mongodb/etc
- cp $(CURDIR)/debian/mongodb.conf $(CURDIR)/debian/mongodb/etc/mongodb.conf
-
- mkdir -p $(CURDIR)/debian/mongodb/usr/share/lintian/overrides/
- install -m 644 $(CURDIR)/debian/lintian-overrides \
- $(CURDIR)/debian/mongodb/usr/share/lintian/overrides/mongodb
+# THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
+ # scons --prefix=$(CURDIR)/debian/mongodb/usr install
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-shell/usr/bin
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-server/usr/bin
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-mongos/usr/bin
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongo $(CURDIR)/debian/mongodb-10gen-unstable-shell/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongod $(CURDIR)/debian/mongodb-10gen-unstable-server/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongos $(CURDIR)/debian/mongodb-10gen-unstable-mongos/usr/bin
+
+ cp -v $(CURDIR)/BINARIES/usr/bin/bsondump $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongodump $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongoexport $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongofiles $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongoimport $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongooplog $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongoperf $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongorestore $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongostat $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+ cp -v $(CURDIR)/BINARIES/usr/bin/mongotop $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/bin
+
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-server/etc
+ cp $(CURDIR)/debian/mongodb.conf $(CURDIR)/debian/mongodb-10gen-unstable-server/etc/mongodb.conf
+
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-shell/usr/share/lintian/overrides/
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-server/usr/share/lintian/overrides/
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-mongos/usr/share/lintian/overrides/
+ mkdir -p $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/share/lintian/overrides/
+ install -m 644 $(CURDIR)/debian/lintian-overrides $(CURDIR)/debian/mongodb-10gen-unstable-shell/usr/share/lintian/overrides/mongodb-10gen-unstable-shell
+ install -m 644 $(CURDIR)/debian/lintian-overrides $(CURDIR)/debian/mongodb-10gen-unstable-server/usr/share/lintian/overrides/mongodb-10gen-unstable-server
+ install -m 644 $(CURDIR)/debian/lintian-overrides $(CURDIR)/debian/mongodb-10gen-unstable-mongos/usr/share/lintian/overrides/mongodb-10gen-unstable-mongos
+ install -m 644 $(CURDIR)/debian/lintian-overrides $(CURDIR)/debian/mongodb-10gen-unstable-tools/usr/share/lintian/overrides/mongodb-10gen-unstable-tools
# Build architecture-independent files here.
binary-indep: build install
@@ -90,11 +137,12 @@ binary-arch: build install
# dh_installemacsen
# dh_installpam
# dh_installmime
- dh_installinit
+ dh_installinit -pmongodb-10gen-unstable-server --name=mongodb
# dh_installinfo
dh_installman
dh_link
- dh_strip
+# Appears to be broken on Ubuntu 11.10...?
+# dh_strip
dh_compress
dh_fixperms
dh_installdeb