From 5adc00692063655812ac274528cfe36ee2fcadef Mon Sep 17 00:00:00 2001 From: Kirill Kondratenko Date: Sun, 4 Oct 2015 20:32:07 +0300 Subject: [PATCH 1/2] Add debianization --- pkg/deb/control/control | 9 +++++++ pkg/deb/disthene-dumper | 9 +++++++ pom.xml | 57 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 pkg/deb/control/control create mode 100644 pkg/deb/disthene-dumper diff --git a/pkg/deb/control/control b/pkg/deb/control/control new file mode 100644 index 0000000..a675aba --- /dev/null +++ b/pkg/deb/control/control @@ -0,0 +1,9 @@ +Package: [[name]] +Version: [[version]] +Section: misc +Priority: optional +Architecture: all +Depends: +Recommends: oracle-java-7 | oracle-java-8 +Description: Disthene dumper +Maintainer: Andrei Ivanov diff --git a/pkg/deb/disthene-dumper b/pkg/deb/disthene-dumper new file mode 100644 index 0000000..f26c9d1 --- /dev/null +++ b/pkg/deb/disthene-dumper @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -f /etc/default/disthene-dumper ]; then + . /etc/default/disthene-dumper +fi + +JAR="/usr/lib/disthene-dumper/disthene-dumper.jar" + +java $JAVA_OPTS -jar $JAR "$@" diff --git a/pom.xml b/pom.xml index b2e7942..148bbff 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,63 @@ + + jdeb + org.vafer + 1.4 + + + package + + jdeb + + + true + true + USER + true + ${basedir}/pkg/deb/control + + + template + + /usr/lib/${project.artifactId} + + + perm + + + + + ${project.build.directory}/${project.build.finalName}.jar + file + + perm + /usr/lib/disthene-dumper + + + + + link + true + /usr/lib/disthene-dumper/disthene-dumper.jar + /usr/lib/disthene-dumper/${project.build.finalName}.jar + + + + ${basedir}/pkg/deb/disthene-dumper + file + + perm + /usr/bin + 755 + + + + + + + From 6bf8c4935670639c90c63a5dc28dec8b039d5c10 Mon Sep 17 00:00:00 2001 From: Kirill Kondratenko Date: Sun, 4 Oct 2015 20:33:30 +0300 Subject: [PATCH 2/2] Ignore './target' --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target/