# Template file for 'autossh'
pkgname=autossh
version=1.4g
revision=1
build_style=gnu-configure
hostmakedepends="openssh"
short_desc="Automatically restart SSH sessions and tunnels"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.harding.motd.ca/autossh/"
distfiles="https://www.harding.motd.ca/autossh/autossh-$version.tgz"
checksum=5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277

pre_configure() {
	export CPPFLAGS="$CPPFLAGS $LDFLAGS"
}

do_install() {
	vbin autossh
	vdoc CHANGES
	vdoc README
	vsconf autossh.host
	head -n 24 autossh.c > LICENSE
	vlicense LICENSE
	vman autossh.1
}
