--- /dev/null
+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
--- /dev/null
+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.
--- /dev/null
+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
--- /dev/null
+/usr/bin
\ No newline at end of file
--- /dev/null
+[DEFAULT]
+pristine-tar = True
+
+[buildpackage]
+ignore-new = True
\ No newline at end of file
--- /dev/null
+.\" 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
--- /dev/null
+debian/jattach.1
--- /dev/null
+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
--- /dev/null
+do-not-override-CFLAGS
--- /dev/null
+#!/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
--- /dev/null
+3.0 (quilt)
--- /dev/null
+version=4
+https://github.com/apangin/jattach/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate