Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/150883

Change subject: Separate kafka-mirror out into its own package
......................................................................

Separate kafka-mirror out into its own package

Change-Id: Ia9ff188d4e5e7b042b15e635452b751827ec4028
---
M debian/changelog
M debian/control
R debian/kafka-client.postinst
R debian/kafka-client.postrm
M debian/kafka-common.dirs
R debian/kafka-mirror.default
R debian/kafka-mirror.init
M debian/rules
8 files changed, 34 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/kafka 
refs/changes/83/150883/1

diff --git a/debian/changelog b/debian/changelog
index 92831a8..b773146 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+kafka (0.8.1.1-2) precise; urgency=low
+
+  * kafka-mirror is now in its own package
+
+ -- Andrew Otto (WMF) <o...@wikimedia.org>  Thu, 31 Jul 2014 19:07:40 +0000
+
 kafka (0.8.1.1-1) precise; urgency=low
 
   * Build new version 0.8.1.1
diff --git a/debian/control b/debian/control
index 4d9e8ca..20472f0 100644
--- a/debian/control
+++ b/debian/control
@@ -83,4 +83,20 @@
   maintaining per-partition ordering semantics.
   * Support for parallel data load into Hadoop.
  .
- This package includes init.d scripts for Kafka Brokers and Kafka MirrorMaker 
daemons.
+ This package includes the init.d script and default file for a Kafka Broker.
+
+Package: kafka-mirror
+Architecture: all
+Depends: kafka-client
+Description: Apache Kafka is a distributed publish-subscribe messaging system
+ Apache Kafka is designed to support the following
+  * Persistent messaging with O(1) disk structures
+  that provide constant time performance even with many TB of stored messages.
+  * High-throughput: even with very modest hardware Kafka can support hundreds
+  of thousands of messages per second.
+  * Explicit support for partitioning messages over Kafka servers and
+  distributing consumption over a cluster of consumer machines while
+  maintaining per-partition ordering semantics.
+  * Support for parallel data load into Hadoop.
+ .
+ This package includes init.d script and default file for a Kafka MirrorMaker.
diff --git a/debian/kafka-server.postinst b/debian/kafka-client.postinst
similarity index 100%
rename from debian/kafka-server.postinst
rename to debian/kafka-client.postinst
diff --git a/debian/kafka-server.postrm b/debian/kafka-client.postrm
similarity index 100%
rename from debian/kafka-server.postrm
rename to debian/kafka-client.postrm
diff --git a/debian/kafka-common.dirs b/debian/kafka-common.dirs
index 350a8ab..f3aaeb8 100644
--- a/debian/kafka-common.dirs
+++ b/debian/kafka-common.dirs
@@ -1,2 +1 @@
-etc/kafka
 usr/share/kafka
diff --git a/debian/kafka-server.kafka-mirror.default 
b/debian/kafka-mirror.default
similarity index 100%
rename from debian/kafka-server.kafka-mirror.default
rename to debian/kafka-mirror.default
diff --git a/debian/kafka-server.kafka-mirror.init b/debian/kafka-mirror.init
similarity index 100%
rename from debian/kafka-server.kafka-mirror.init
rename to debian/kafka-mirror.init
diff --git a/debian/rules b/debian/rules
index e4fc652..647bd23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,15 +16,21 @@
        # make install installs files into debian/tmp.
        # These files are part of the kafka-common package.
        cp -rv $(CURDIR)/debian/tmp/usr/share/kafka/*                
$(CURDIR)/debian/kafka-common/usr/share/kafka/
-       cp -rv $(CURDIR)/debian/tmp/etc/kafka/tools-log4j.properties 
$(CURDIR)/debian/kafka-common/etc/kafka/
+
+       # These files are part of the kafka-client package.
+       cp -rv $(CURDIR)/debian/tmp/etc/kafka/tools-log4j.properties 
$(CURDIR)/debian/kafka-client/etc/kafka/
+
        # These files are part of the kafka-server package.
-       cp -rv $(CURDIR)/debian/tmp/etc/kafka/mirror                 
$(CURDIR)/debian/kafka-server/etc/kafka/
        cp -rv $(CURDIR)/debian/tmp/etc/kafka/server.properties      
$(CURDIR)/debian/kafka-server/etc/kafka/
        cp -rv $(CURDIR)/debian/tmp/etc/kafka/zookeeper.properties   
$(CURDIR)/debian/kafka-server/etc/kafka/
 
-override_dh_installinit:
+       # These files are part of the kafka-mirror package
+       cp -rv $(CURDIR)/debian/tmp/etc/kafka/mirror                 
$(CURDIR)/debian/kafka-mirror/etc/kafka/
+
+override_dh_installinit
        # Install kafka-server.kafka init.d and default scripts under the name 
'kafka'.
        dh_installinit --name=kafka
 
-       # Install kafka-server.kafka-mirror init.d and default scripts under 
the name 'kafka-mirror'.
-       dh_installinit --name=kafka-mirror
+       # Install kafka-mirror init.d and default scripts under their default 
name 'kafka-mirror'.
+       dh_installinit
+

-- 
To view, visit https://gerrit.wikimedia.org/r/150883
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia9ff188d4e5e7b042b15e635452b751827ec4028
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/kafka
Gerrit-Branch: master
Gerrit-Owner: Ottomata <o...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to