From bf8effbea1ceb4fff8cdb72ffcef4daeadd4fd77 Mon Sep 17 00:00:00 2001 From: Andrey Baidarov Date: Thu, 23 Apr 2015 13:57:26 +0300 Subject: [PATCH] [LOGBROKER-726] Fix debianization --- debian/compat | 2 +- debian/control | 7 ++++--- debian/rules | 29 ++++++++--------------------- debian/statbox-kafka.install | 5 +---- 4 files changed, 14 insertions(+), 29 deletions(-) diff --git a/debian/compat b/debian/compat index 7ed6ff82de6bc..ec635144f6004 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +9 diff --git a/debian/control b/debian/control index ab2088f18e98e..b50d5c6eec694 100644 --- a/debian/control +++ b/debian/control @@ -1,4 +1,5 @@ Source: statbox-kafka +Section: misc Priority: optional Maintainer: Alexey Ozeritsky Vcs-Browser: https://github.yandex-team.ru/statbox/kafka @@ -8,6 +9,6 @@ Standards-Version: 3.9.3 Package: statbox-kafka Architecture: all -Depends: ${shlibs:Depends}, java7-runtime -Description: Apache Kafka with Statbox patches - +Depends: ${misc:Depends}, java7-runtime +Description: Statbox Kafka + Apache Kafka with Statbox patches diff --git a/debian/rules b/debian/rules index b5ca9aee6d63a..4a020b7a3f64d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,25 +1,12 @@ #! /usr/bin/make -f -.PHONY: binary build clean +%: + dh $@ -install: - dh_install --list-missing - dh_installinit -A --no-start --no-restart-on-upgrade - dh_installdeb - dh_makeshlibs -pstatbox-kafka - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb +override_dh_auto_build: + gradle + ./gradlew -PscalaVersion=2.10.4 clean releaseTarGz + tar xf ./core/build/distributions/kafka_2.10-0.8.2.1.tgz -binary: install - -build: clean - dh_testdir - @set -e;\ - gradle - ./gradlew -PscalaVersion=2.10.4 jar - -clean: - dh_clean - rm -rf __build +override_dh_installinit: + dh_installinit --name=statbox-kafka --noscripts diff --git a/debian/statbox-kafka.install b/debian/statbox-kafka.install index a8347b5165a0d..451441554bb4a 100644 --- a/debian/statbox-kafka.install +++ b/debian/statbox-kafka.install @@ -1,5 +1,2 @@ -bin /usr/lib/kafka/ -config /usr/lib/kafka/ -core/build/libs /usr/lib/kafka/ -core/build/dependant-libs-2.10.4 /usr/lib/kafka/ +kafka_2.10-0.8.2.1/* /usr/lib/kafka upstart-upgrade.sh /usr/share/statbox-kafka