mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 13:59:40 +00:00
The mail consolidation that #136 (Phase 1) landed and #153 (Phase 2,
in-flight) extends has correctly declared these three packages as
transitional at the apt/dpkg level: secubox-mail >= 2.2 carries
Breaks/Replaces against all three, each transitional declares
Section: oldlibs, override_dh_auto_install + override_dh_installsystemd
are both no-ops, and the postinst scripts do legitimate one-shot
cleanup of pre-2.2 leftover units (and /srv → /data migration for
mail-lxc per #319).
What remained was dead source-tree content: api/, nginx/, www/, menu.d/
directories and unused .service unit files that the rules deliberately
don't install but mechanical sweeps (license headers, /data path
migration in #320) kept dragging into changes against dead code.
Pruned:
- packages/secubox-mail-lxc/{api,nginx,www,debian/secubox-mail-lxc.service}
- packages/secubox-webmail/{api,nginx,www,menu.d,README.md,debian/secubox-webmail.service}
- packages/secubox-webmail-lxc/{api,nginx,www,debian/secubox-webmail-lxc.service}
Each package now contains only the debian/ directory with control,
changelog, rules, postinst, prerm — exactly what a transitional
package should ship.
The webmail README was actively misleading (still advertised
`apt install secubox-webmail` + `/api/v1/webmail/*` endpoints that
have moved). The apt Description field already carries the correct
transitional notice; the README added nothing but operator confusion.
Out of scope (left untouched):
- secubox-mail itself — actively modified by #153 (rspamd Phase 2)
- secubox-smtp-relay — distinct purpose (outbound relay)
- Removing the transitional packages themselves — too soon;
operators on 2.1/2.2 still need them as the apt-detectable handle
for autoremove. Keep at least one more release cycle.
Verified via scripts/audit-packages.py: all three packages now show
zero services / nginx_routes / api_modules / ships_files, i.e. empty
payload — the expected state for a transitional package.
Surfaced by the Phase 1 consolidation audit (Tier 1, commit
|
||
|---|---|---|
| .. | ||
| changelog | ||
| control | ||
| postinst | ||
| prerm | ||
| rules | ||
| secubox.yaml | ||