provide debian package
This commit is contained in:
parent
feddbc5989
commit
231153d6cb
13
cli/README.md
Normal file
13
cli/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# HSAdmin CLI
|
||||||
|
|
||||||
|
Command and scripting client
|
||||||
|
|
||||||
|
## build
|
||||||
|
|
||||||
|
mvn clean package
|
||||||
|
|
||||||
|
builds:
|
||||||
|
* normal jar
|
||||||
|
* jar with dependencies
|
||||||
|
* Debian package
|
||||||
|
|
105
cli/pom.xml
105
cli/pom.xml
@ -7,37 +7,11 @@
|
|||||||
<artifactId>hsadmin-parent</artifactId>
|
<artifactId>hsadmin-parent</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>cli</artifactId>
|
<artifactId>hsadmin-cli</artifactId>
|
||||||
|
<version>1.0.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HSAdmin Cli</name>
|
<name>HSAdmin-Cli</name>
|
||||||
|
|
||||||
<build>
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<testFailureIgnore>true</testFailureIgnore>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<mainClass>de.hsadmin.jscli.Main</mainClass>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -66,4 +40,77 @@
|
|||||||
<version>1.3.1</version>
|
<version>1.3.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>de.hsadmin.jscli.Main</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
<descriptorRefs>
|
||||||
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
|
</descriptorRefs>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>make-assembly</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.vafer</groupId>
|
||||||
|
<artifactId>jdeb</artifactId>
|
||||||
|
<version>1.5</version>
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<dataSet>
|
||||||
|
<data>
|
||||||
|
<src>${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</src>
|
||||||
|
<dst>hsscript-full.jar</dst>
|
||||||
|
<type>file</type>
|
||||||
|
<mapper>
|
||||||
|
<type>perm</type>
|
||||||
|
<prefix>/usr/local/lib/hostsharing/hsadmin</prefix>
|
||||||
|
</mapper>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<src>src/deb/bin/hsscript</src>
|
||||||
|
<type>file</type>
|
||||||
|
<mapper>
|
||||||
|
<type>perm</type>
|
||||||
|
<prefix>/usr/local/bin</prefix>
|
||||||
|
<filemode>755</filemode>
|
||||||
|
</mapper>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<src>src/deb/etc/hsadmin.properties</src>
|
||||||
|
<type>file</type>
|
||||||
|
<mapper>
|
||||||
|
<type>perm</type>
|
||||||
|
<prefix>/etc</prefix>
|
||||||
|
</mapper>
|
||||||
|
</data>
|
||||||
|
</dataSet>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>make-jdeb</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jdeb</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
<finalName>hsscript</finalName>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
4
cli/src/deb/bin/hsscript
Normal file
4
cli/src/deb/bin/hsscript
Normal file
@ -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 "$@"
|
9
cli/src/deb/control/control
Normal file
9
cli/src/deb/control/control
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Package: [[name]]
|
||||||
|
Version: [[version]]
|
||||||
|
Section: misc
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Depends: default-jre
|
||||||
|
Maintainer: Peter Hormanns <peter.hormanns@hostsharing.net>
|
||||||
|
Description: hostsharing command and scripting shell
|
||||||
|
Distribution: hostsharing
|
6
cli/src/deb/etc/hsadmin.properties
Normal file
6
cli/src/deb/etc/hsadmin.properties
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user