2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
17 PKG_MD5SUM:=8f9aa006f6f69e912d3c2f504622d6f7
19 include $(INCLUDE_DIR)/package.mk
21 define Package/autossh
25 URL:=http://www.harding.motd.ca/autossh/
30 $(call Build/Compile/Default, -f Makefile \
31 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
36 define Package/autossh/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
41 $(INSTALL_DIR) $(1)/etc/config
42 $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
45 $(eval $(call BuildPackage,autossh))