aboutsummaryrefslogtreecommitdiffstats
path: root/community/autossh/APKBUILD
blob: f382e6c9d93a354572114598afc501e577343d79 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=autossh
pkgver=1.4e
pkgrel=1
pkgdesc="Automatically restart SSH sessions and tunnels"
url="http://www.harding.motd.ca/autossh/"
arch="all"
license="BSD"
depends="openssh-client"
makedepends=""
subpackages="$pkgname-doc"
source="http://www.harding.motd.ca/autossh/autossh-$pkgver.tgz
	README.alpine
	"
builddir="$srcdir/autossh-$pkgver"

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
	install -Dm644 "$srcdir"/README.alpine \
                "$pkgdir"/usr/share/doc/$pkgname/README.alpine || return 1
}

md5sums="f86684b96e99d22b2e9d35dc63b0aa29  autossh-1.4e.tgz
a3ed8e9fdefac64d1b7f17a52587c0e1  README.alpine"
sha256sums="9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156  autossh-1.4e.tgz
f01d7e7ca2f3751875a756f3f2ba5a28cb2703fea21026d7c29a9bfc4a969b79  README.alpine"
sha512sums="2f71403ee005103c6a3e2e669f6b26153161c95c8dacd3e73d61673461b3512348636877760d911341771e744c0a682b107df4ac48621661ff36a9fc0191f2fb  autossh-1.4e.tgz
40cf39a391ad7320a07fbe8d4edd17498c92794f330393374406a0dbf4a0415d51e1fe11e6d2d07f399025bf8620b8937abd152c00be0297b30c6c3a876675cb  README.alpine"