# Template file for 'autossh'
pkgname=autossh
version=1.4e
revision=2
build_style=gnu-configure
short_desc="Automatically restart SSH sessions and tunnels"
maintainer="uriahheep <uriahheep@gmail.com>"
license="BSD"
hostmakedepends="openssh"
homepage="http://www.harding.motd.ca/autossh/"
distfiles="http://www.harding.motd.ca/autossh/autossh-$version.tgz"
checksum=9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156

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
}
