Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E8113200C4E for ; Thu, 23 Mar 2017 00:22:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E6C6A160B86; Wed, 22 Mar 2017 23:22:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BED2D160B91 for ; Thu, 23 Mar 2017 00:22:22 +0100 (CET) Received: (qmail 83734 invoked by uid 500); 22 Mar 2017 23:22:22 -0000 Mailing-List: contact commits-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@bigtop.apache.org Delivered-To: mailing list commits@bigtop.apache.org Received: (qmail 83697 invoked by uid 99); 22 Mar 2017 23:22:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 23:22:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CF816DFA28; Wed, 22 Mar 2017 23:22:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: rvs@apache.org To: commits@bigtop.apache.org Date: Wed, 22 Mar 2017 23:22:22 -0000 Message-Id: <780b894fede94f93ba5589417bcdf36a@git.apache.org> In-Reply-To: <2ed4050190bd4e9ca7db270b439ce568@git.apache.org> References: <2ed4050190bd4e9ca7db270b439ce568@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] bigtop git commit: BIGTOP-2492 Split flink debian packaging archived-at: Wed, 22 Mar 2017 23:22:24 -0000 BIGTOP-2492 Split flink debian packaging Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/511507ca Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/511507ca Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/511507ca Branch: refs/heads/master Commit: 511507ca9c12dac8f6ce2094e6b127871ca08dd9 Parents: c7e06bb Author: David Moravek Authored: Wed Jul 13 16:29:11 2016 +0200 Committer: Roman Shaposhnik Committed: Wed Mar 22 16:21:51 2017 -0700 ---------------------------------------------------------------------- bigtop-packages/src/deb/flink/control | 10 ++++ .../src/deb/flink/flink-jobmanager.postinst | 33 +++++++++++++ .../src/deb/flink/flink-jobmanager.preinst | 51 ++++++++++++++++++++ .../src/deb/flink/flink-jobmanager.prerm | 38 +++++++++++++++ .../src/deb/flink/flink-taskmanager.postinst | 33 +++++++++++++ .../src/deb/flink/flink-taskmanager.preinst | 51 ++++++++++++++++++++ .../src/deb/flink/flink-taskmanager.prerm | 38 +++++++++++++++ bigtop-packages/src/deb/flink/flink.postinst | 1 + bigtop-packages/src/deb/flink/flink.prerm | 1 + bigtop-packages/src/deb/flink/rules | 5 -- bigtop-packages/src/deb/flink/rules.orig | 46 ++++++++++++++++++ 11 files changed, 302 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/control ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/control b/bigtop-packages/src/deb/flink/control index a98bddc..31d1e0e 100644 --- a/bigtop-packages/src/deb/flink/control +++ b/bigtop-packages/src/deb/flink/control @@ -27,3 +27,13 @@ Depends: bigtop-utils (>= 0.7), adduser Description: Flink’s core is a streaming dataflow engine that provides data distribution, communication, and fault tolerance for distributed computations over data streams. + +Package: flink-jobmanager +Architecture: all +Depends: flink +Description: Flink’s jobmanager. + +Package: flink-taskmanager +Architecture: all +Depends: flink +Description: Flink’s taskmanager. http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-jobmanager.postinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-jobmanager.postinst b/bigtop-packages/src/deb/flink/flink-jobmanager.postinst new file mode 100644 index 0000000..767e3f6 --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-jobmanager.postinst @@ -0,0 +1,33 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-jobmanager.preinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-jobmanager.preinst b/bigtop-packages/src/deb/flink/flink-jobmanager.preinst new file mode 100644 index 0000000..ed6263f --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-jobmanager.preinst @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# preinst script for flink +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-jobmanager.prerm ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-jobmanager.prerm b/bigtop-packages/src/deb/flink/flink-jobmanager.prerm new file mode 100644 index 0000000..4a65bf6 --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-jobmanager.prerm @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-taskmanager.postinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-taskmanager.postinst b/bigtop-packages/src/deb/flink/flink-taskmanager.postinst new file mode 100644 index 0000000..767e3f6 --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-taskmanager.postinst @@ -0,0 +1,33 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-taskmanager.preinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-taskmanager.preinst b/bigtop-packages/src/deb/flink/flink-taskmanager.preinst new file mode 100644 index 0000000..ed6263f --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-taskmanager.preinst @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# preinst script for flink +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink-taskmanager.prerm ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink-taskmanager.prerm b/bigtop-packages/src/deb/flink/flink-taskmanager.prerm new file mode 100644 index 0000000..4a65bf6 --- /dev/null +++ b/bigtop-packages/src/deb/flink/flink-taskmanager.prerm @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink.postinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink.postinst b/bigtop-packages/src/deb/flink/flink.postinst index 83b68af..5d5ed9c 100644 --- a/bigtop-packages/src/deb/flink/flink.postinst +++ b/bigtop-packages/src/deb/flink/flink.postinst @@ -1,4 +1,5 @@ #!/bin/bash +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/flink.prerm ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/flink.prerm b/bigtop-packages/src/deb/flink/flink.prerm index bd4f28d..295f5db 100644 --- a/bigtop-packages/src/deb/flink/flink.prerm +++ b/bigtop-packages/src/deb/flink/flink.prerm @@ -1,4 +1,5 @@ #!/bin/bash +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/rules ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/rules b/bigtop-packages/src/deb/flink/rules index 553d828..1f50f0d 100644 --- a/bigtop-packages/src/deb/flink/rules +++ b/bigtop-packages/src/deb/flink/rules @@ -39,8 +39,3 @@ override_dh_auto_install: jobmanager taskmanager --build-dir=`pwd`/flink-dist/target/flink-${FLINK_VERSION}-bin/flink-${FLINK_VERSION} \ --source-dir=debian \ --prefix=debian/tmp - -# This should be fixed. Split flink in three packages: flink, flink-taskmanager, flink-jobmanager -override_dh_installinit: jobmanager taskmanager - dh_installinit --name=flink-taskmanager - dh_installinit --name=flink-jobmanager http://git-wip-us.apache.org/repos/asf/bigtop/blob/511507ca/bigtop-packages/src/deb/flink/rules.orig ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/flink/rules.orig b/bigtop-packages/src/deb/flink/rules.orig new file mode 100644 index 0000000..553d828 --- /dev/null +++ b/bigtop-packages/src/deb/flink/rules.orig @@ -0,0 +1,46 @@ +#!/usr/bin/make -f + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +%: + dh $@ + +override_dh_auto_build: + bash debian/do-component-build + + +.PHONY: jobmanager +.PHONY: taskmanager +jobmanager taskmanager: + bash debian/init.d.tmpl debian/flink-$@.svc deb debian/flink-$@.init + +override_dh_auto_install: jobmanager taskmanager + bash -x debian/install_flink.sh \ + --build-dir=`pwd`/flink-dist/target/flink-${FLINK_VERSION}-bin/flink-${FLINK_VERSION} \ + --source-dir=debian \ + --prefix=debian/tmp + +# This should be fixed. Split flink in three packages: flink, flink-taskmanager, flink-jobmanager +override_dh_installinit: jobmanager taskmanager + dh_installinit --name=flink-taskmanager + dh_installinit --name=flink-jobmanager