pam-ssh-agent 0.9.7

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

RUST_VERSION=1.91

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

# recent versions of cargo validates the checksum files in the vendor directory,
# and a lot of packages contain .orig files. This override instructs dh_clean to
# not remove those as it will make cargo build fail as it is missing some referenced
# files
override_dh_clean:
	dh_clean -O--buildsystem=cargo --exclude=orig

# 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