summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorYves Fischer <yves.fischer@cern.ch>2016-05-09 14:55:10 +0200
committerYves Fischer <yves.fischer@cern.ch>2016-05-09 14:55:10 +0200
commit1b6371154e58458991f290b4a95a82efef2acce8 (patch)
treef17603e73a6009e4a4ba614fcc94b120b978ec2c /packages
parent2a8ba6c20557ca48ace7c360ab74ba3f297a0c1c (diff)
downloaddebian-packages-1b6371154e58458991f290b4a95a82efef2acce8.tar.gz
debian-packages-1b6371154e58458991f290b4a95a82efef2acce8.zip
add jvmtop
Diffstat (limited to 'packages')
-rw-r--r--packages/jvmtop/build.gradle27
-rwxr-xr-xpackages/jvmtop/resources/bin/jvmtop5
2 files changed, 32 insertions, 0 deletions
diff --git a/packages/jvmtop/build.gradle b/packages/jvmtop/build.gradle
new file mode 100644
index 0000000..242bb4c
--- /dev/null
+++ b/packages/jvmtop/build.gradle
@@ -0,0 +1,27 @@
+import org.xapek.yvesf.gradle.DownloadTask
+
+version '0.8.0'
+
+task download(type: DownloadTask) {
+ source "https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-${project.version}.tar.gz"
+ sha256sum 'f9de8159240b400a51b196520b4c4f0ddbcaa8e587fab1f0a59be8a00dc128c4'
+}
+
+task unpack(type: Copy) {
+ from tarTree(download.destFile)
+ into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ }
+}
+unpack.dependsOn(download)
+
+ospackage {
+ from(fileTree(dir: 'resources')) {
+ into "/opt/${project.name}"
+ }
+
+ from(unpack.outputs.files) {
+ into "/opt/${project.name}/lib"
+ }
+}
diff --git a/packages/jvmtop/resources/bin/jvmtop b/packages/jvmtop/resources/bin/jvmtop
new file mode 100755
index 0000000..6933c33
--- /dev/null
+++ b/packages/jvmtop/resources/bin/jvmtop
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+STARTER="`dirname \"$0\"`/../lib/jvmtop.sh"
+
+/bin/sh $STARTER \ No newline at end of file