summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2006-03-29 12:45:48 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2006-03-29 12:45:48 +0000
commit1a7d71fd627969c645fc62bdd67669dc62f83c3a (patch)
treeeba92224fae891cab248d27371e97b936aad2d86
parentfed3865f2db2f88da392bff9b9dd780d4bfa13d2 (diff)
downloadmtk-20170518-1a7d71fd627969c645fc62bdd67669dc62f83c3a.zip
mtk-20170518-1a7d71fd627969c645fc62bdd67669dc62f83c3a.tar.gz
mtk-20170518-1a7d71fd627969c645fc62bdd67669dc62f83c3a.tar.bz2
add autossh from Robert Berkowitz
SVN-Revision: 3547
-rw-r--r--openwrt/package/Config.in1
-rw-r--r--openwrt/package/Makefile1
-rw-r--r--openwrt/package/autossh/Config.in9
-rw-r--r--openwrt/package/autossh/Makefile39
-rw-r--r--openwrt/package/autossh/ipkg/autossh.control5
5 files changed, 55 insertions, 0 deletions
diff --git a/openwrt/package/Config.in b/openwrt/package/Config.in
index cf2267e..41dd75c 100644
--- a/openwrt/package/Config.in
+++ b/openwrt/package/Config.in
@@ -15,6 +15,7 @@ source "package/nvram/Config.in"
endmenu
menu "Applications"
+source "package/autossh/Config.in"
source "package/bitchx/Config.in"
source "package/collectd/Config.in"
source "package/cbtt/Config.in"
diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile
index bf4a176..4719c3e 100644
--- a/openwrt/package/Makefile
+++ b/openwrt/package/Makefile
@@ -11,6 +11,7 @@ package-$(BR2_PACKAGE_ARPTABLES) += arptables
package-$(BR2_PACKAGE_ARPWATCH) += arpwatch
package-$(BR2_PACKAGE_ASTERISK) += asterisk
package-$(BR2_COMPILE_ATFTP) += atftp
+package-$(BR2_PACKAGE_AUTOSSH) += autossh
package-$(BR2_COMPILE_AVAHI) += avahi
package-$(BR2_COMPILE_BC) += bc
package-$(BR2_COMPILE_BIND) += bind
diff --git a/openwrt/package/autossh/Config.in b/openwrt/package/autossh/Config.in
new file mode 100644
index 0000000..492547f
--- /dev/null
+++ b/openwrt/package/autossh/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AUTOSSH
+ prompt "autossh........................... Auto handle ssh tunnels"
+ tristate
+ default m if CONFIG_DEVEL
+ help
+ autossh is a program to start a copy of ssh and monitor it,
+ restarting it as necessary should it die or stop passing traffic.
+
+ http://www.harding.motd.ca/autossh/
diff --git a/openwrt/package/autossh/Makefile b/openwrt/package/autossh/Makefile
new file mode 100644
index 0000000..2d6e539
--- /dev/null
+++ b/openwrt/package/autossh/Makefile
@@ -0,0 +1,39 @@
+# $Id$
+#
+# Adjust SSH below to suit.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=autossh
+PKG_VERSION:=1.3
+PKG_RELEASE:=1
+PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f
+PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+VER=1.3
+SSH=/usr/bin/ssh
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,AUTOSSH,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ cp $(PKG_BUILD_DIR)/Makefile.linux $(PKG_BUILD_DIR)/Makefile
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \
+ BINDIR=/usr/bin MANDIR=/usr/man
+ touch $@
+
+$(IPKG_AUTOSSH):
+ mkdir -p $(IDIR_AUTOSSH)/usr/bin
+ cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_AUTOSSH)/usr/bin/
+ $(RSTRIP) $(IDIR_AUTOSSH)
+ $(IPKG_BUILD) $(IDIR_AUTOSSH) $(PACKAGE_DIR)
diff --git a/openwrt/package/autossh/ipkg/autossh.control b/openwrt/package/autossh/ipkg/autossh.control
new file mode 100644
index 0000000..2916e38
--- /dev/null
+++ b/openwrt/package/autossh/ipkg/autossh.control
@@ -0,0 +1,5 @@
+Package: autossh
+Priority: optional
+Section: net
+Depends: openssh-client
+Description: Autossh client