aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/autossh/APKBUILD27
-rw-r--r--community/autossh/README.alpine9
2 files changed, 13 insertions, 23 deletions
diff --git a/community/autossh/APKBUILD b/community/autossh/APKBUILD
index ef27bd3518..f382e6c9d9 100644
--- a/community/autossh/APKBUILD
+++ b/community/autossh/APKBUILD
@@ -2,32 +2,21 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=autossh
pkgver=1.4e
-pkgrel=0
+pkgrel=1
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"
+makedepends=""
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
-}
+builddir="$srcdir/autossh-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -41,7 +30,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
install -D -m755 autossh \
"$pkgdir"/usr/bin/autossh || return 1
install -D -m644 CHANGES \
@@ -59,8 +48,8 @@ package() {
}
md5sums="f86684b96e99d22b2e9d35dc63b0aa29 autossh-1.4e.tgz
-fb31542bb76c90a8286fdf8eca402d1e README.alpine"
+a3ed8e9fdefac64d1b7f17a52587c0e1 README.alpine"
sha256sums="9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156 autossh-1.4e.tgz
-7e1a64e013743e94aa9477968d1a9dc9ca71f11b45a0530088d0c03b19f474cb README.alpine"
+f01d7e7ca2f3751875a756f3f2ba5a28cb2703fea21026d7c29a9bfc4a969b79 README.alpine"
sha512sums="2f71403ee005103c6a3e2e669f6b26153161c95c8dacd3e73d61673461b3512348636877760d911341771e744c0a682b107df4ac48621661ff36a9fc0191f2fb autossh-1.4e.tgz
-25ec2d17c5b93d8c3f5b41f1bb2671432e8d29081621fe58ff8de4c20171b7447459272a27264440a947ef5867ed15bbaaea8ea7ec02783956055e0ee8e31128 README.alpine"
+40cf39a391ad7320a07fbe8d4edd17498c92794f330393374406a0dbf4a0415d51e1fe11e6d2d07f399025bf8620b8937abd152c00be0297b30c6c3a876675cb README.alpine"
diff --git a/community/autossh/README.alpine b/community/autossh/README.alpine
index d7013c3ad8..f67cbd9174 100644
--- a/community/autossh/README.alpine
+++ b/community/autossh/README.alpine
@@ -16,10 +16,11 @@ echo 'y' |ssh-keygen -t ed25519 -N ''
-------------------------------------------------------------------
#!/bin/sh
+sleep 2
exec 2>&1
su -s /bin/sh autossh -c \
-'autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -L 1234:localhost:1234 -N -l autossh remote.ip.addr'
--------------------------------------------------------------------------------------------------------------------------
+'export AUTOSSH_GATETIME=0 && nohup autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -L 1234:localhost:1234 -N -l autossh remote.ip.addr'
+------------------------------------------------------------------------------------------------------------------------------------------------------------
ln -s /etc/sv/autossh /etc/service/autossh
-------------------------------------------------------------------------------
** if running autossh in a script without using runit add -f to ssh options **|
@@ -30,5 +31,5 @@ ln -s /etc/sv/autossh /etc/service/autossh
psql -h 127.0.0.1 -p 1234 -U username -d database
-------------------------------------------------------------------------------
openssh-server: works out of the box | ed25519 keys possible
-dropbear: echo "/bin/false" >> /etc/shells | ecdsa keys possible
-tinyssh: port forwarding not yet implemented | ed25519 keys possible
+dropbear: echo "/bin/false" >> /etc/shells | ecdsa keys possible
+tinyssh: port forwarding not yet implemented | ed25519 keys possible