Debianize Kafka

In order to debianize kafka sensibly I had to create my own build system
based on Makefiles. These are stored in debian/patches source directory.
The key issue here is that per analytics request the branch chosen to
develop against was trunk since we will be using version 0.8 which has
not yet been released. The package depends on default-jre, adduser,
scala library and on all jar files that can be used from the system.
One point of concern is the velocity package which depends on ant, a
package we probably don't want installed in production.
Note: package libjoptsimple-java from precise has not been used because
the package would not compile with version 3.1 but only with 3.2

Change-Id: I55e65084eb5444a03e63cc479f9f3b72cf07a146
No need to have a special 'BROKER_JMX_PORT' variable if kafka.default is only read by kafka.init

Change-Id: I76c233da8dd376ba48d0322fe78b6436c6060b60
Updating/dowgrading libraries

Updated to zkclient-0.3.jar
Downgraded to metrics 2.2.0

Change-Id: I35cee437585b88af4376c02ea67a372c82239b19
Updating debian/bin/kafka with new bin scripts and removed obsolete ones.

Change-Id: Ie523cb6834293b5a798a54dc1a06427b0e594b83
kafka.init - Using $DEFAULT in error message.

Change-Id: I03324560330dc5679bed6d1e1d154176daf38b2a
Adding mirror-maker and consumer-offset-checker to kafka bin script

Change-Id: I6a6ee54ef34c5809a6c55b12bd1aed778ab1cac1
Fix kafka_data_dirs_fixes.patch

log.dir was renamed to log.dirs

Change-Id: Id496755803d7a714061e67cc2ef1286d5c98a0cc
Updating logging patch

log4j.properties was changed upstream and this commit re-establishes clean apply

Change-Id: I062ef24f3fac8675c58f43e2818c1820cc18bf8f
remove kafka-console-consumer-log4j.properties

This file has been removed from upstream in revision
14af713252f016929f8150f2f6c2df9d0d447ddb
so we stop installing it anymore

Change-Id: I35da7cd69234ce8f374a394393776101e568fb5e
Bumping version to git's latest commit on 20130827

Change-Id: I49cbf54792b2966148a0337a192e94cbf5170ac6
Installing kafka-mirror init.d and default scripts.

(Somehow this original change was lost in the recent debian branch cleanup.)

(cherry picked from commit e8d1ac90c2e2d93b966bb7c3fc54cec742a948da)

Conflicts:

	debian/kafka.install

Change-Id: Idf77b84c1059798f0501d0157d0dfef0cf4c3308
Syncing debian/bin/kafka script with recent 0.8 branch bin/*.sh scripts.

Change-Id: Ib410c1398a33edc03de960f1438b29625505d891
Adapting debian/bin/kafka's server-stop command to change from bin/kafka-server-stop.sh introduced in kafka-1031.

Change-Id: I7421dfbf1fc83de05bab48daad749558f83701f7
Updating kafka scripts with recent changes from 0.8 branch.

- debian/bin/kafka now incorporates changes to kafka-run-class.sh
  that allow for easier overriding of many Kafka environment variables.
- debian/kafka*.init now use debian/bin/kafka script to start kafka
  services, rather than hardcoding the classpath and default environment
  variables multiple times.  

Change-Id: I4b92b94a71efdd03970b17679274386b512c8b50
Adding environment var ZOOKEEPER_URL.

For kafka commands that take a --zookeeper flag, this environment
variable will be used and automatically passed as the --zookeeper value
if --zookeeper hasn't been manually provided on the CLI by the user.

Change-Id: I11f913b30e74669a2e87068c23051bcd8cb0ab67
Installing tools-log4j.properties in Makefile.

Change-Id: Ia0f793b8da6507c67d54e90b088d15175135577d
Adding ganglia/graphite backends to kafka

This will also sending metrics to ganglia/graphite

Change-Id: I89e4f28af30dfaa3d9f16068e2ab2b16d4d1104e
Adding kafka-ganglia jar.

Change-Id: I35ae3672cf1d0f711de2c4e069d8acf3662de521
From: https://github.com/criteo/kafka-ganglia
Installing kafka-ganglia-1.0.0.jar and using it in CLASSPATH.

Change-Id: Ib489db333e6642974a91a9c17c711bb6a5669b89
Update debian/changelog

Update to 20130913 (commit: aebf7461)
Fix previous malformed changelog

Change-Id: Ib6ce94c157955181a2a80b9459d3264a31d2983a