2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
16 PKG_MD5SUM:=f86684b96e99d22b2e9d35dc63b0aa29
19 include $(INCLUDE_DIR)/package.mk
21 define Package/autossh
25 URL:=http://www.harding.motd.ca/autossh/
26 MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
31 $(call Build/Compile/Default, -f Makefile \
32 CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
37 define Package/autossh/install
38 $(INSTALL_DIR) $(1)/usr/sbin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
44 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
45 $(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh
48 define Package/autossh/conffiles
52 $(eval $(call BuildPackage,autossh))