summaryrefslogtreecommitdiff
blob: 35f5e641b2ec9cf3353af4fa69d9f32bffbb3da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/autossh/autossh-1.2d.ebuild,v 1.2 2003/04/14 15:58:36 weeve Exp $

S=${WORKDIR}/${P} 
DESCRIPTION="Automatically restart SSH sessions and tunnels" 
HOMEPAGE="http://www.harding.motd.ca/autossh/" 
LICENSE="BSD" 
KEYWORDS="~x86 ~sparc" 
SRC_URI="http://www.harding.motd.ca/autossh/${P}.tgz" 
SLOT="0" 
 
DEPEND="virtual/glibc 
	sys-apps/sed" 
RDEPEND="virtual/glibc 
	net-misc/openssh" 

src_unpack() { 
	unpack ${A} 
	cd ${S} 

	patch -p0 -l < ${FILESDIR}/${P}-reuse.patch 
	mv Makefile.linux Makefile.linux.orig 
	sed "s/CFLAGS=/CFLAGS=${CFLAGS}/g" Makefile.linux.orig >Makefile.linux 
} 
 
src_compile() { 
	emake -f Makefile.linux || die "make failed" 
} 
 
src_install() { 
	dobin autossh 
	dodoc CHANGES README autossh.host rscreen 
	doman autossh.1 
}