]> git.sven.stormbind.net Git - sven/jattach.git/commitdiff
Update upstream source from tag 'upstream/2.0'
authorSven Hoexter <sven@stormbind.net>
Mon, 16 Aug 2021 08:48:46 +0000 (10:48 +0200)
committerSven Hoexter <sven@stormbind.net>
Mon, 16 Aug 2021 08:48:46 +0000 (10:48 +0200)
Update to upstream version '2.0'
with Debian dir b811dd3a7285a1f76479a940241b3d82528065e1

13 files changed:
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]
debian/jattach.1 [new file with mode: 0644]
debian/manpages [new file with mode: 0644]
debian/patches/do-not-override-CFLAGS [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..0703a91
--- /dev/null
@@ -0,0 +1,13 @@
+jattach (1.5-2) unstable; urgency=medium
+
+  * Pass on CPPFLAGS and LDFLAGS as well at build time.
+    Refreshed in d/patches/do-not-override-CFLAGS
+  * Source-only upload to unstable to allow testing migration.
+
+ -- Sven Hoexter <hoexter@debian.org>  Fri, 13 Sep 2019 16:52:23 +0200
+
+jattach (1.5-1) unstable; urgency=medium
+
+  * Initial release (Closes: #939577)
+
+ -- Sven Hoexter <hoexter@debian.org>  Thu, 22 Aug 2019 17:33:50 +0200
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b17c49e
--- /dev/null
@@ -0,0 +1,17 @@
+Source: jattach
+Section: java
+Priority: optional
+Maintainer: Sven Hoexter <hoexter@debian.org>
+Build-Depends: debhelper-compat (=12)
+Standards-Version: 4.4.0
+Homepage: https://github.com/apangin/jattach
+Vcs-Browser: https://git.sven.stormbind.net/?p=sven/jattach.git
+Vcs-Git: https://git.sven.stormbind.net/jattach.git
+
+Package: jattach
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: JVM Dynamic Attach utility all in one jmap jstack jcmd jinfo
+ jattach is a utility implementing commands for the JVM Dynamic Attach
+ mechanism. Instead of installing a complete JDK you can use this small
+ utility to query information from your running JVM.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..43de908
--- /dev/null
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: jattach
+Source: https://github.com/apangin/jattach/releases
+
+Files: *
+Copyright: 2016-2019 Andrei Pangin
+License: Apache 
+
+Files: debian/*
+Copyright: 2019 Sven Hoexter <sven@stormbind.net>
+License: Apache
+
+License: Apache
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache 2.0 License
+ can be found in the file `/usr/share/common-licenses/Apache-2.0'.
\ No newline at end of file
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..0b11bef
--- /dev/null
@@ -0,0 +1 @@
+/usr/bin
\ No newline at end of file
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..b43bf86
--- /dev/null
@@ -0,0 +1 @@
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..ed9617c
--- /dev/null
@@ -0,0 +1,5 @@
+[DEFAULT]
+pristine-tar = True
+
+[buildpackage]
+ignore-new = True
\ No newline at end of file
diff --git a/debian/jattach.1 b/debian/jattach.1
new file mode 100644 (file)
index 0000000..22335f9
--- /dev/null
@@ -0,0 +1,56 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2019-2020 Sven Hoexter <sven@stormbind.net>,
+.\"
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH JATTACH 1 "February 28 2020"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+jattach \- dynamc attach utility for the jvm
+.SH SYNOPSIS
+.B jattach
+.RI "pid [load|properties|agentProperties|datadump|threaddump|dumpheap|inspectheap|setflag|printflag|jcmd] [args]"
+.SH DESCRIPTION
+jattach is an all in one jamp, jstack, jcmd, jinfo implementation as a tiny single C program.
+.SH OPTIONS
+.B load
+load agent library
+.PP
+.B properties
+print system properties
+.PP
+.B agentProperties
+print agent properties
+.PP
+.B datadump
+show heap and thread summary
+.PP
+.B threaddump
+dump all stack traces (like jstack)
+.PP
+.B dumpheap mydumpfile.hprof
+dump heap (like jmap -dump:live,format=b)
+.PP
+.B inspectheap
+create a heap histrogram (like jmap -histo)
+.PP
+.B setflag
+modify manageable JVM flag
+.PP
+.B printflag
+print JVM flag
+.PP
+.B jcmd
+execute jcmd command
diff --git a/debian/manpages b/debian/manpages
new file mode 100644 (file)
index 0000000..2431ec9
--- /dev/null
@@ -0,0 +1 @@
+debian/jattach.1
diff --git a/debian/patches/do-not-override-CFLAGS b/debian/patches/do-not-override-CFLAGS
new file mode 100644 (file)
index 0000000..50774fc
--- /dev/null
@@ -0,0 +1,27 @@
+Description: do not override CFLAGS
+ By default the Makefile ignores the CFLAGS as
+ exported by dh.
+Author: Sven Hoexter <hoexter@debian.org>
+
+Index: jattach/Makefile
+===================================================================
+--- jattach.orig/Makefile
++++ jattach/Makefile
+@@ -16,7 +16,7 @@ else
+     SOURCES=$(RPM_ROOT)/SOURCES
+     SPEC_FILE=jattach.spec
+     CC=gcc
+-    CFLAGS=-O2
++    CFLAGS ?= -O2
+     JATTACH_EXE=jattach
+   endif
+ endif
+@@ -27,7 +27,7 @@ build:
+       mkdir -p build
+ build/jattach: src/jattach_posix.c
+-      $(CC) $(CFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^
++      $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^
+ build/jattach.exe: src/jattach_windows.c
+       $(CL) $(CFLAGS) /DJATTACH_VERSION=\"$(JATTACH_VERSION)\" /Fobuild/jattach.obj /Fe$@ $^ advapi32.lib /link /SUBSYSTEM:CONSOLE,5.02
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..b96a296
--- /dev/null
@@ -0,0 +1 @@
+do-not-override-CFLAGS
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b959739
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+       dh $@
+
+override_dh_auto_install:
+       install --mode=755 build/jattach debian/jattach/usr/bin/jattach
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..169ec16
--- /dev/null
@@ -0,0 +1,3 @@
+version=4
+https://github.com/apangin/jattach/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate