#!/usr/bin/make -f

# The payload is a PyInstaller-built self-contained binary (built outside
# this sandbox — see collector/README.md "Building the PyInstaller binary".
# OBS build workers have no network access, and PyInstaller itself isn't
# packaged for Debian/Ubuntu, so it can't be a Build-Depends; the binary
# ships as source content instead, and this just installs it). This avoids
# the whole "wrong Python dist-packages path for this host's interpreter"
# failure mode a pip/dh-python install had (issue #120) — no interpreter
# or site-packages dependency at runtime at all.

%:
	dh $@

override_dh_auto_build:
	# nothing to build — arch-collector is a prebuilt binary

override_dh_auto_install:
	install -Dm755 arch-collector debian/arch-collector/usr/bin/arch-collector
	install -Dm600 arch-collector.env.example \
		debian/arch-collector/etc/arch-collector.env

override_dh_auto_test:
	# nothing to test at package-build time
