HIVE-13034: Add jdeb plugin to build debian (Arshad Matin reviewed by 
Amareshwari Sriramadasu)


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

Branch: refs/heads/llap
Commit: a154a092bc15b3b5dffb47a43652a63f095bc7bd
Parents: 402fabe
Author: Prasanth Jayachandran <[email protected]>
Authored: Wed Feb 24 11:18:54 2016 -0600
Committer: Prasanth Jayachandran <[email protected]>
Committed: Wed Feb 24 11:19:46 2016 -0600

----------------------------------------------------------------------
 packaging/pom.xml                 | 35 ++++++++++++++++++++++++++++++++++
 packaging/src/deb/control/control | 23 ++++++++++++++++++++++
 2 files changed, 58 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/a154a092/packaging/pom.xml
----------------------------------------------------------------------
diff --git a/packaging/pom.xml b/packaging/pom.xml
index e7feb62..7607991 100644
--- a/packaging/pom.xml
+++ b/packaging/pom.xml
@@ -89,6 +89,41 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>deb</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>jdeb</artifactId>
+            <groupId>org.vafer</groupId>
+            <version>1.0.1</version>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>jdeb</goal>
+                </goals>
+                <configuration>
+                  <installDir>/usr/local/hive</installDir>
+                  
<deb>${project.build.directory}/hive_${project.version}.deb</deb>
+                  <dataSet>
+                    <data>
+                      
<src>target/apache-hive-${project.version}-bin/apache-hive-${project.version}-bin</src>
+                      <type>directory</type>
+                      <mapper>
+                        <type>perm</type>
+                        <prefix>/usr/local/hive/bin</prefix>
+                        <filemode>755</filemode>
+                      </mapper>
+                    </data>
+                  </dataSet>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 

http://git-wip-us.apache.org/repos/asf/hive/blob/a154a092/packaging/src/deb/control/control
----------------------------------------------------------------------
diff --git a/packaging/src/deb/control/control 
b/packaging/src/deb/control/control
new file mode 100644
index 0000000..b9b04b8
--- /dev/null
+++ b/packaging/src/deb/control/control
@@ -0,0 +1,23 @@
+# 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.
+Package: hive
+Version: [[project.version]]
+Section:  misc
+Priority: high
+Architecture: all
+Depends: sun-java7-jre | java2-runtime
+Maintainer: Apache Software Foundation <[email protected]>
+Description: Apache Hive
+Distribution: development

Reply via email to