Updated Branches:
  refs/heads/master d32156001 -> b4eda8105

BIGTOP-1119. phoenix DEB packages differ in a few ways from RPM counterparts


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/93e435f1
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/93e435f1
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/93e435f1

Branch: refs/heads/master
Commit: 93e435f158b7f4ad349ded5e96a477cb489ffc25
Parents: d321560
Author: Roman Shaposhnik <[email protected]>
Authored: Wed Oct 16 14:56:01 2013 -0700
Committer: Roman Shaposhnik <[email protected]>
Committed: Wed Oct 16 14:56:01 2013 -0700

----------------------------------------------------------------------
 bigtop-packages/src/deb/phoenix/control         |  2 +-
 .../src/deb/phoenix/phoenix.postinst            | 35 ++++++++++++
 bigtop-packages/src/deb/phoenix/phoenix.prerm   | 57 ++++++++++++++++++++
 3 files changed, 93 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/93e435f1/bigtop-packages/src/deb/phoenix/control
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/phoenix/control 
b/bigtop-packages/src/deb/phoenix/control
index 4eff48d..ee72218 100644
--- a/bigtop-packages/src/deb/phoenix/control
+++ b/bigtop-packages/src/deb/phoenix/control
@@ -24,7 +24,7 @@ Homepage: https://github.com/forcedotcom/phoenix
 Package: phoenix
 Architecture: all
 Depends: zookeeper, hadoop, hadoop-mapreduce, hadoop-yarn, hbase, bigtop-utils 
(>= 0.7)
-Description: Phoenix is a SQL skin over HBase
+Description: Phoenix is a SQL skin over HBase and client-embedded JDBC driver.
  Phoenix is a SQL skin over HBase delivered as a client-embedded JDBC driver.
  The Phoenix query engine transforms an SQL query into one or more HBase scans,
  and orchestrates their execution to produce standard JDBC result sets. Direct

http://git-wip-us.apache.org/repos/asf/bigtop/blob/93e435f1/bigtop-packages/src/deb/phoenix/phoenix.postinst
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/phoenix/phoenix.postinst 
b/bigtop-packages/src/deb/phoenix/phoenix.postinst
new file mode 100644
index 0000000..9baedab
--- /dev/null
+++ b/bigtop-packages/src/deb/phoenix/phoenix.postinst
@@ -0,0 +1,35 @@
+#!/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.
+
+# postinst script for phoenix
+
+set -e
+
+case "$1" in
+    configure)
+        update-alternatives --install /etc/phoenix/conf phoenix-conf 
/etc/phoenix/conf.dist 30
+    ;;
+
+    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/93e435f1/bigtop-packages/src/deb/phoenix/phoenix.prerm
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/deb/phoenix/phoenix.prerm 
b/bigtop-packages/src/deb/phoenix/phoenix.prerm
new file mode 100644
index 0000000..93b9cd6
--- /dev/null
+++ b/bigtop-packages/src/deb/phoenix/phoenix.prerm
@@ -0,0 +1,57 @@
+#!/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.
+
+# prerm script for phoenix
+#
+# 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 phoenix-conf /etc/phoenix/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
+
+

Reply via email to