aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Bhat <naresh.bhat@linaro.org>2019-03-05 15:28:27 +0800
committerSorabh Hamirwasia <sorabh@apache.org>2019-03-14 15:36:10 -0700
commit5c935b762dc630d4016005bbe4d42f5bbf5a920d (patch)
tree3a118382039c7a27bf06089bb94803d31b058c31
parentc7f6a073c0974153be90683841e51e1eced88d6c (diff)
DRILL-7075: Fix debian package issue with control files
Add control file to generate debian package where we have deleted in #1669 PR. We need control file either in static form or dynamic form. The control file gives details about the package and conffiles used when a new version is installed then dpkg knows to ask what do you want to do with differences instead of just replacing file. According to debian packaging rules the control files are must and conffile is optional. Hence to add control file. We also need to add "<exclude>**/control</exclude>" in distribution/pom.xml file. Because without this line "mvn clean install -DskipTests -Drat.skip=false -Dlicense.skip=false" will fail. Reference link for debian packaging: https://wiki.debian.org/Packaging/Intro?action=show&redirect=IntroDebianPackaging Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org> closes #1679
-rw-r--r--distribution/pom.xml1
-rw-r--r--distribution/src/deb/control/control9
2 files changed, 10 insertions, 0 deletions
diff --git a/distribution/pom.xml b/distribution/pom.xml
index eabcca42f..382699158 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -197,6 +197,7 @@
<configuration>
<excludes>
<exclude>**/git.properties</exclude>
+ <exclude>**/control</exclude>
<exclude>**/*.checkstyle</exclude>
<exclude>**/*.json</exclude>
<exclude>**/README.md</exclude>
diff --git a/distribution/src/deb/control/control b/distribution/src/deb/control/control
new file mode 100644
index 000000000..f15a84389
--- /dev/null
+++ b/distribution/src/deb/control/control
@@ -0,0 +1,9 @@
+Homepage: http://drill.apache.org/
+Package: Apache Drill
+Version: 1.16.0-SNAPSHOT
+Section: misc
+Priority: optional
+Architecture: all
+Maintainer: Naresh Bhat <naresh.bhat@linaro.org>
+Description: Apache Drill is an Apache open-source SQL query engine for Big Data exploration.
+Distribution: development