secubox-deb/packages/secubox-mmpm/debian/rules
CyberMind-FR f18cf1647f feat(magicmirror): fold secubox-mmpm into secubox-magicmirror (closes #381)
Tier 2 consolidation (Phase 1 audit, magicmirror cluster). The two
packages live on the same host 100% of the time — secubox-mmpm
Recommends secubox-magicmirror, no metapackage references either,
both scaffolded boilerplate with only mechanical sweep edits since
creation. Reduces 2 binary packages → 1 effective + 1 transitional
shell.

Architecture:

  - secubox-magicmirror 1.1: api/routers/mmpm.py is the transformed
    mmpm code as an APIRouter (drops duplicate /health and /status).
    api/main.py mounts it under /mmpm. Frontend moved to
    www/magicmirror/mmpm/ (URL: /magicmirror/mmpm/). Menu entry
    repointed from /mmpm/ to /magicmirror/mmpm/. nginx config
    unchanged — existing /api/v1/magicmirror/ and /magicmirror/
    blocks cover the new sub-routes via FastAPI + alias.
  - secubox-magicmirror declares Breaks/Replaces secubox-mmpm
    (<< 1.1) for clean upgrade.
  - secubox-mmpm 1.1.0: Section: oldlibs, Depends on
    secubox-magicmirror (>= 1.1), empty rules, postinst stops +
    disables + removes the legacy secubox-mmpm.service and
    /etc/nginx/secubox.d/mmpm.conf (mirrors the mail-lxc/webmail
    transitional pattern from #380).

Operator-facing changes:

  - The MMPM frontend URL moves from /mmpm/ to /magicmirror/mmpm/
  - The MMPM API base moves from /api/v1/mmpm/ to
    /api/v1/magicmirror/mmpm/ (frontend's `const API` updated)
  - apt full-upgrade installs secubox-magicmirror 1.1, removes the
    old standalone secubox-mmpm payload, leaves the metadata shell
    for `apt autoremove` to clean up

Verified: both .py files parse cleanly (ast.parse). No external
references to secubox-mmpm except a roadmap status entry in
secubox-roadmap that documents migration state (deferred — separate
update, doesn't affect packaging).

Not verified: end-to-end dpkg-buildpackage. Recommend rebuilding
both packages on a host with python3-fastapi available before
merging, and a quick apt full-upgrade rehearsal from <1.1 to 1.1
on a canary box (the transitional postinst is the load-bearing
piece for upgrade safety).

Maintainer also corrected from "SecuBox Team <team@secubox.local>"
to "Gerald KERMA <devel@cybermind.fr>" on both packages.
2026-05-27 07:54:45 +02:00

13 lines
278 B
Makefile
Executable File

#!/usr/bin/make -f
# Transitional package — ships no files. dh handles the metadata only.
%:
dh $@
override_dh_auto_install:
# intentionally empty — no payload in transitional package
:
override_dh_installsystemd:
# intentionally empty — service has been removed
: