summaryrefslogtreecommitdiffstats
path: root/packaging/deb
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-09 05:19:13 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-09 05:19:13 +0200
commitdeee67755991994742ef144400857dd5f6b8aafa (patch)
tree1daf5196d03046d7c33bc4ec00480ccf66289bc6 /packaging/deb
parent42556800d103ede20b4e97f2d91d20bbc0000c1e (diff)
downloadmeshbay-deee67755991994742ef144400857dd5f6b8aafa.tar.gz
chore: add RPM/DEB packaging artifacts — 5.10
3 packages: python3-meshbay-common (dep), meshbay-hub, meshbay-node. RPM: spec files with pre/post scriptlets (useradd, systemd macros). DEB: DEBIAN/control + postinst for hub, control for node + common. Systemd: hub.service (system, security hardening) + node.service (user template @%i, EnvironmentFile for MESHBAY_UNLOCK_KEY). packaging/README.md: build + install instructions. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'packaging/deb')
-rw-r--r--packaging/deb/meshbay-hub/DEBIAN/control19
-rw-r--r--packaging/deb/meshbay-hub/DEBIAN/postinst29
-rw-r--r--packaging/deb/meshbay-node/DEBIAN/control17
-rw-r--r--packaging/deb/python3-meshbay-common/DEBIAN/control18
4 files changed, 83 insertions, 0 deletions
diff --git a/packaging/deb/meshbay-hub/DEBIAN/control b/packaging/deb/meshbay-hub/DEBIAN/control
new file mode 100644
index 0000000..cd4a2de
--- /dev/null
+++ b/packaging/deb/meshbay-hub/DEBIAN/control
@@ -0,0 +1,19 @@
+Package: meshbay-hub
+Version: 0.1.0
+Section: net
+Priority: optional
+Architecture: all
+Maintainer: MeshBay Team <team@meshbay.org>
+Homepage: https://meshbay.org
+Depends: python3 (>= 3.12),
+ python3-meshbay-common (= 0.1.0),
+ postgresql,
+ python3-fastapi,
+ python3-uvicorn,
+ adduser
+Recommends: caddy
+Description: MeshBay Hub — identity authority and group registry server
+ MeshBay Hub provides user registration, JWT issuance, group management,
+ GEK bundle distribution, revocation, and moderation for MeshBay networks.
+ .
+ Runs as a systemd service behind Caddy for HTTPS (auto Let's Encrypt).
diff --git a/packaging/deb/meshbay-hub/DEBIAN/postinst b/packaging/deb/meshbay-hub/DEBIAN/postinst
new file mode 100644
index 0000000..48921f2
--- /dev/null
+++ b/packaging/deb/meshbay-hub/DEBIAN/postinst
@@ -0,0 +1,29 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ configure)
+ # Create service account
+ if ! getent group meshbay >/dev/null 2>&1; then
+ addgroup --system meshbay
+ fi
+ if ! getent passwd meshbay >/dev/null 2>&1; then
+ adduser --system --ingroup meshbay --home /var/lib/meshbay \
+ --no-create-home --disabled-password \
+ --gecos "MeshBay service account" meshbay
+ fi
+
+ # Create data directory
+ install -d -o meshbay -g meshbay -m 750 /var/lib/meshbay/hub
+ install -d -o meshbay -g meshbay -m 750 /var/log/meshbay
+
+ # Enable and start service
+ if [ -d /run/systemd/system ]; then
+ systemctl daemon-reload || true
+ systemctl enable meshbay-hub.service || true
+ systemctl start meshbay-hub.service || true
+ fi
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/packaging/deb/meshbay-node/DEBIAN/control b/packaging/deb/meshbay-node/DEBIAN/control
new file mode 100644
index 0000000..7a8e0fa
--- /dev/null
+++ b/packaging/deb/meshbay-node/DEBIAN/control
@@ -0,0 +1,17 @@
+Package: meshbay-node
+Version: 0.1.0
+Section: net
+Priority: optional
+Architecture: all
+Maintainer: MeshBay Team <team@meshbay.org>
+Homepage: https://meshbay.org
+Depends: python3 (>= 3.12),
+ python3-meshbay-common (= 0.1.0),
+ adduser
+Recommends: ffmpeg
+Description: MeshBay Node — local file host and streaming server
+ MeshBay Node indexes local directories and serves encrypted files
+ to authenticated group members over QUIC (MNP v2) or TCP+TLS (MNP v1).
+ .
+ Includes a local management web UI at http://localhost:18000.
+ Designed to run on a home server or NAS.
diff --git a/packaging/deb/python3-meshbay-common/DEBIAN/control b/packaging/deb/python3-meshbay-common/DEBIAN/control
new file mode 100644
index 0000000..ea35603
--- /dev/null
+++ b/packaging/deb/python3-meshbay-common/DEBIAN/control
@@ -0,0 +1,18 @@
+Package: python3-meshbay-common
+Version: 0.1.0
+Section: python
+Priority: optional
+Architecture: all
+Maintainer: MeshBay Team <team@meshbay.org>
+Homepage: https://meshbay.org
+Depends: python3 (>= 3.12),
+ python3-cryptography (>= 43.0),
+ python3-jwt,
+ python3-msgpack,
+ python3-zstandard
+Description: MeshBay shared cryptographic primitives and protocol types
+ Provides Ed25519/X25519 key operations, GEK wrap/unwrap (ECIES-like),
+ per-chunk HKDF key derivation, ChaCha20-Poly1305 encryption,
+ AES-256-GCM keystore encryption, and MNP protocol message types.
+ .
+ Required by both meshbay-hub and meshbay-node.