Skip to content

Commit 6030f27

Browse files
Andrii Beregovenkoaberegovenko
authored andcommitted
Add Debian package files to enable local builds
On some custom systems it is not possible to instal mavproxy via pip (or similar mechanism). By having such files the user can easily build and install mavproxy into a system (or build container) just in two commands immediatelly after clone: dpkg-buildpackage -b -us -uc dpkg -i ../python3-mavproxy_*_amd64.deb If there are some unmet deps, just run apt-get -f install
1 parent 4877bfc commit 6030f27

8 files changed

Lines changed: 814 additions & 0 deletions

File tree

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mavproxy (1.8.74) UNRELEASED; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Andrii Beregovenko <jet@jet.kyiv.ua> Tue, 02 Sep 2025 11:52:14 +0200

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/control

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Source: mavproxy
2+
Section: python
3+
Priority: optional
4+
Maintainer: Andrii Beregovenko <jet@jet.kyiv.ua>
5+
Build-Depends: debhelper (>= 10),
6+
dh-python,
7+
libxml2-dev, libxslt1-dev, zlib1g-dev,
8+
python3-setuptools (>= 0.6.29),
9+
python3-numpy,
10+
python3-pytest,
11+
X-Python-Version: all
12+
Standards-Version: 4.5.1
13+
Homepage: https://github.com/ArduPilot/MAVProxy
14+
15+
Package: python3-mavproxy
16+
Architecture: any
17+
Multi-Arch: same
18+
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
19+
Provides: ${python3:Provides}
20+
Description: A MAVLink protocol proxy and ground station. MAVProxy
21+
is oriented towards command line operation, and is suitable for embedding in
22+
small autonomous vehicles or for using on ground control stations. It also
23+
features a number of graphical tools such as a slipmap for satellite mapping
24+
view of the vehicles location, and status console and several useful vehicle
25+
control modules. MAVProxy is extensible via a modules system - see the modules
26+
subdirectory for some example modules. MAVProxy was developed by CanberraUAV
27+
for use in the 2012 Outback Challenge, and includes a module for the
28+
CanberraUAV search and rescue system.
29+
.
30+
See https://ardupilot.org/mavproxy/index.html for more information on how
31+
to use MAVProxy.

debian/copyright

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

debian/patches/series

Whitespace-only changes.

debian/rules

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# Uncomment this to turn on verbose mode.
5+
#export DH_VERBOSE=1
6+
7+
PY3VERS := $(shell py3versions -vs)
8+
PY3VER := $(shell py3versions -vd)
9+
10+
include /usr/share/dpkg/pkg-info.mk
11+
12+
include /usr/share/python3/python.mk
13+
14+
# Some locales trigger reproducibility issues in html documentation
15+
export LC_ALL=C.UTF-8
16+
export LANG=C.UTF-8
17+
18+
prebuild: prebuild-stamp
19+
prebuild-stamp:
20+
touch $@
21+
22+
build-arch: build
23+
build-indep: build
24+
build: build3-stamp
25+
26+
build3-stamp: $(PY3VERS:%=build3-python%) doc-build3-python$(PY3VER)
27+
touch $@
28+
build3-python%: prebuild
29+
python$* setup.py build
30+
touch $@
31+
doc-build3-python$(PY3VER): build3-python$(PY3VER)
32+
touch $@
33+
34+
clean:
35+
dh_testdir
36+
dh_testroot
37+
rm -f build*-stamp build*-python* dbg-build*-python* prebuild-stamp
38+
rm -rf build dist __pycache__
39+
-find -name '*.py[co]' | xargs rm -f
40+
rm -rf [23].[0-9]
41+
dh_clean
42+
43+
install: build install-prereq $(PY3VERS:%=install3-python%)
44+
-find debian -name '*.py[co]' | xargs rm -f
45+
-find debian -name __pycache__ | xargs rm -rf
46+
rm -rf debian/python*-mavproxy/usr/lib/python
47+
48+
install-prereq:
49+
dh_testdir
50+
dh_testroot
51+
dh_prep
52+
53+
install3-python%:
54+
mkdir -p debian/python3-mavproxy/usr/bin
55+
mkdir -p debian/python3-mavproxy/$(call py_libdir, $*)
56+
python$* setup.py install \
57+
--root=$(CURDIR)/debian/python3-mavproxy --install-layout=deb
58+
59+
# Build architecture-independent files here.
60+
binary-indep: build install
61+
dh_testdir
62+
dh_testroot
63+
dh_installchangelogs -i
64+
dh_installdocs -i
65+
dh_installexamples -i samples/*
66+
dh_compress -i -X.xml -X.py \
67+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
68+
dh_fixperms -i
69+
dh_installdeb -i
70+
dh_shlibdeps -i
71+
dh_gencontrol -i
72+
dh_md5sums -i
73+
dh_builddeb -i
74+
75+
# Build architecture-dependent files here.
76+
binary-arch: build install
77+
dh_testdir
78+
dh_testroot
79+
# dh_installchangelogs -a CHANGES.txt
80+
# dh_installdocs -a CREDITS.txt README.rst TODO.txt
81+
dh_installdocs -a README.md
82+
# dh_installexamples -a examples/*
83+
dh_python3 -a
84+
dh_strip -ppython3-mavproxy
85+
dh_compress -a -X.xml -X.py \
86+
-X.html -X.css -X.asc -X.png -Xapi-objects.txt
87+
dh_fixperms -a
88+
dh_installdeb -a
89+
dh_shlibdeps -a
90+
dh_gencontrol -a
91+
dh_md5sums -a
92+
dh_builddeb -a
93+
94+
binary: binary-indep binary-arch
95+
.PHONY: build clean binary-indep binary-arch binary install

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/watch

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version=4
2+
opts="\
3+
compression=gzip, \
4+
dversionmangle=s/\+(?:git)?[0-9]*(?:\+g[0-9a-f]*)//, \
5+
downloadurlmangle=s#/tag/#/download/#;s#(v?@ANY_VERSION@)$#$1/@PACKAGE@-$2.tar.gz#, \
6+
filenamemangle=s#v?@ANY_VERSION@#@PACKAGE@-$1.tar.gz#" \
7+
https://github.com/ArduPilot/@PACKAGE@/tags .*/releases/tag/v?@ANY_VERSION@

0 commit comments

Comments
 (0)