aboutsummaryrefslogtreecommitdiffstats
path: root/community/autossh/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/autossh/APKBUILD')
-rw-r--r--community/autossh/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/community/autossh/APKBUILD b/community/autossh/APKBUILD
new file mode 100644
index 0000000000..ef27bd3518
--- /dev/null
+++ b/community/autossh/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=autossh
+pkgver=1.4e
+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"
+subpackages="$pkgname-doc"
+source="http://www.harding.motd.ca/autossh/autossh-$pkgver.tgz
+ README.alpine
+ "
+
+_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
+ install -Dm644 "$srcdir"/README.alpine \
+ "$pkgdir"/usr/share/doc/$pkgname/README.alpine || return 1
+}
+
+md5sums="f86684b96e99d22b2e9d35dc63b0aa29 autossh-1.4e.tgz
+fb31542bb76c90a8286fdf8eca402d1e README.alpine"
+sha256sums="9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156 autossh-1.4e.tgz
+7e1a64e013743e94aa9477968d1a9dc9ca71f11b45a0530088d0c03b19f474cb README.alpine"
+sha512sums="2f71403ee005103c6a3e2e669f6b26153161c95c8dacd3e73d61673461b3512348636877760d911341771e744c0a682b107df4ac48621661ff36a9fc0191f2fb autossh-1.4e.tgz
+25ec2d17c5b93d8c3f5b41f1bb2671432e8d29081621fe58ff8de4c20171b7447459272a27264440a947ef5867ed15bbaaea8ea7ec02783956055e0ee8e31128 README.alpine"