summaryrefslogtreecommitdiffstats
path: root/packaging/deb/meshbay-common
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/deb/meshbay-common')
-rw-r--r--packaging/deb/meshbay-common/DEBIAN/control14
-rw-r--r--packaging/deb/meshbay-common/DEBIAN/postinst15
2 files changed, 29 insertions, 0 deletions
diff --git a/packaging/deb/meshbay-common/DEBIAN/control b/packaging/deb/meshbay-common/DEBIAN/control
new file mode 100644
index 0000000..4089f4b
--- /dev/null
+++ b/packaging/deb/meshbay-common/DEBIAN/control
@@ -0,0 +1,14 @@
+Package: meshbay-common
+Version: __VERSION__
+Section: python
+Priority: optional
+Architecture: __ARCH__
+Maintainer: MeshBay Team <team@meshbay.org>
+Homepage: https://meshbay.org
+Depends: python3 (>= 3.12)
+Description: MeshBay shared Python runtime and libraries
+ Provides the shared Python virtual environment, cryptographic primitives
+ (Ed25519, X25519, GEK wrap/unwrap, ChaCha20-Poly1305), protocol types (MNP,
+ MHP), and all pip dependencies used by meshbay-hub and meshbay-node.
+ .
+ Installs to /opt/meshbay-common/venv/.
diff --git a/packaging/deb/meshbay-common/DEBIAN/postinst b/packaging/deb/meshbay-common/DEBIAN/postinst
new file mode 100644
index 0000000..d675c0c
--- /dev/null
+++ b/packaging/deb/meshbay-common/DEBIAN/postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ configure)
+ # Recompile bytecode for the installed Python version.
+ # The venv was built on the build machine; .pyc files may reference
+ # a different path or Python micro-version.
+ if command -v py3compile >/dev/null 2>&1; then
+ py3compile /opt/meshbay-common/venv/lib/ 2>/dev/null || true
+ fi
+ ;;
+esac
+
+#DEBHELPER#