From owner-svn-ports-all@freebsd.org Fri Oct 27 15:52:15 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F861E4A5D0; Fri, 27 Oct 2017 15:52:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C368F6D32E; Fri, 27 Oct 2017 15:52:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9RFqAmc034449; Fri, 27 Oct 2017 15:52:10 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9RFqAd9034358; Fri, 27 Oct 2017 15:52:10 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201710271552.v9RFqAd9034358@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 27 Oct 2017 15:52:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453007 - in head/java: . jattach jattach/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/java: . jattach jattach/files X-SVN-Commit-Revision: 453007 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 15:52:15 -0000 Author: tobik Date: Fri Oct 27 15:52:10 2017 New Revision: 453007 URL: https://svnweb.freebsd.org/changeset/ports/453007 Log: 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 Added: head/java/jattach/ head/java/jattach/Makefile (contents, props changed) head/java/jattach/distinfo (contents, props changed) head/java/jattach/files/ head/java/jattach/files/patch-Makefile (contents, props changed) head/java/jattach/pkg-descr (contents, props changed) Modified: head/java/Makefile Modified: head/java/Makefile ============================================================================== --- head/java/Makefile Fri Oct 27 15:51:38 2017 (r453006) +++ head/java/Makefile Fri Oct 27 15:52:10 2017 (r453007) @@ -57,6 +57,7 @@ SUBDIR += jakarta-regexp SUBDIR += jamvm SUBDIR += jasmin + SUBDIR += jattach SUBDIR += java-checkstyle SUBDIR += java-cup SUBDIR += java-getopt Added: head/java/jattach/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jattach/Makefile Fri Oct 27 15:52:10 2017 (r453007) @@ -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 Added: head/java/jattach/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jattach/distinfo Fri Oct 27 15:52:10 2017 (r453007) @@ -0,0 +1,3 @@ +TIMESTAMP = 1506587842 +SHA256 (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = dafb14375200beb6c52ffce6412c0d74c4639d8421f275f9b6085511ca4e886d +SIZE (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = 9773 Added: head/java/jattach/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jattach/files/patch-Makefile Fri Oct 27 15:52:10 2017 (r453007) @@ -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) Added: head/java/jattach/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jattach/pkg-descr Fri Oct 27 15:52:10 2017 (r453007) @@ -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