aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages
diff options
context:
space:
mode:
authorDavid Moravek <david.moravek@firma.seznam.cz>2016-07-13 16:29:11 +0200
committerRoman Shaposhnik <rvs@apache.org>2017-03-22 16:21:51 -0700
commit511507ca9c12dac8f6ce2094e6b127871ca08dd9 (patch)
treed1436a39ab24666a2f9f83ff73ceb3bfd9b800ed /bigtop-packages
parentc7e06bb48aa9df6f8538a8132568cd0c30d79d77 (diff)
BIGTOP-2492 Split flink debian packaging
Diffstat (limited to 'bigtop-packages')
-rw-r--r--bigtop-packages/src/deb/flink/control10
-rw-r--r--bigtop-packages/src/deb/flink/flink-jobmanager.postinst33
-rw-r--r--bigtop-packages/src/deb/flink/flink-jobmanager.preinst51
-rw-r--r--bigtop-packages/src/deb/flink/flink-jobmanager.prerm38
-rw-r--r--bigtop-packages/src/deb/flink/flink-taskmanager.postinst33
-rw-r--r--bigtop-packages/src/deb/flink/flink-taskmanager.preinst51
-rw-r--r--bigtop-packages/src/deb/flink/flink-taskmanager.prerm38
-rw-r--r--bigtop-packages/src/deb/flink/flink.postinst1
-rw-r--r--bigtop-packages/src/deb/flink/flink.prerm1
-rw-r--r--bigtop-packages/src/deb/flink/rules5
-rw-r--r--bigtop-packages/src/deb/flink/rules.orig46
11 files changed, 302 insertions, 5 deletions
diff --git a/bigtop-packages/src/deb/flink/control b/bigtop-packages/src/deb/flink/control
index a98bddc8..31d1e0ea 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.
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 00000000..767e3f62
--- /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#
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 00000000..ed6263fa
--- /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:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# 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
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 00000000..4a65bf62
--- /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
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 00000000..767e3f62
--- /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#
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 00000000..ed6263fa
--- /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:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# 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
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 00000000..4a65bf62
--- /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
diff --git a/bigtop-packages/src/deb/flink/flink.postinst b/bigtop-packages/src/deb/flink/flink.postinst
index 83b68af1..5d5ed9c8 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.
diff --git a/bigtop-packages/src/deb/flink/flink.prerm b/bigtop-packages/src/deb/flink/flink.prerm
index bd4f28da..295f5dba 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.
diff --git a/bigtop-packages/src/deb/flink/rules b/bigtop-packages/src/deb/flink/rules
index 553d828f..1f50f0dd 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
diff --git a/bigtop-packages/src/deb/flink/rules.orig b/bigtop-packages/src/deb/flink/rules.orig
new file mode 100644
index 00000000..553d828f
--- /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