aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hama/hama.prerm
diff options
context:
space:
mode:
authorMinho Kim <minwise.kim@samsung.com>2015-08-12 09:55:09 +0900
committerYoungWoo Kim <ywkim@apache.org>2015-08-19 09:05:17 +0900
commit1f11c766df34d1b878350fe86c569262dfefcc58 (patch)
treef5f98e8b15f42a07607a325616be5e6a9b25abf1 /bigtop-packages/src/deb/hama/hama.prerm
parent7e5a9225f51314b697c6fb31194bdb659d9e0bde (diff)
BIGTOP-1126. Add Hama to Bigtop
Signed-off-by: YoungWoo Kim <ywkim@apache.org>
Diffstat (limited to 'bigtop-packages/src/deb/hama/hama.prerm')
-rw-r--r--bigtop-packages/src/deb/hama/hama.prerm57
1 files changed, 57 insertions, 0 deletions
diff --git a/bigtop-packages/src/deb/hama/hama.prerm b/bigtop-packages/src/deb/hama/hama.prerm
new file mode 100644
index 00000000..0f2a59a0
--- /dev/null
+++ b/bigtop-packages/src/deb/hama/hama.prerm
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# 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.
+
+# prerm script for hama
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ update-alternatives --remove hama-conf /etc/hama/conf.dist || :
+ ;;
+
+ 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
+
+