Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: Add package building instruction in the README
......................................................................

Add package building instruction in the README

Change-Id: I46c3b4dcc244eb4e070fa28b51b4f71facf38580
---
M debian/README.Debian
1 file changed, 47 insertions(+), 0 deletions(-)


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

diff --git a/debian/README.Debian b/debian/README.Debian
index 1c532b0..73d0753 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -5,3 +5,50 @@
 for this is to satisfy debian policy that no internet connection should
 be required during package building as well as security concers about
 the downloaded JAR files by sbt
+
+How to build this package
+-------------------------
+
+This repository is be used to build the kafka package using
+git-buildpackage. Below we illustrate one of the ways this can work for
+you:
+
+* Install some mandatory packages
+  $ apt-get install git-buildpackage
+
+* And some not so mandatory but nice to have packages
+  $ apt-get install pbuilder cowbuilder
+
+Note that pbuilder/cowbuilder is not strictly required but it will save
+you from installing the dependencies manually
+
+* Create a cowbuilder environment (we assume you are building against
+precise pangolin here)
+
+  $ sudo DIST=precise git-pbuilder create --components "main universe"
+
+* Clone the repo
+  $ git clone http://gerrit.wikimedia.org/r/operations/debs/kafka
+  $ cd kafka
+
+* Should the current version in the repo not be enough, set upstream and
+  fetch
+
+  $ git remote add upstream http://git-wip-us.apache.org/repos/asf/kafka.git
+  $ git fetch upstream
+
+* Checkout the version you want to build against
+  $ git checkout debian-<VERSION>
+
+  If the current version is not enough
+  $ git checkout -b debian-<GIT_TAG> <GIT_TAG>
+
+<GIT_TAG> should be a valid git tag. You can get them via git tag
+
+* Merge the debian branch on you new branch
+  $ git merge debian
+
+* Build
+  $ DIST=precise git-buildpackage -us -uc --git-builder="git-pbuilder" \
+--git-cleaner="fakeroot debian/rules clean" \
+--git-debian-branch=debian-<VERSION>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46c3b4dcc244eb4e070fa28b51b4f71facf38580
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/kafka
Gerrit-Branch: debian
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>

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

Reply via email to