aboutsummaryrefslogtreecommitdiffstats
path: root/community/autossh/APKBUILD
blob: 7d02f10ed306e67994d769775b0f0db0ce1d3e4d (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=autossh
pkgver=1.4g
pkgrel=1
pkgdesc="Automatically restart SSH sessions and tunnels"
url="https://www.harding.motd.ca/autossh/"
arch="all"
license="MIT"
depends="openssh-client"
options="!check" # no unit tests available
subpackages="$pkgname-doc"
source="http://www.harding.motd.ca/autossh/autossh-$pkgver.tgz
	README.alpine
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	install -D -m755 autossh \
		"$pkgdir"/usr/bin/autossh
	install -D -m644 CHANGES \
		"$pkgdir"/usr/share/doc/autossh/CHANGES
	install -D -m644 README \
		"$pkgdir"/usr/share/doc/autossh/README
	install -D -m644 autossh.host \
		"$pkgdir"/usr/share/autossh/examples/autossh.host
	install -D -m644 rscreen \
		"$pkgdir"/usr/share/autossh/examples/rscreen
	install -D -m644 autossh.1 \
		"$pkgdir"/usr/share/man/man1/autossh.1
	install -Dm644 "$srcdir"/README.alpine \
		"$pkgdir"/usr/share/doc/$pkgname/README.alpine
}

sha512sums="499b560d978736f4e764d5d828282fdaba1cbf94811ae6be0be5434d9c1cdc6ca5513d728b6372aa243843cb1b91e61cfc5fdeb77ddb0b6a7ce027218ba67466  autossh-1.4g.tgz
40cf39a391ad7320a07fbe8d4edd17498c92794f330393374406a0dbf4a0415d51e1fe11e6d2d07f399025bf8620b8937abd152c00be0297b30c6c3a876675cb  README.alpine"