1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh
17 PKG_MD5SUM:=0e7ec62eeca5d1b197f3ef2d0f0d417f
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/autossh
27 DEPENDS:=+openssh-client
29 DESCRIPTION:=Autossh client
30 URL:=http://www.harding.motd.ca/autossh
34 $(call Build/Compile/Default, -f Makefile.linux \
35 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
40 define Package/autossh/install
41 install -d -m0755 $(1)/usr/sbin
42 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
45 $(eval $(call BuildPackage,autossh))