summaryrefslogtreecommitdiff
path: root/debian/mongodb-org-unstable.rules
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-11-30 13:08:30 -0500
committerErnie Hershey <ernie.hershey@10gen.com>2013-12-20 15:51:05 -0500
commite0af66d3ac4da46a4c2946a3d4056315cfb6653a (patch)
tree238cd23dff80648d1f264fe90d3888b9b04da30e /debian/mongodb-org-unstable.rules
parent6f1225ce6ed724e3dcc13a0acecb9d57a2e1dc47 (diff)
downloadmongo-e0af66d3ac4da46a4c2946a3d4056315cfb6653a.tar.gz
SERVER-11765 Create stable packaging files
These are all based on equivalent "-unstable" files that have been used for 2.5 packages. The only differences are removing "-unstable" from package, directory, and file names, and replacing normal packages in conflicts with unstable packages.
Diffstat (limited to 'debian/mongodb-org-unstable.rules')
-rw-r--r--debian/mongodb-org-unstable.rules45
1 files changed, 14 insertions, 31 deletions
diff --git a/debian/mongodb-org-unstable.rules b/debian/mongodb-org-unstable.rules
index 7ba9651507a..7057ab88040 100644
--- a/debian/mongodb-org-unstable.rules
+++ b/debian/mongodb-org-unstable.rules
@@ -1,10 +1,6 @@
#!/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.
+TOOLS=bsondump mongodump mongoexport mongofiles mongoimport mongooplog mongoperf mongorestore mongostat mongotop
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
@@ -13,7 +9,6 @@ export DH_VERBOSE=1
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
touch configure-stamp
@@ -23,21 +18,15 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
- # Add here commands to compile the package.
-# THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
+ # THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
# scons
- #docbook-to-man debian/mongodb.sgml > mongodb.1
- echo debian/bsondump.1 > debian/mongodb-org-unstable-tools.manpages
- echo debian/mongodump.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongoexport.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongofiles.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongoimport.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongooplog.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongoperf.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongorestore.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongosniff.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongostat.1 >> debian/mongodb-org-unstable-tools.manpages
- echo debian/mongotop.1 >> debian/mongodb-org-unstable-tools.manpages
+ #docbook-to-man debian/mongodb.sgml > mongodb.1
+
+ echo -n > debian/mongodb-org-unstable-tools.manpages
+ for binary in ${TOOLS} ; \
+ do \
+ echo debian/$$binary.1 >> debian/mongodb-org-unstable-tools.manpages ; \
+ done
echo debian/mongo.1 > debian/mongodb-org-unstable-shell.manpages
echo debian/mongod.1 > debian/mongodb-org-unstable-server.manpages
@@ -86,7 +75,7 @@ install: build
dh_prep
dh_installdirs
-# THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
+ # THE FOLLOWING LINE IS INTENTIONALLY COMMENTED.
# scons --prefix=$(CURDIR)/debian/mongodb/usr install
mkdir -p $(CURDIR)/debian/mongodb-org-unstable-shell/usr/bin
mkdir -p $(CURDIR)/debian/mongodb-org-unstable-server/usr/bin
@@ -96,16 +85,10 @@ install: build
cp -v $(CURDIR)/BINARIES/usr/bin/mongod $(CURDIR)/debian/mongodb-org-unstable-server/usr/bin
cp -v $(CURDIR)/BINARIES/usr/bin/mongos $(CURDIR)/debian/mongodb-org-unstable-mongos/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/bsondump $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongodump $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongoexport $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongofiles $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongoimport $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongooplog $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongoperf $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongorestore $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongostat $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
- cp -v $(CURDIR)/BINARIES/usr/bin/mongotop $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin
+ for binary in ${TOOLS} ; \
+ do \
+ cp -v $(CURDIR)/BINARIES/usr/bin/$$binary $(CURDIR)/debian/mongodb-org-unstable-tools/usr/bin ; \
+ done
mkdir -p $(CURDIR)/debian/mongodb-org-unstable-server/etc
cp $(CURDIR)/debian/mongod.conf $(CURDIR)/debian/mongodb-org-unstable-server/etc/mongod.conf