mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
One telnet port serves both kinds of terminal: a client that says it is a 3270 (IBM-327x, IBM-DYNAMIC) is handed to go3270 and gets full 3270 screens with PF keys; any other gets a text BBS with ANSI color where the terminal has it. Modem callers come through the D-Modem suite: app_dmodem's mode = tcp on a raw port, or modemmenu by rlogin, telnet, or a unix socket whose session header (MODEM_*/DMODEM_*) gives the call's details and, trusted, the user modemmenu logged in. Message areas, private mail, who's online, the user list, profiles and self-service sign-up, in SQLite. User text is cleaned of escape sequences and control characters before it is stored and shown; passwords are bcrypt; logins are delayed, limited and throttled per address or caller ID; every step has a size limit and a timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
23 lines
367 B
Makefile
23 lines
367 B
Makefile
PREFIX ?= /usr/local
|
|
GO ?= go
|
|
|
|
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
|
|
|
|
clean:
|
|
rm -f bbs
|
|
|
|
.PHONY: all bbs test install clean
|