ports/sysutils/ucored/Makefile
Kyle Evans 28b8077518 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.
2025-09-25 22:46:31 -05:00

33 lines
775 B
Makefile

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 <bsd.port.options.mk>
.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 <bsd.port.mk>