pam-ssh-agent 0.9.6

A PAM module that authenticates using the ssh-agent.
Documentation
#!/usr/bin/make -f

RUST_VERSION=1.85

export CARGO_VENDOR_DIR=vendor
export PATH=/usr/lib/rust-$(RUST_VERSION)/bin:/usr/bin
export CARGO_HOME=debian/cargo_home

%:
	dh $@ --buildsystem cargo

# the cargo buildsystem do_auto_test hard codes running /usr/bin/cargo which is too old
override_dh_auto_test:
	cargo test --verbose --verbose

override_dh_auto_clean:
	cargo clean


# this package is a bit special since it builds a native shared library, something
# that the dh_cargo build tooling can not yet handle
override_dh_auto_install:
	cargo build --verbose --verbose --release
	mv target/release/libpam_ssh_agent.so target/release/pam_ssh_agent.so