agtop 2.4.7

Terminal UI for monitoring AI coding agents (Claude Code, Codex, Aider, Cursor, Gemini, Goose, ...) — like top, but for agents.
#!/usr/bin/make -f
# debian/rules for agtop — builds the Rust binary, offline, against
# the vendored crates that packages/ppa/build.sh stages into the
# orig.tar.gz before debuild runs.
#
# Launchpad PPA builders have NO network during the build phase, so
# we cannot rely on dh-cargo's default behaviour of resolving deps
# against crates.io or against Debian's `librust-*-dev` archive.
# Instead the upstream tarball ships:
#
#   vendor/                 cargo-vendor output, full dep tree
#   .cargo/config.toml      redirects crate fetches to vendor/
#
# `--frozen --offline` then make cargo refuse to touch the network.

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export RUSTFLAGS = -C link-arg=-Wl,-z,relro,-z,now
export CARGO_NET_OFFLINE = true

%:
	dh $@

override_dh_auto_build:
	cargo build --release --frozen --offline --locked

override_dh_auto_test:
	cargo test --release --frozen --offline --locked

override_dh_auto_install:
	install -Dm755 target/release/agtop \
		debian/agtop/usr/bin/agtop
	install -Dm644 README.md \
		debian/agtop/usr/share/doc/agtop/README.md

override_dh_auto_clean:
	rm -rf target Cargo.lock.bak
	dh_auto_clean