From nobody Fri Sep 26 03:47:32 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cXxP03T8Yz69730; Fri, 26 Sep 2025 03:47:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cXxP02lpYz3f0q; Fri, 26 Sep 2025 03:47:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758858452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6SaRJ+5i40SzglGeLv/lMrZFj6bgRwwECd6ZJqbT6hA=; b=FIJ21LtYR8T+NVMeW92+UQKf4Dxes0w9RbXnPvyXmpmSgWn/WJhotQRo37fWp+PYIvP91Y q7NLrkKv9m+c2DAlW+RLo9aGM2P2gBXfeVgSlpv/0NqH2/ni92e89BS1vSR8EoE8jhbtoT 3h5B6MaddtjXKqoDIT8dvL7OqJ/jA3eNKbPHhXqvZBYyxJDF6vu4r/hbFX2F9DKu47pmfC R1DNgkIEtlcPPyVl2sBBAl6ud3i8m7VbNE07uMSzO+5fOcomPkkLcR2CYjX3hy6LVSxa11 6s+7PZGOZ2S+vrqz6f9l7u/wOoqBEeR3eJ8i3tN2Lpcc2M6z5d3zJaqEWpVlCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758858452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6SaRJ+5i40SzglGeLv/lMrZFj6bgRwwECd6ZJqbT6hA=; b=g0olegpLtpdPX0m17pv1yubuatQM0TyIrW4SvbCQFpsEZ01otYXD7/OuH5LghXeYBqV420 TDBapCREjFu5C1dBXZSCpdudi39OyLQ+ce1eGKUOqYKs9jq1Nc+NTBadHfH/niXl4c6ndo xbHAMwpmqmPuaxx0BmoulES8ZJIEymC+0tx0I0ADAwSAKN9fjMI6IWSSzGwh0VhGKpBIvs loxTRAcRfA39wQ+FHIkoAH4SPySg2UX7jQrm7cPnrufCehqPw80ygmTGvNC3fghURNpk0z s6HWICrClhqdEobaLwtPJHtYhlPZiNhQj33oSPQqKOa4n2n2swzAFlJCOio4EQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758858452; a=rsa-sha256; cv=none; b=GqYQ6zEcWCI1q5UPGpzDoFe1XWcWIVlSoZuw0mPv4WRuxgJ6LIqzHLfDuB3mg3oUmATrZl AtqFJblKU2Wxn/2fNJGeI0G2wL5Abyp3UfAlFWHmUuZmLdsj1IWjM+i0bzgUNiXedaXvG7 DmeRh8o2K7rCGeTfwxS7jJ/OCrf75wbtE7DsESf0mXuBuqmoOdRp8DeL859ir/ZRBqY+rD 0Veh8KD9GlaLS9zBTTXbt2okAa4QdYtAHw5zfD/d0xo9HVgxnt1igBAfvFcsc44y+EsN4l J7L9k2T2z2JCkGjL1XpNsMreZiJeq7kroO/64QSR1GwyQjT9PWngswhkvBcT5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cXxP02JFdzWYg; Fri, 26 Sep 2025 03:47:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58Q3lWV8097845; Fri, 26 Sep 2025 03:47:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58Q3lW3w097842; Fri, 26 Sep 2025 03:47:32 GMT (envelope-from git) Date: Fri, 26 Sep 2025 03:47:32 GMT Message-Id: <202509260347.58Q3lW3w097842@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kyle Evans Subject: git: 28b80775182a - main - sysutils/ucored: add a new port for user core collection List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 28b80775182ad175a20389fe5f681415492e0501 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/ports/commit/?id=28b80775182ad175a20389fe5f681415492e0501 commit 28b80775182ad175a20389fe5f681415492e0501 Author: Kyle Evans AuthorDate: 2025-09-26 03:40:38 +0000 Commit: Kyle Evans CommitDate: 2025-09-26 03:46:31 +0000 sysutils/ucored: add a new port for user core collection This utility allows configurable actions to be enacted on user coredumps produced on the system. ucored(8) brings functionality to FreeBSD that is similar to the coredump piping that Linux offers, but with the flexibility to be scripted with Lua or made conditional on various properties of the coredump itself. --- sysutils/Makefile | 1 + sysutils/ucored/Makefile | 32 ++++++++++++++++++++++++++++++++ sysutils/ucored/distinfo | 3 +++ sysutils/ucored/pkg-descr | 7 +++++++ sysutils/ucored/pkg-plist | 11 +++++++++++ 5 files changed, 54 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index dd9b4a1c148d..4ab4bf090b27 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1502,6 +1502,7 @@ SUBDIR += u-boot-tools SUBDIR += u-boot-wandboard SUBDIR += ua + SUBDIR += ucored SUBDIR += ucspi-ipc SUBDIR += ucspi-proxy SUBDIR += ucspi-ssl diff --git a/sysutils/ucored/Makefile b/sysutils/ucored/Makefile new file mode 100644 index 000000000000..ae0b5b962bbe --- /dev/null +++ b/sysutils/ucored/Makefile @@ -0,0 +1,32 @@ +PORTNAME= ucored +PORTVERSION= v0.1 +CATEGORIES= sysutils +MASTER_SITES= https://git.kevans.dev/kevans/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/ + +MAINTAINER= kevans@FreeBSD.org +COMMENT= Utility to apply more extensive policies to user cores +WWW= https://git.kevans.dev/kevans/ucored + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= lua:54,build uidfix + +WRKSRC= ${WRKDIR}/${PORTNAME} + +.include + +.if ${OSVERSION} >= 1500055 +USES+= kmod +PLIST_SUB+= KMOD= +.else +PLIST_SUB+= KMOD="@comment " +.endif + +post-install: + ${MV} ${STAGEDIR}${PREFIX}/etc/ucored.conf \ + ${STAGEDIR}${PREFIX}/etc/ucored.conf.sample + ${MV} ${STAGEDIR}${PREFIX}/etc/devd/ucored.conf \ + ${STAGEDIR}${PREFIX}/etc/devd/ucored.conf.sample + +.include diff --git a/sysutils/ucored/distinfo b/sysutils/ucored/distinfo new file mode 100644 index 000000000000..e521365dcc95 --- /dev/null +++ b/sysutils/ucored/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1758857884 +SHA256 (ucored-v0.1.tar.gz) = a127ea61788b0fc01d3757cc1da0b4c4306ef23b4e66aeefa5a47ba1a9e4c10b +SIZE (ucored-v0.1.tar.gz) = 40847 diff --git a/sysutils/ucored/pkg-descr b/sysutils/ucored/pkg-descr new file mode 100644 index 000000000000..74dbea904764 --- /dev/null +++ b/sysutils/ucored/pkg-descr @@ -0,0 +1,7 @@ +u(ser)cored applies policy to user cores being produced on the system + +This utility allows configurable actions to be enacted on user coredumps +produced on the system. ucored(8) brings functionality to FreeBSD that is +similar to the coredump piping that Linux offers, but with the flexibility to +be scripted with Lua or made conditional on various properties of the coredump +itself. diff --git a/sysutils/ucored/pkg-plist b/sysutils/ucored/pkg-plist new file mode 100644 index 000000000000..a3c8b461aa17 --- /dev/null +++ b/sysutils/ucored/pkg-plist @@ -0,0 +1,11 @@ +@sample etc/devd/ucored.conf.sample +etc/rc.d/ucored +etc/syslog.d/ucored.conf +@sample etc/ucored.conf.sample +libexec/ucore-shuttle +sbin/ucored +%%DATADIR%%/config.lua +%%DATADIR%%/ucored.lua +share/man/man8/ucored.8.gz +%%KMOD%%share/man/man4/ucoredev.4.gz +%%KMOD%%/%%KMODDIR%%/ucoredev.ko