pkgsrc: the recipe for Makronix (misc/splinter), IMPORT
The recipe is copied into pkgsrc/ by Makronix's tools/ext-sync.sh and built from the archive tools/ext-dist.sh makes of this repository. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cdaf2680b
commit
b61172a4a5
5 files changed
+98
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
# IMPORT -- where splinter comes from (root AGENTS.md, "What belongs where": ext/)
|
||||||
|
|
||||||
|
upstream splinter, the project's own repository
|
||||||
|
https://git.kropa.tech/hiddenbox/splinter
|
||||||
|
version 0.1 (no release tag yet; see README.md)
|
||||||
|
archive git archive of the submodule's commit (tools/ext-dist.sh), no tarball upstream
|
||||||
|
licence BSD-3-Clause (README.md, "License")
|
||||||
|
pkgsrc recipe in pkgsrc/ of this tree; it becomes misc/splinter (tools/ext-sync.sh)
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
splinter is a C99/POSIX agent harness with a curses interface: the
|
||||||
|
conversation on three quarters of the screen, a sidebar with the agent,
|
||||||
|
provider, model and allowance in use, a status line with the context gauge,
|
||||||
|
and the prompt below it.
|
||||||
|
|
||||||
|
It speaks to providers over their HTTP APIs, runs the tools it is asked to
|
||||||
|
run (only those in its registry, and a mutating one only with consent), keeps
|
||||||
|
every turn as JSON Lines under ~/.splinter, and can put its engine on a
|
||||||
|
socket (splinter --serve) for another front end, or present an OpenAI-
|
||||||
|
compatible endpoint of its own (splinter --openai-listen).
|
||||||
|
|
||||||
|
The library (libsplinter.so) is the backend; splinter and splinterctl are the
|
||||||
|
front ends; the plugins under lib/splinter/plugins are the tools (a clock,
|
||||||
|
the MCP client, provider pools, process control and others).
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# $NetBSD$
|
||||||
|
#
|
||||||
|
# Makronix: splinter is the project's own C99/POSIX agent harness
|
||||||
|
# (ext/src/splinter, IMPORT). It is built from the archive tools/ext-dist.sh
|
||||||
|
# makes out of ext/src/splinter, so there is no MASTER_SITES.
|
||||||
|
|
||||||
|
DISTNAME= splinter-0.1
|
||||||
|
CATEGORIES= misc
|
||||||
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||||
|
|
||||||
|
MAINTAINER= lotherk@lother.io
|
||||||
|
COMMENT= C99/POSIX agent harness with a curses interface
|
||||||
|
LICENSE= modified-bsd
|
||||||
|
|
||||||
|
# The top Makefile is POSIX make; it runs the vendored NetBSD curses through
|
||||||
|
# $(MAKE) -f GNUmakefile, which is GNU make. The build host's GNU make is
|
||||||
|
# what USE_TOOLS brings; the target compiler comes from pkgsrc's wrappers.
|
||||||
|
USE_TOOLS+= gmake
|
||||||
|
MAKE_PROGRAM= ${GMAKE}
|
||||||
|
|
||||||
|
NO_CONFIGURE= yes
|
||||||
|
NO_BUILDLINK= yes
|
||||||
|
BUILD_TARGET= all
|
||||||
|
INSTALL_TARGET= install
|
||||||
|
|
||||||
|
MAKE_FLAGS+= PREFIX=${PREFIX}
|
||||||
|
MAKE_FLAGS+= DESTDIR=${DESTDIR}
|
||||||
|
|
||||||
|
# splinter's Makefile has its own CFLAGS default: the dialect, the include
|
||||||
|
# paths of the source tree and -fPIC. A CFLAGS on the command line replaces
|
||||||
|
# that default, so the package's flags are appended here. No -Werror: a
|
||||||
|
# warning in the distribution is not a reason to stop the build. One line
|
||||||
|
# and escaped spaces: a continuation ate the space before -fPIC (measured
|
||||||
|
# 2026-11-17: "make: PIC -Iinclude ... No such file or directory").
|
||||||
|
SPL_CFLAGS= -std=c99\ -D_POSIX_C_SOURCE=200809L\ -D_XOPEN_SOURCE=700\ -D_NETBSD_SOURCE\ -fPIC\ -Iinclude\ -Isrc/backend\ -Isrc/frontend\ -Ivendor/libmcp\ -Ivendor/netbsd-curses/libcurses
|
||||||
|
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}\ ${SPL_CFLAGS}
|
||||||
|
|
||||||
|
# libsplinter.so is what the binaries and the plugins link against
|
||||||
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib
|
||||||
|
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
|
||||||
|
MAKE_FLAGS+= LIBS=-lpthread
|
||||||
|
|
||||||
|
# NetBSD's own curses, not the vendored copy: the base system has libcurses
|
||||||
|
# and libterminfo, and linking them keeps the package small and the build
|
||||||
|
# free of tools that must run while it builds (the vendored tree's nbperf is
|
||||||
|
# a target binary in a cross build). The project's Linux build keeps the
|
||||||
|
# vendored default (Konrad, 2026-11-17: "nur auf linux eigenes curses").
|
||||||
|
MAKE_FLAGS+= CURSES_LIB=-lcurses\ -lterminfo
|
||||||
|
MAKE_FLAGS+= CURSES_DEP=
|
||||||
|
|
||||||
|
.include "../../mk/pthread.buildlink3.mk"
|
||||||
|
.include "../../mk/bsd.pkg.mk"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
bin/splinter
|
||||||
|
bin/splinterctl
|
||||||
|
lib/libsplinter.so
|
||||||
|
lib/splinter/plugins/a2a.so
|
||||||
|
lib/splinter/plugins/cli.so
|
||||||
|
lib/splinter/plugins/clock.so
|
||||||
|
lib/splinter/plugins/cps.so
|
||||||
|
lib/splinter/plugins/focus.so
|
||||||
|
lib/splinter/plugins/junction.so
|
||||||
|
lib/splinter/plugins/kids.so
|
||||||
|
lib/splinter/plugins/lcm.so
|
||||||
|
lib/splinter/plugins/mcp.so
|
||||||
|
lib/splinter/plugins/processes.so
|
||||||
|
lib/splinter/plugins/provider.so
|
||||||
|
lib/splinter/plugins/reminder.so
|
||||||
|
lib/splinter/plugins/ring.so
|
||||||
|
lib/splinter/plugins/scheduler.so
|
||||||
|
lib/splinter/plugins/self.so
|
||||||
|
lib/splinter/plugins/status.so
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
$NetBSD$
|
||||||
|
|
||||||
|
BLAKE2s (splinter-0.1.tar.gz) = 246e298e45a317422529b4bc7c5cd418cb27621c766a4e2a86160c39f84e7875
|
||||||
|
SHA512 (splinter-0.1.tar.gz) = 3f7c3e7a3bc35a8acb8716022a4520bc54879401e94a78ab7d4605c110a1fdf0e70dc733b2342242062b54f3864d2141203e83a08ffb3f798f52b103c6f9d871
|
||||||
|
Size (splinter-0.1.tar.gz) = 1275130 bytes
|
||||||
Reference in new issue
Block a user