Skip to content

Commit

Permalink
Merge pull request #1 from cybem/master
Browse files Browse the repository at this point in the history
Debianization
  • Loading branch information
EinsamHauer committed Oct 5, 2015
2 parents d789cc5 + 6bf8c49 commit 67e912d
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
9 changes: 9 additions & 0 deletions pkg/deb/control/control
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions pkg/deb/disthene-dumper
Original file line number Diff line number Diff line change
@@ -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 "$@"
57 changes: 57 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,63 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<verbose>true</verbose>
<snapshotExpand>true</snapshotExpand>
<snapshotEnv>USER</snapshotEnv>
<verbose>true</verbose>
<controlDir>${basedir}/pkg/deb/control</controlDir>
<dataSet>
<data>
<type>template</type>
<paths>
<path>/usr/lib/${project.artifactId}</path>
</paths>
<mapper>
<type>perm</type>
</mapper>
</data>

<data>
<src>${project.build.directory}/${project.build.finalName}.jar</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/lib/disthene-dumper</prefix>
</mapper>
</data>

<data>
<type>link</type>
<symlink>true</symlink>
<linkName>/usr/lib/disthene-dumper/disthene-dumper.jar</linkName>
<linkTarget>/usr/lib/disthene-dumper/${project.build.finalName}.jar</linkTarget>
</data>

<data>
<src>${basedir}/pkg/deb/disthene-dumper</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin</prefix>
<filemode>755</filemode>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 67e912d

Please sign in to comment.