mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 12:28:07 -08:00
All of modemmenu was one package main in the repository's root. It is
now one module with the program and the pieces it is made of apart:
cmd/modemmenu/ the program (the login, the menu, access, limits,
the selections, -serve, AutoPPP, drop files, the
auth socket's server)
internal/config/ modemmenu.conf's sections and keys, {name} templates
internal/term/ the caller's line, terminal detection, PETSCII
internal/auth/ the backends and password changes
internal/telnet/ the telnet client of mode = telnet items
authd/ the auth socket's protocol and a client, for a BBS
to import (bbs's internal/menuauth is a copy of it)
samples/ the .conf, .users, .pam and .service samples
make builds ./cmd/modemmenu and installs the samples from samples/; the
docs, confref and the site's reference follow. The tests are where
their code is, none lost. TestSampleHasEveryKey now reads the keys of
internal/ too (and the exported Get, Bool...: it would have found none).
.gitignore's "modemmenu" ignored cmd/modemmenu/ as well: it is
/modemmenu now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRbjf74j8oq9R3PXhA
1.5 KiB
1.5 KiB
Building
Go 1.22 or later:
make # or: go build ./cmd/modemmenu (-tags pam for PAM)
make PAM=0 # without PAM, when libpam's headers are there
make test
make install # /usr/local/bin/modemmenu, and the samples into
# /etc/asterisk (and /etc/pam.d) if there are none
make builds with PAM when libpam's headers are installed
(libpam0g-dev on Debian and Ubuntu, pam-devel on Fedora). Without
them modemmenu builds with the other backends, and auth = system is a
configuration error.
The source
One Go module, one program:
| Where | What |
|---|---|
cmd/modemmenu/ |
the program: the login, the menu, access rules and time limits, the selections, -serve, AutoPPP, drop files, the auth socket's server |
internal/config/ |
modemmenu.conf's sections and keys, and the {name} templates |
internal/term/ |
the caller's line: reads, writes and line editing, terminal detection, PETSCII |
internal/auth/ |
the backends (users file, LDAP, SQL, system by PAM) and password changes |
internal/telnet/ |
the telnet client of mode = telnet items |
authd/ |
the auth socket's protocol and a client, for other programs (a BBS) to import |
pppd/ |
pppd's modemmenu.so plugin, in C |
samples/ |
modemmenu.conf, the users file, PAM and systemd samples |
freepbx/ |
the FreePBX setup |
tools/confref/ |
makes docs/reference.md from samples/modemmenu.conf.sample |