aboutsummaryrefslogtreecommitdiffstats
path: root/community/autossh/APKBUILD
blob: 0ff521afaf9ed3bc79d186a55e51baa233650716 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=autossh
pkgver=1.4f
pkgrel=0
pkgdesc="Automatically restart SSH sessions and tunnels"
url="http://www.harding.motd.ca/autossh/"
arch="all"
license="BSD"
depends="openssh-client"
makedepends=""
options="!check" # no unit tests available
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
	make
}

package() {
	cd "$builddir"
	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="a66912a04d1b659802913ec63d7b951fa6265dedf4480f0ad2dfdfb852e1e3029355b9a132bf3fa5b4b67e5ac8dace83b96e837182d8b3f0c2c72ad9188b7b8f  autossh-1.4f.tgz
40cf39a391ad7320a07fbe8d4edd17498c92794f330393374406a0dbf4a0415d51e1fe11e6d2d07f399025bf8620b8937abd152c00be0297b30c6c3a876675cb  README.alpine"