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>
debian/patches: Add preparation for kFreeBSD.
kfreebsd does not have tcmalloc
enable building packages on kfreebsd
debian/patches: Regenerate the patches from patch queue.

With this change, we are very close (completely ready?) to having mongodb
working on kFreeBSD (and, perhaps, even HURD in the not-so-distant future).
We *may* have to switch from v8 to spidermonkey, as a libv8 that is ported
to kFreeBSD is apparently only in experimental at the moment of this
writing.

Thanks: Pino Toscano and Jeff Epler
Closes: #703061
debian/control: Remove libpcre3 from build-depends.

We actualy only need the development parts of PCRE3 to build the package.
It also happens that libpcre3-dev depends on the appropriate versioned
libpcre3.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/copyright: Wrap long lines.

This file should be properly converted to the copyright-format 1.0.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/control: Make the mongodb metapackage arch-dependent.

Otherwise, the package would be available for architectures where its
dependencies would not be fulfilled.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/control: Set priority of packages to extra.

Unfortunately, libsnappy1 is priority extra on the archive, and mongodb
depends on it, which means that we have to be priority extra too.

This problem was detected by seeing:

    http://qa.debian.org/debcheck.php?dist=unstable&package=mongodb

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/control: Mark libgoogle-perftools-dev as linux-amd64 linux-i386.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/patches: Take some patches for ARM from Ubuntu.

Some of these patches came from RedHat.

The patch 0007-ARM-support... required manual patching, as the upstream code
changed slightly.

The patches were also rebuilt from a patch queue branch.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
debian/patches: Remove patch that substituted install with installAs.

This patch broke the build for both me and Jeff and reading carefully, it is
clearly the wrong thing to do. Thus, removing it.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Merge pull request #3 from rbrito/debian-fixes

More fixes for mongodb