Skip to content

Commit 569bd37

Browse files
committed
Ubuntu deb package
1 parent 1ab56d9 commit 569bd37

File tree

5 files changed

+96
-4
lines changed

5 files changed

+96
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010

1111
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1212
hs_err_pid*
13+
14+
# Maven
15+
target

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# HTTP/S Java Checker
2-
[![Build Status](https://travis-ci.org/wavesoftware/java-https-checker.svg?branch=master)](https://travis-ci.org/wavesoftware/java-https-checker)
2+
[![Build Status](https://travis-ci.org/wavesoftware/java-https-checker.svg?branch=master)](https://travis-ci.org/wavesoftware/java-https-checker) [![Coverage Status](https://coveralls.io/repos/wavesoftware/java-https-checker/badge.svg?branch=master&service=github)](https://coveralls.io/github/wavesoftware/java-https-checker?branch=master) [![Maven Central](https://img.shields.io/maven-central/v/pl.wavesoftware.utils/https-checker.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22pl.wavesoftware%22%20AND%20a%3A%22https-checker%22)
33

44
HTTP/S Java Checker - It can check is your Java installation can perform connection with given HTTPS address
5+
6+
## Debian/Ubuntu
7+
8+
```bash
9+
dpkg -i jhttps-checker_0.8.0.deb
10+
jhttps-checker --help
11+
```
12+
13+
## Maven
14+
15+
```xml
16+
<dependency>
17+
<groupId>pl.wavesoftware</groupId>
18+
<artifactId>jhttps-checker</artifactId>
19+
<version>0.8.0</version>
20+
</dependency>
21+
```

pom.xml

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<artifactId>oss-parent</artifactId>
77
<version>9</version>
88
</parent>
9-
<groupId>pl.wavesoftware.utils</groupId>
10-
<artifactId>https-checker</artifactId>
9+
<groupId>pl.wavesoftware</groupId>
10+
<artifactId>jhttps-checker</artifactId>
1111
<version>0.8.0-SNAPSHOT</version>
1212
<packaging>jar</packaging>
1313

@@ -19,6 +19,7 @@
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<maven.compiler.source>1.7</maven.compiler.source>
2121
<maven.compiler.target>1.7</maven.compiler.target>
22+
<jar.w.dependencies>jar-with-dependencies</jar.w.dependencies>
2223
</properties>
2324

2425
<dependencies>
@@ -96,11 +97,71 @@
9697
</archive>
9798

9899
<descriptorRefs>
99-
<descriptorRef>jar-with-dependencies</descriptorRef>
100+
<descriptorRef>${jar.w.dependencies}</descriptorRef>
100101
</descriptorRefs>
101102

102103
</configuration>
103104
</plugin>
105+
106+
<plugin>
107+
<artifactId>jdeb</artifactId>
108+
<groupId>org.vafer</groupId>
109+
<version>1.4</version>
110+
<executions>
111+
<execution>
112+
<phase>package</phase>
113+
<goals>
114+
<goal>jdeb</goal>
115+
</goals>
116+
<configuration>
117+
<verbose>true</verbose>
118+
<snapshotExpand>true</snapshotExpand>
119+
<!-- expand "SNAPSHOT" to what is in the "USER" env variable -->
120+
<snapshotEnv>USER</snapshotEnv>
121+
<verbose>true</verbose>
122+
<controlDir>${basedir}/src/deb/control</controlDir>
123+
<dataSet>
124+
125+
<data>
126+
<src>${project.build.directory}/${project.build.finalName}-${jar.w.dependencies}.jar</src>
127+
<dst>${project.artifactId}.jar</dst>
128+
<type>file</type>
129+
<mapper>
130+
<type>perm</type>
131+
<prefix>/usr/share/wavesoftware/lib</prefix>
132+
<user>loader</user>
133+
<group>loader</group>
134+
</mapper>
135+
</data>
136+
137+
<data>
138+
<src>${basedir}/src/deb/bin/${project.artifactId}</src>
139+
<type>file</type>
140+
<mapper>
141+
<type>perm</type>
142+
<prefix>/usr/bin</prefix>
143+
<user>loader</user>
144+
<group>loader</group>
145+
<filemode>755</filemode>
146+
</mapper>
147+
</data>
148+
149+
<data>
150+
<src>${basedir}/src/deb/init.d</src>
151+
<type>directory</type>
152+
<mapper>
153+
<type>perm</type>
154+
<prefix>/etc/init.d</prefix>
155+
<user>loader</user>
156+
<group>loader</group>
157+
</mapper>
158+
</data>
159+
160+
</dataSet>
161+
</configuration>
162+
</execution>
163+
</executions>
164+
</plugin>
104165
</plugins>
105166

106167
</build>

src/deb/bin/jhttps-checker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec java -jar /usr/share/wavesoftware/lib/jhttps-checker.jar "$@"

src/deb/control/control

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: [[artifactId]]
2+
Version: [[version]]
3+
Section: misc
4+
Priority: optional
5+
Architecture: all
6+
Depends: openjdk-7-jre
7+
Description: [[name]] - [[description]]
8+
Maintainer: Krzysztof Suszynski <krzysztof.suszynski@wavesoftware.pl>

0 commit comments

Comments
 (0)