bssh 0.6.0

Parallel SSH command execution tool for cluster management
Documentation
#!/usr/bin/make -f

# Enable all hardening options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Ensure we have HOME set for cargo
export HOME = /tmp/build-home
export CARGO_HOME = $(HOME)/.cargo
export PATH := $(CARGO_HOME)/bin:$(PATH)

%:
	dh $@

override_dh_auto_configure:
	# Create temporary home directory
	mkdir -p $(HOME)
	# Install Rust toolchain
	curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
	# Verify installation
	$(CARGO_HOME)/bin/rustc --version
	$(CARGO_HOME)/bin/cargo --version

override_dh_auto_build:
	# Build the project
	$(CARGO_HOME)/bin/cargo build --release --locked

override_dh_auto_install:
	# Install the compiled binary
	install -D -m 0755 target/release/bssh debian/bssh/usr/bin/bssh

override_dh_auto_test:
	# Skip tests to save build time on Launchpad
	@echo "Skipping tests for PPA build"

override_dh_auto_clean:
	rm -rf target/ $(HOME)
	dh_auto_clean

override_dh_builddeb:
	dh_builddeb --destdir=../