diff options
author | tobik <tobik@FreeBSD.org> | 2017-10-27 23:52:10 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2017-10-27 23:52:10 +0800 |
commit | c7176b0486dc49106ca850155830f05e331d7d73 (patch) | |
tree | e35fafb09d19d6996715e05e610697d6634f1ab7 | |
parent | 949ab4186dc43e6e5a67537362996866b34da286 (diff) | |
download | freebsd-ports-gnome-c7176b0486dc49106ca850155830f05e331d7d73.tar.gz freebsd-ports-gnome-c7176b0486dc49106ca850155830f05e331d7d73.tar.zst freebsd-ports-gnome-c7176b0486dc49106ca850155830f05e331d7d73.zip |
New port: java/jattach
The utility to send commands to remote JVM via Dynamic Attach mechanism.
All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program.
No installed JDK required, works with just JRE.
This is the lightweight native version of HotSpot Attach API
https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/
WWW: https://github.com/apangin/jattach
PR: 222660
Submitted by: Michael Zhilin <mizhka@gmail.com>
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/jattach/Makefile | 24 | ||||
-rw-r--r-- | java/jattach/distinfo | 3 | ||||
-rw-r--r-- | java/jattach/files/patch-Makefile | 21 | ||||
-rw-r--r-- | java/jattach/pkg-descr | 8 |
5 files changed, 57 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index 677ff7e9d453..0a72de2694cf 100644 --- a/java/Makefile +++ b/java/Makefile @@ -57,6 +57,7 @@ SUBDIR += jakarta-regexp SUBDIR += jamvm SUBDIR += jasmin + SUBDIR += jattach SUBDIR += java-checkstyle SUBDIR += java-cup SUBDIR += java-getopt diff --git a/java/jattach/Makefile b/java/jattach/Makefile new file mode 100644 index 000000000000..21fecc9eb7a9 --- /dev/null +++ b/java/jattach/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= jattach +DISTVERSION= g20170928 +CATEGORIES= java devel + +MAINTAINER= mizhka@gmail.com +COMMENT= JVM dynamic attach utility + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake + +USE_GITHUB= yesmake +GH_ACCOUNT= apangin +GH_TAGNAME= ccc2f05 + +PLIST_FILES= bin/jattach + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/jattach ${STAGEDIR}${PREFIX}/bin/jattach + +.include <bsd.port.mk> diff --git a/java/jattach/distinfo b/java/jattach/distinfo new file mode 100644 index 000000000000..330688f4c1dd --- /dev/null +++ b/java/jattach/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1506587842 +SHA256 (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = dafb14375200beb6c52ffce6412c0d74c4639d8421f275f9b6085511ca4e886d +SIZE (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = 9773 diff --git a/java/jattach/files/patch-Makefile b/java/jattach/files/patch-Makefile new file mode 100644 index 000000000000..0482878d6797 --- /dev/null +++ b/java/jattach/files/patch-Makefile @@ -0,0 +1,21 @@ +--- Makefile.orig 2017-09-27 07:10:05 UTC ++++ Makefile +@@ -2,6 +2,10 @@ ifneq ($(findstring Windows,$(OS)),) + CL=cl.exe + CFLAGS=/O2 /D_CRT_SECURE_NO_WARNINGS + JATTACH_EXE=jattach.exe ++else ++ UNAME_S := $(shell uname -s) ++ifneq ($(findstring FreeBSD,$(UNAME_S)),) ++ JATTACH_EXE=jattach + else + ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + RPM_ROOT=$(ROOT_DIR)/build/rpm +@@ -10,6 +14,7 @@ else + CC=gcc + CFLAGS=-O2 + JATTACH_EXE=jattach ++endif + endif + + all: build build/$(JATTACH_EXE) diff --git a/java/jattach/pkg-descr b/java/jattach/pkg-descr new file mode 100644 index 000000000000..52cd49cb729b --- /dev/null +++ b/java/jattach/pkg-descr @@ -0,0 +1,8 @@ +The utility to send commands to remote JVM via Dynamic Attach mechanism. +All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program. +No installed JDK required, works with just JRE. + +This is the lightweight native version of HotSpot Attach API +https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/ + +WWW: https://github.com/apangin/jattach |