- Create debian/ directory structure with all required files: - control: Package metadata and dependencies - compat: Debhelper compatibility level - changelog: Version history - rules: Build instructions - install: File installation mappings - postinst: Post-installation setup (user, venv, setcap) - prerm: Pre-removal script (stop service) - postrm: Post-removal script (cleanup, preserve config) - sensorpajen.service: System-wide systemd unit - Update config.py to support dual-mode operation: - Auto-detects system installation (/opt/sensorpajen) - Uses /etc/sensorpajen for config in system mode - Falls back to PROJECT_ROOT/config for development - Update scripts/approve-sensors.sh for system paths: - Detects system vs development installation - Uses correct venv and config paths - Create scripts/verify-deb.sh: Automated build and verification - Create debian/README.md: Comprehensive packaging documentation Package features: - System-wide installation to /opt/sensorpajen/ - Configuration in /etc/sensorpajen/ (preserved on upgrade/remove) - Dedicated sensorpajen system user - Automatic venv creation with dependencies - Bluetooth capabilities set automatically - Service auto-enabled but waits for config before starting - Dual-mode code supports both system and development installations
23 lines
784 B
Plaintext
23 lines
784 B
Plaintext
Source: sensorpajen
|
|
Section: misc
|
|
Priority: optional
|
|
Maintainer: Fredrik <fredrik@wahlberg.se>
|
|
Build-Depends: debhelper-compat (= 13)
|
|
Standards-Version: 4.5.0
|
|
Homepage: https://github.com/yourusername/sensorpajen
|
|
|
|
Package: sensorpajen
|
|
Architecture: all
|
|
Depends: python3 (>= 3.9), python3-venv, python3-pip, bluetooth, bluez, libcap2-bin, ${misc:Depends}
|
|
Recommends: mosquitto-clients
|
|
Description: Raspberry Pi Bluetooth temperature sensor monitor
|
|
Monitors Xiaomi Mijia LYWSD03MMC temperature sensors via Bluetooth Low Energy
|
|
and publishes readings to MQTT broker. Supports ATC firmware with automatic
|
|
sensor discovery and approval workflow.
|
|
.
|
|
Features:
|
|
- Automatic sensor discovery
|
|
- MQTT publishing
|
|
- Systemd service integration
|
|
- User approval workflow for new sensors
|