mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
doors/dosemu2 builds dosemu2, fdpp and comcom64 from source on Ubuntu (no
PPA) and runs a door with the caller's line on COM1 behind dosemu2's
FOSSIL: rundoor bridges the container's stdio to the port with socat,
the door's directory on F: and the node's drop files on G:. It runs as
the BBS's user (not root, which dosemu2 refuses), with no network, and
goes when the door ends or the caller hangs up. {uid}/{gid} fill in the
BBS's own ids for docker run --user; make doors-image builds it.
testdoor/FOSDOOR.COM, a FOSSIL door in assembly, reads DOOR.SYS, writes
CP437 and ANSI and echoes keys; TestDosemuDoor plays it through the BBS
when the image is built, hangs up in it and checks the container is gone.
README, sample config and service notes (the docker group's risk).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
30 lines
708 B
Makefile
30 lines
708 B
Makefile
PREFIX ?= /usr/local
|
|
GO ?= go
|
|
# go3270 is replaced by the Neo-Desktop/go3270-sec fork (go.mod): fetch it
|
|
# from GitHub directly, not through the public proxy and checksum database
|
|
export GOPRIVATE ?= github.com/Neo-Desktop/*
|
|
|
|
all: bbs
|
|
|
|
bbs:
|
|
$(GO) build -o bbs ./cmd/bbs
|
|
|
|
test:
|
|
$(GO) vet ./...
|
|
$(GO) test -race ./...
|
|
|
|
install: bbs
|
|
install -D -m 0755 bbs $(DESTDIR)$(PREFIX)/bin/bbs
|
|
@if [ ! -e $(DESTDIR)/etc/bbs/bbs.conf ]; then \
|
|
install -D -m 0640 bbs.conf.sample $(DESTDIR)/etc/bbs/bbs.conf; \
|
|
fi
|
|
|
|
# the dosemu2 image DOS doors run in (Docker; it builds dosemu2 from source)
|
|
doors-image:
|
|
docker build -t bbs-dosemu2 doors/dosemu2
|
|
|
|
clean:
|
|
rm -f bbs
|
|
|
|
.PHONY: all bbs test install clean doors-image
|