blob: 4e1769724f4baabce33515f97669ca10fd91a4ec (
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
|
# Contributor: Ian Taylor <ian at lorf dot orgs>
pkgname=autossh
pkgver=1.4b
pkgrel=2
pkgdesc="Automatically restart SSH sessions and tunnels"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.harding.motd.ca/autossh/"
license=('custom')
depends=('openssh')
source=("http://www.harding.motd.ca/autossh/$pkgname-$pkgver.tgz"
"LICENSE")
md5sums=('8f9aa006f6f69e912d3c2f504622d6f7'
'5d65ce1eff3f2c72546a8343b18d67bf')
build() {
cd $srcdir/$pkgname-$pkgver
msg "Configuring"
./configure --prefix=$pkgdir/usr --sysconfdir=/etc --localstatedir=/var || return 1
msg "Building"
make || return 1
msg "Creating package"
install -D -m755 autossh $pkgdir/usr/bin/autossh || return 1
install -D -m644 CHANGES $pkgdir/usr/share/doc/autossh/CHANGES || return 1
install -D -m644 README $pkgdir/usr/share/doc/autossh/README || return 1
install -D -m644 autossh.host $pkgdir/usr/share/autossh/examples/autossh.host || return 1
install -D -m644 rscreen $pkgdir/usr/share/autossh/examples/rscreen || return 1
install -D -m644 autossh.1 $pkgdir/usr/share/man/man1/autossh.1 || return 1
install -D -m644 ${startdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
}
|