-
-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy pathrules
More file actions
executable file
·36 lines (31 loc) · 1.25 KB
/
rules
File metadata and controls
executable file
·36 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f
# Enable hardening build flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export DH_VIRTUALENV_INSTALL_ROOT=/opt/tinypilot
# Prevent debhelper from generating an extra package with debug symbols.
export DEB_BUILD_OPTIONS=noddebs
%:
dh $@ --with python-virtualenv
override_dh_installsystemd:
dh_installsystemd --name=load-tc358743-edid --no-start
dh_installsystemd --name=tinypilot
dh_installsystemd --name=update-tls-cert-common-name
dh_installsystemd --name=tinypilot-updater --no-start --no-enable
dh_installsystemd --name=usb-gadget --no-start
dh_installsystemd --name=ustreamer
dh_installsystemd --name=janus
override_dh_virtualenv:
# Skip install because TinyPilot doesn't need to run setup.py to install.
# Use the venv directory because that's where we've historically kept it.
dh_virtualenv \
--requirements=requirements.txt \
--install-suffix=venv \
--skip-install \
--upgrade-pip
# dh_virtualenv doesn't remove __pycache__ directories, so we clean them up
# manually.
find . -type d -name __pycache__ -prune -exec rm -rf {} \;
# Lintian will complain if the .gitignore stays in venv.
rm ./debian/tinypilot$(DH_VIRTUALENV_INSTALL_ROOT)/venv/.gitignore