From 231153d6cb053a8092fad8247f2102ed5b873959 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 6 Sep 2016 19:06:27 +0200 Subject: [PATCH] provide debian package --- cli/README.md | 13 ++++ cli/pom.xml | 105 +++++++++++++++++++++-------- cli/src/deb/bin/hsscript | 4 ++ cli/src/deb/control/control | 9 +++ cli/src/deb/etc/hsadmin.properties | 6 ++ 5 files changed, 108 insertions(+), 29 deletions(-) create mode 100644 cli/README.md create mode 100644 cli/src/deb/bin/hsscript create mode 100644 cli/src/deb/control/control create mode 100644 cli/src/deb/etc/hsadmin.properties diff --git a/cli/README.md b/cli/README.md new file mode 100644 index 0000000..b522aad --- /dev/null +++ b/cli/README.md @@ -0,0 +1,13 @@ +# HSAdmin CLI + +Command and scripting client + +## build + + mvn clean package + +builds: +* normal jar +* jar with dependencies +* Debian package + diff --git a/cli/pom.xml b/cli/pom.xml index 41cd535..15c8d00 100644 --- a/cli/pom.xml +++ b/cli/pom.xml @@ -7,37 +7,11 @@ hsadmin-parent 1.0-SNAPSHOT - cli + hsadmin-cli + 1.0.1 jar - HSAdmin Cli - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - true - - - - maven-assembly-plugin - - - - de.hsadmin.jscli.Main - - - - jar-with-dependencies - - - - - - + HSAdmin-Cli @@ -66,4 +40,77 @@ 1.3.1 + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + de.hsadmin.jscli.Main + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + org.vafer + jdeb + 1.5 + + true + + + ${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar + hsscript-full.jar + file + + perm + /usr/local/lib/hostsharing/hsadmin + + + + src/deb/bin/hsscript + file + + perm + /usr/local/bin + 755 + + + + src/deb/etc/hsadmin.properties + file + + perm + /etc + + + + + + + make-jdeb + package + + jdeb + + + + + + hsscript + diff --git a/cli/src/deb/bin/hsscript b/cli/src/deb/bin/hsscript new file mode 100644 index 0000000..7b46bf9 --- /dev/null +++ b/cli/src/deb/bin/hsscript @@ -0,0 +1,4 @@ +#!/bin/bash +JAVA_HOME=/usr/lib/jvm/default-java/ +JAVA=$JAVA_HOME/bin/java +exec $JAVA -jar /usr/local/lib/hostsharing/hsadmin/hsscript-full.jar "$@" \ No newline at end of file diff --git a/cli/src/deb/control/control b/cli/src/deb/control/control new file mode 100644 index 0000000..32e37be --- /dev/null +++ b/cli/src/deb/control/control @@ -0,0 +1,9 @@ +Package: [[name]] +Version: [[version]] +Section: misc +Priority: optional +Architecture: all +Depends: default-jre +Maintainer: Peter Hormanns +Description: hostsharing command and scripting shell +Distribution: hostsharing \ No newline at end of file diff --git a/cli/src/deb/etc/hsadmin.properties b/cli/src/deb/etc/hsadmin.properties new file mode 100644 index 0000000..7314bd0 --- /dev/null +++ b/cli/src/deb/etc/hsadmin.properties @@ -0,0 +1,6 @@ +loginURL=https://login.hostsharing.net:443/cas/v1/tickets +servletURL=https://config.hostsharing.net:443/hsar/hsadmin/cli-interface/ +backendURL=https://config.hostsharing.net:443/hsar/backend +xmlrpcURL=https://config.hostsharing.net:443/hsar/xmlrpc/hsadmin,https://config2.hostsharing.net:443/hsar/xmlrpc/hsadmin +hsadmin.smtp.from=service@hostsharing.net +hsadmin.smtp.cc=service@hostsharing.net \ No newline at end of file