Add Debian packaging and arm64 cross build

cargo-deb metadata produces a .deb with the binary, the packaged user
unit variant, man page and example config; arm64 cross-builds as a
static musl binary via an isolated rustup and rust-lld (recipe in
README). Add MIT LICENSE for the package copyright.
This commit is contained in:
Bastian Mäuser committed 2026-11-05 16:34:47 +01:00
1 parent b4e51a58f6
commit b93c0134dd
9 files changed
+189 -1

No files matched your search

+22 -1
View File
@@ -5,7 +5,28 @@ edition = "2021"
rust-version = "1.85"
resolver = "3"
description = "BLE proximity screen locker: locks the desktop session when your phone leaves Bluetooth range"
license = "MIT"
license-file = "LICENSE"
[package.metadata.deb]
maintainer = "Bastian Mäuser <bma@netz.org>"
copyright = "2026, Bastian Mäuser"
section = "utils"
priority = "optional"
depends = "systemd, bluez (>= 5.50)"
extended-description = """\
BLE proximity screen locker: watches advertisement updates from a paired \
phone via BlueZ over D-Bus, escalates the radio duty cycle as sightings \
stale, and locks the desktop session via loginctl once the phone is \
confirmed unreachable by a connection probe.\
"""
assets = [
["target/release/btle-proximity", "usr/bin/", "755"],
["packaging/systemd/btle-proximity.service", "usr/lib/systemd/user/", "644"],
["packaging/man/btle-proximity.1", "usr/share/man/man1/", "644"],
["config.toml.example", "usr/share/doc/btle-proximity/examples/config.toml", "644"],
["README.md", "usr/share/doc/btle-proximity/README.md", "644"],
["LICENSE", "usr/share/doc/btle-proximity/LICENSE", "644"],
]
[dependencies]
anyhow = "1"