blob: 99cecc10113b7c78646924f802c749be20eaaf83 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=autossh
pkgver=1.4c
pkgrel=0
pkgdesc="Automatically restart SSH sessions and tunnels"
url="http://www.harding.motd.ca/autossh/"
arch="all"
license="BSD"
depends="openssh-client"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.harding.motd.ca/autossh/autossh-$pkgver.tgz"
_builddir="$srcdir"/autossh-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
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
}
md5sums="26520eea934f296be0783dabe7fcfd28 autossh-1.4c.tgz"
sha256sums="6fcaba6a409a46bdf832086736bb8f09d245ebce11027f41d39588a95dc7fd1d autossh-1.4c.tgz"
sha512sums="0bb7becf638959161791cfe93e80edea33b2223906b1aa43bc97e30fb310851f78e9dff1ea72c533958216862af2e32b5e42dfe447469fb74dc8ef9907dea1a3 autossh-1.4c.tgz"
|