meshtasticd debian source package (#5741)

This commit is contained in:
Austin 2025-01-04 14:39:37 -05:00 committed by GitHub
parent 9afadde2f4
commit 2c654454cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 67 additions and 0 deletions

1
bin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.yaml

6
debian/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
.debhelper
debhelper-build-stamp
meshtasticd
files
meshtasticd.substvars
meshtasticd.postrm.debhelper

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
meshtasticd (2.5.19) unstable; urgency=medium
* Initial packaging
-- Austin Lane <vidplace7@gmail.com> Thu, 02 Jan 2025 12:00:00 +0000

25
debian/control vendored Normal file
View File

@ -0,0 +1,25 @@
Source: meshtasticd
Section: misc
Priority: optional
Maintainer: Austin Lane <vidplace7@gmail.com>
Build-Depends: debhelper-compat (= 13),
python3-pip,
python3-venv,
git,
g++,
pkg-config,
libyaml-cpp-dev,
libgpiod-dev,
libbluetooth-dev,
libusb-1.0-0-dev,
libi2c-dev
Standards-Version: 4.6.2
Homepage: https://github.com/meshtastic/firmware
Rules-Requires-Root: no
Package: meshtasticd
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Meshtastic daemon for communicating with Meshtastic devices
Meshtastic is an off-grid text communication platform that uses inexpensive
LoRa radios.

3
debian/meshtasticd.dirs vendored Normal file
View File

@ -0,0 +1,3 @@
etc/meshtasticd
etc/meshtasticd/config.d
etc/meshtasticd/available.d

6
debian/meshtasticd.install vendored Normal file
View File

@ -0,0 +1,6 @@
.pio/build/native/meshtasticd usr/sbin
bin/config.yaml etc/meshtasticd
bin/config.d/* etc/meshtasticd/available.d
bin/meshtasticd.service lib/systemd/system

15
debian/rules vendored Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/make -f
# Use the "dh" sequencer
%:
dh $@
override_dh_auto_build:
# Terrible hack to use modern platformio to build the native version
python3 -m venv venv
venv/bin/pip install platformio
venv/bin/platformio run -e native
rm -rf venv
# Move the binary and default config to the correct name
mv .pio/build/native/program .pio/build/native/meshtasticd
cp bin/config-dist.yaml bin/config.yaml

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

5
debian/update_changelog.sh vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/bash
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
dch --newversion "$(python3 bin/buildinfo.py short)-1" \
--distribution unstable \
"GitHub Actions Automatic version bump"