From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 47D38138350 for ; Tue, 14 Jan 2020 03:58:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B60EE0971; Tue, 14 Jan 2020 03:58:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 142C6E0971 for ; Tue, 14 Jan 2020 03:58:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D571534DFFB for ; Tue, 14 Jan 2020 03:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D53A89 for ; Tue, 14 Jan 2020 03:58:49 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1578974281.b80df23c42a129155440203e3b98e80116399e9e.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/minicoredumper/, sys-process/minicoredumper/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/minicoredumper/Manifest sys-process/minicoredumper/files/60-minicoredumper.conf sys-process/minicoredumper/metadata.xml sys-process/minicoredumper/minicoredumper-2.0.1.ebuild X-VCS-Directories: sys-process/minicoredumper/files/ sys-process/minicoredumper/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: b80df23c42a129155440203e3b98e80116399e9e X-VCS-Branch: master Date: Tue, 14 Jan 2020 03:58:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6d342e80-b79b-442a-8e7f-15b33b1fc073 X-Archives-Hash: 6134fa8cb6dc30a4f5439c6ac8259d48 commit: b80df23c42a129155440203e3b98e80116399e9e Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Jan 14 03:47:26 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Jan 14 03:58:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80df23c sys-process/minicoredumper: new package utility to process coredump files, similar to systemd-coredump Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev gentoo.org> sys-process/minicoredumper/Manifest | 1 + .../minicoredumper/files/60-minicoredumper.conf | 1 + sys-process/minicoredumper/metadata.xml | 13 ++++++ .../minicoredumper/minicoredumper-2.0.1.ebuild | 47 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) diff --git a/sys-process/minicoredumper/Manifest b/sys-process/minicoredumper/Manifest new file mode 100644 index 00000000000..2654ac98b7c --- /dev/null +++ b/sys-process/minicoredumper/Manifest @@ -0,0 +1 @@ +DIST minicoredumper-2.0.1.tar.xz 292088 BLAKE2B 0286004b707b1c9559ef4078dbd1d39ac82123cf3a6ba194210674dff3462db1b922340705f9b5e30e821b84ed91429f6f86cb680d353363b8b6aac92885cba6 SHA512 1ffc8e763aa653e443b15d49ac229720afc5d7729d6c1edb728bee55a887cad3b780bca2e4ac7f34c2f36756b02bd15002286f65d8a21ba99778d722e5953bb2 diff --git a/sys-process/minicoredumper/files/60-minicoredumper.conf b/sys-process/minicoredumper/files/60-minicoredumper.conf new file mode 100644 index 00000000000..e862e20e9cc --- /dev/null +++ b/sys-process/minicoredumper/files/60-minicoredumper.conf @@ -0,0 +1 @@ +kernel.core_pattern = |/usr/sbin/minicoredumper %P %u %g %s %t %h %e diff --git a/sys-process/minicoredumper/metadata.xml b/sys-process/minicoredumper/metadata.xml new file mode 100644 index 00000000000..c514535249c --- /dev/null +++ b/sys-process/minicoredumper/metadata.xml @@ -0,0 +1,13 @@ + + + + + gyakovlev@gentoo.org + Georgy Yakovlev + + + minicoredumper is a program that handles the creation of core dump files on Linux. + It can produce much smaller core dump files by making use of sparse files, compression, + and allowing the user to configure what parts of the process memory image should be dumped. + + diff --git a/sys-process/minicoredumper/minicoredumper-2.0.1.ebuild b/sys-process/minicoredumper/minicoredumper-2.0.1.ebuild new file mode 100644 index 00000000000..8795d2b0b94 --- /dev/null +++ b/sys-process/minicoredumper/minicoredumper-2.0.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Core dump file processor" +HOMEPAGE="https://linutronix.de/minicoredumper" +SRC_URI="https://linutronix.de/minicoredumper/files/${P}.tar.xz" + +LICENSE="BSD BSD-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +DEPEND=" + dev-libs/json-c:= + virtual/libelf +" + +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + # TODO: regd daemon is disabled as there are no known consumers + local myconf=( + --runstatedir="${EPREFIX}/run" + --without-werror + --without-minicoredumper_trigger + --without-minicoredumper_regd + MCD_DUMP_PATH="${EPREFIX}/var/lib/${PN}" + ) + econf ${myconf[@]} +} + +src_install() { + default + + keepdir /var/lib/minicoredumper + + # systemd-coredump uses /usr/lib/sysctl.d/50-coredump.conf + insinto /usr/lib/sysctl.d + doins "${FILESDIR}"/60-minicoredumper.conf + + # it installs some files/dirs we don't want + rmdir -v "${ED}/run" || die + rm -rv "${ED}"/etc/{init.d,default} || die +}